A graphic component encapsulates a model, a view, and a controller.
The equipment component, like all the other graphic components, is
based on the MVC architecture, which means that it has a model, a
view and a controller associated with it. For a general
introduction to the MVC architecture, see
Architecture of graphic components.
The MVC architecture for the equipment
component is implemented by the following classes:
The class
IlpEquipment contains a model, a view, and
a controller.
-
The representation objects to be displayed in the equipment
component must be added to the model. The equipment model
recognizes the following objects: nodes, and links that connect
nodes. The representation objects to be added to the model must
implement the
IlpEquipmentNode or
IlpEquipmentLink interface. Concrete
implementations of these interfaces are provided as
IlpDefaultEquipmentNode and
IlpDefaultEquipmentLink. You can create
subclasses of these representation object classes.
The class
IlpEquipmentView defines the equipment
view that is automatically instantiated when an equipment object
(an instance of
IlpEquipment
) is created.