ilog.cpl.network
Interface IlpNetworkModel

All Superinterfaces:
IlpGraphModel
All Known Subinterfaces:
IlpMutableNetworkModel
All Known Implementing Classes:
IlpAbstractNetworkModel, IlpDefaultNetworkModel

public interface IlpNetworkModel
extends IlpGraphModel

The IlpNetworkModel interface describes the objects to be represented in an IlpNetwork component.

The model contains a set of top-level objects, and a method getChildren which permits access to more objects at lower levels. The model conceptually contains the top-level objects and all objects indirectly accessible through getChildren, even if this is an infinite set of objects loaded on demand.

The objects can be nodes or links. Nodes and links are disjoint. Every link has two end nodes, called from and to ends. They must belong to the model. A link with two identical ends is called a self-link.

When objects are added to or removed from the model, implementations of IlpNetworkModel will signal this by sending NetworkModelEvents of type ROOT_OBJECT_ADDED, ROOT_OBJECT_REMOVED or - for lower levels - CHILDREN_ADDED, CHILDREN_REMOVED.

Since:
JTGO 3.0
See Also:
NetworkModelEvent, NetworkModelListener, IlpGraphModel

Method Summary
 void addNetworkModelListener(NetworkModelListener listener)
          Adds a listener that is notified each time a change to this model occurs.
 void removeNetworkModelListener(NetworkModelListener listener)
          Removes a listener previously added with addNetworkModelListener.
 
Methods inherited from interface ilog.cpl.graph.IlpGraphModel
getChildren, getFrom, getParent, getRootObjects, getTo, isLeaf, isLink, isNode
 

Method Detail

addNetworkModelListener

void addNetworkModelListener(NetworkModelListener listener)
Adds a listener that is notified each time a change to this model occurs.

Parameters:
listener - The listener to be added.

removeNetworkModelListener

void removeNetworkModelListener(NetworkModelListener listener)
Removes a listener previously added with addNetworkModelListener.

Parameters:
listener - The listener to be removed.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.