public abstract class IlpAbstractNetworkModel extends IlpAbstractGraphModel implements IlpNetworkModel
IlpNetworkModel
interface that handles the notification of the model to listeners.
It does not constrain the type of objects being stored or
the storage data structure. It is an abstract class.
IlpDefaultNetworkModel
is a concrete, fully implemented
subclass.
Modifier | Constructor and Description |
---|---|
protected |
IlpAbstractNetworkModel(Logger logger)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addNetworkModelListener(NetworkModelListener listener)
Registers a listener that is notified each time a change to this model
occurs.
|
void |
endChangingNetworkModel()
Deprecated.
Please use
IlpAbstractDataSource.endBatch()
instead. |
void |
fireAttributeValueEvent(AttributeValueEvent event)
Notifies the listeners of an attribute value change event.
|
void |
fireNetworkModelEvent(NetworkModelEvent event)
Notifies the listeners of a model event.
|
void |
removeNetworkModelListener(NetworkModelListener listener)
Unregisters a listener previously added with
addNetworkModelListener . |
void |
startChangingNetworkModel()
Deprecated.
Please use
IlpAbstractDataSource.startBatch()
instead. |
addModelListener, addRootObject, addRootObjects, addToObservationScope, clear, endBatch, fireModelEvent, getChildren, getFrom, getObservationScope, getParent, getRootObjects, getTo, isInObservationScope, isLeaf, isLink, isNode, noteChildrenAdded, noteChildrenRemoved, noteEndChanged, noteRootAdded, noteRootRemoved, noteRootsAdded, noteRootsRemoved, removeFromObservationScope, removeModelListener, removeRootObject, removeRootObjects, startBatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getFrom, getParent, getRootObjects, getTo, isLeaf, isLink, isNode
protected IlpAbstractNetworkModel(Logger logger)
logger
- Logger used to log messages related to the model
execution.@Deprecated public void startChangingNetworkModel()
IlpAbstractDataSource.startBatch()
instead.fireNetworkModelEvent
delay the events until the next call to
endChangingNetworkModel
.IlpAbstractDataSource.startBatch()
,
endChangingNetworkModel()
@Deprecated public void endChangingNetworkModel()
IlpAbstractDataSource.endBatch()
instead.startChangingNetworkModel
.IlpAbstractDataSource.endBatch()
,
startChangingNetworkModel()
public void fireNetworkModelEvent(NetworkModelEvent event)
public void fireAttributeValueEvent(AttributeValueEvent event)
fireAttributeValueEvent
in class IlpAbstractGraphModel
public void addNetworkModelListener(NetworkModelListener listener)
addNetworkModelListener
in interface IlpNetworkModel
listener
- The listener to be registered.public void removeNetworkModelListener(NetworkModelListener listener)
addNetworkModelListener
.removeNetworkModelListener
in interface IlpNetworkModel
listener
- The listener to be unregistered.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.