ilog.cpl.network
Class IlpAbstractNetworkModel

java.lang.Object
  extended by ilog.cpl.graph.IlpAbstractGraphModel
      extended by ilog.cpl.network.IlpAbstractNetworkModel
All Implemented Interfaces:
IlpGraphModel, IlpNetworkModel, IlvBatchable
Direct Known Subclasses:
IlpDefaultNetworkModel

public abstract class IlpAbstractNetworkModel
extends IlpAbstractGraphModel
implements IlpNetworkModel

This class is an implementation of the 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.

Since:
JTGO 3.0

Constructor Summary
protected IlpAbstractNetworkModel(Logger logger)
          Constructor
 
Method Summary
 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.
 
Methods inherited from class ilog.cpl.graph.IlpAbstractGraphModel
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.cpl.graph.IlpGraphModel
getChildren, getFrom, getParent, getRootObjects, getTo, isLeaf, isLink, isNode
 

Constructor Detail

IlpAbstractNetworkModel

protected IlpAbstractNetworkModel(Logger logger)
Constructor

Parameters:
logger - Logger used to log messages related to the model execution.
Method Detail

startChangingNetworkModel

public void startChangingNetworkModel()
Deprecated. Please use IlpAbstractDataSource.startBatch() instead.

Tells the model temporarily not to send events. After this call, calls to fireNetworkModelEvent delay the events until the next call to endChangingNetworkModel.

See Also:
IlpAbstractDataSource.startBatch(), endChangingNetworkModel()
Deprecated Since:
JTGO 4.0

endChangingNetworkModel

public void endChangingNetworkModel()
Deprecated. Please use IlpAbstractDataSource.endBatch() instead.

Tells the model that a temporary inhibition of events is terminated, and sends the events buffered since the last call to startChangingNetworkModel.

See Also:
IlpAbstractDataSource.endBatch(), startChangingNetworkModel()
Deprecated Since:
JTGO 4.0

fireNetworkModelEvent

public void fireNetworkModelEvent(NetworkModelEvent event)
Notifies the listeners of a model event.


fireAttributeValueEvent

public void fireAttributeValueEvent(AttributeValueEvent event)
Notifies the listeners of an attribute value change event.

Overrides:
fireAttributeValueEvent in class IlpAbstractGraphModel

addNetworkModelListener

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

Specified by:
addNetworkModelListener in interface IlpNetworkModel
Parameters:
listener - The listener to be registered.

removeNetworkModelListener

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

Specified by:
removeNetworkModelListener in interface IlpNetworkModel
Parameters:
listener - The listener to be unregistered.


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