src/swipl-devel/packages/xpce/man/refmanual/md/relation.md

class relation {#class-relation}

A relation describes the reusable part of a constraint object. Class relation may be subclassed to define new relations. Subclasses normally redefine ->create, ->forward and/or ->backwards.

The current system contains two types of relations, two of which are strictly between graphicals and one general. They are:

New relations may be defined as user-defined subclasses of this class. A relation should define the methods:

@see class constraint

Send methods {#class-relation-send}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.