Relations

Objects in Mesh model can relate to each other. Relation between objects is done using relation attributes. The relation attribute defines type of the relation, target object type and other parameters.

_images/relations1.png

There are two groups of relations between objects in Mesh model.

Ownership relation

Each object is owned by some other object (owner). It is called ownership relation.

Ownership relations can be:
  • one-to-one

  • one-to-many (collection): where value of many is in range defined by minimum and maximum cardinality on relation attribute definition level.

By convention ownership relation attribute names start with ‘has_…’, e.g.: has_PowerPlant. Removing an object will remove recursively all of its owned objects as well, if there were any.