public interface IlpNetworkModel extends IlpGraphModel
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
NetworkModelEvent
s of type ROOT_OBJECT_ADDED
,
ROOT_OBJECT_REMOVED
or - for lower levels -
CHILDREN_ADDED
, CHILDREN_REMOVED
.
NetworkModelEvent
,
NetworkModelListener
,
IlpGraphModel
Modifier and Type | Method and Description |
---|---|
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 . |
getChildren, getFrom, getParent, getRootObjects, getTo, isLeaf, isLink, isNode
void addNetworkModelListener(NetworkModelListener listener)
listener
- The listener to be added.void removeNetworkModelListener(NetworkModelListener listener)
addNetworkModelListener
.listener
- The listener to be removed.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.