Defining Relations

You may want to refer to section Relations for an overview of relations in Server.

This section demonstrates how to define relations between the classes that make up a server object model.

You will define the following relations:

  • A network that owns one or more domains.

To define such a relation, you will use the server class template IlsOwnsList which lets you declare a one-to-many ownership relation.

  • A domain that owns one or more nodes and also one or more lines.

To define such a relation, you will also use the server class template IlsOwnsList.

  • A line that uses an input node and an output node.

To define such a relation, you will use the server class template . which lets you declare a one-to-one use relation.

Note

The Server library contains many other class templates for defining relations. For more information, see the Server Reference Manual and User’s Manual.

These class templates take two arguments:

  • the name of the class that will be the origin of the relation, and

  • the class that will be the target of the relation.