ilog.cpl.network
Class IlpAbstractNetworkModelListener

java.lang.Object
  extended by ilog.cpl.network.IlpAbstractNetworkModelListener
All Implemented Interfaces:
GraphModelListener, AttributeValueListener, NetworkModelListener, EventListener

public abstract class IlpAbstractNetworkModelListener
extends Object
implements NetworkModelListener

This class provides an abstract network model listener implementation.

The methods in this class are empty. This class exists as a convenience for creating network model listener objects.

Since:
JTGO 4.0
See Also:
NetworkModelListener

Constructor Summary
IlpAbstractNetworkModelListener()
           
 
Method Summary
 void addNetworkModelObserveListener(NetworkModelObserveListener listener)
          Deprecated.  
 void attributeValueChange(AttributeValueEvent event)
          Invoked when the attribute of an object contained in the model changes.
 void childrenAdded(NetworkModelEvent event)
          Invoked when children are added to a node.
 void childrenRemoved(NetworkModelEvent event)
          Invoked when children are removed from a node.
 void eventSeriesBegin()
          Invoked before a series of events begins.
 void eventSeriesEnd()
          Invoked after a series of events has ended.
 boolean isObserved(IlpRepresentationObject object)
          Returns true if the object is a member of this listener's observation scope, in other words, if this listener is interested in being notified about the object.
 void linkEndChanged(NetworkModelEvent event)
          Invoked when one of a link's end nodes is changed.
 void removeNetworkModelObserveListener(NetworkModelObserveListener listener)
          Deprecated.  
 void rootObjectAdded(NetworkModelEvent event)
          Invoked when a top-level object is added to the model.
 void rootObjectRemoved(NetworkModelEvent event)
          Invoked when a top-level object is removed from the model.
 void rootObjectsAdded(NetworkModelEvent event)
          Invoked when several top-level objects are added to the model.
 void rootObjectsRemoved(NetworkModelEvent event)
          Invoked when several top-level objects are removed from the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpAbstractNetworkModelListener

public IlpAbstractNetworkModelListener()
Method Detail

rootObjectAdded

public void rootObjectAdded(NetworkModelEvent event)
Invoked when a top-level object is added to the model.

Specified by:
rootObjectAdded in interface NetworkModelListener
Parameters:
event - An event of type NetworkModelEvent.Type.ROOT_OBJECT_ADDED.

rootObjectsAdded

public void rootObjectsAdded(NetworkModelEvent event)
Invoked when several top-level objects are added to the model.

Specified by:
rootObjectsAdded in interface NetworkModelListener
Parameters:
event - An event of type NetworkModelEvent.Type.ROOT_OBJECTS_ADDED.

rootObjectRemoved

public void rootObjectRemoved(NetworkModelEvent event)
Invoked when a top-level object is removed from the model.

Specified by:
rootObjectRemoved in interface NetworkModelListener
Parameters:
event - An event of type NetworkModelEvent.Type.ROOT_OBJECT_REMOVED.

rootObjectsRemoved

public void rootObjectsRemoved(NetworkModelEvent event)
Invoked when several top-level objects are removed from the model.

Specified by:
rootObjectsRemoved in interface NetworkModelListener
Parameters:
event - An event of type NetworkModelEvent.Type.ROOT_OBJECTS_REMOVED.

childrenAdded

public void childrenAdded(NetworkModelEvent event)
Invoked when children are added to a node. This notification can be omitted if isObserved(event.getObject()) is false.

Specified by:
childrenAdded in interface NetworkModelListener
Parameters:
event - An event of type NetworkModelEvent.Type.CHILDREN_ADDED.

childrenRemoved

public void childrenRemoved(NetworkModelEvent event)
Invoked when children are removed from a node. This notification can be omitted if isObserved is false for the parent object and all children objects listed in the event.

Specified by:
childrenRemoved in interface NetworkModelListener
Parameters:
event - An event of type NetworkModelEvent.Type.CHILDREN_REMOVED.

linkEndChanged

public void linkEndChanged(NetworkModelEvent event)
Invoked when one of a link's end nodes is changed. This notification can be omitted if isObserved is false for the link object.

Specified by:
linkEndChanged in interface NetworkModelListener
Parameters:
event - An event of type NetworkModelEvent.Type.LINK_END_CHANGED.

addNetworkModelObserveListener

public void addNetworkModelObserveListener(NetworkModelObserveListener listener)
Deprecated. 

Adds a listener that is notified each time a change to the observation scope occurs.

Specified by:
addNetworkModelObserveListener in interface NetworkModelListener
Internal method or field: do not use!
Deprecated Since:
JTGO 4.0

removeNetworkModelObserveListener

public void removeNetworkModelObserveListener(NetworkModelObserveListener listener)
Deprecated. 

Removes a listener previously added with addNetworkModelObserveListener.

Specified by:
removeNetworkModelObserveListener in interface NetworkModelListener
Internal method or field: do not use!
Deprecated Since:
JTGO 4.0

isObserved

public boolean isObserved(IlpRepresentationObject object)
Returns true if the object is a member of this listener's observation scope, in other words, if this listener is interested in being notified about the object.

The IlpGraphModel is not allowed to send an event to this listener if the event is about an object that is not in the observation scope.

Specified by:
isObserved in interface GraphModelListener
Internal method or field: do not use!

eventSeriesBegin

public void eventSeriesBegin()
Invoked before a series of events begins.

Specified by:
eventSeriesBegin in interface GraphModelListener
Internal method or field: do not use!

eventSeriesEnd

public void eventSeriesEnd()
Invoked after a series of events has ended.

Specified by:
eventSeriesEnd in interface GraphModelListener
Internal method or field: do not use!

attributeValueChange

public void attributeValueChange(AttributeValueEvent event)
Invoked when the attribute of an object contained in the model changes.

Specified by:
attributeValueChange in interface GraphModelListener
Specified by:
attributeValueChange in interface AttributeValueListener
Parameters:
event - An event of type AttributeValueEvent.
Internal method or field: do not use!


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