RelationConstructor
Constructors
new RelationConstructor()
new RelationConstructor(tag, direction?): Relation<CloudObject, CloudObject>
Create a relation between two CloudObject classes
Parameters
| Parameter | Type | Description |
|---|---|---|
tag | InstanceOrTag | tag of the relation to create |
direction? | Direction | whether the relation points to the origin or destination |
Returns
Relation<CloudObject, CloudObject>
new RelationConstructor()
new RelationConstructor<O, D>(
tag,
direction?,
origin?,
destination?): Relation<O, D>
Create a relation between two CloudObject classes
Parameters
| Parameter | Type | Description |
|---|---|---|
tag | InstanceOrTag | tag of the relation to create |
direction? | Direction | whether the relation points to the origin or destination |
origin? | Class<O> | origin class of the relation |
destination? | Class<D> | destination class of the relation |
Returns
Relation<O, D>