ilog.cpl.graph
Interface GraphModelListener

All Superinterfaces:
AttributeValueListener, EventListener
All Known Subinterfaces:
EquipmentModelListener, NetworkModelListener
All Known Implementing Classes:
IlpAbstractEquipmentModelListener, IlpAbstractNetworkModelListener

public interface GraphModelListener
extends EventListener, AttributeValueListener

This interface allows the observing of changes to an IlpGraphModel. Since an IlpGraphModel potentially contains an infinite number of objects, and to permit load-on-demand, a model listener maintains a list of objects which it is interested in, called the "observation scope".

Since:
JTGO 4.0
See Also:
GraphModelEvent

Method Summary
 void attributeValueChange(AttributeValueEvent event)
          Invoked when the attribute of an object contained in the model changes.
 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.
 

Method Detail

isObserved

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.


eventSeriesBegin

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


eventSeriesEnd

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


attributeValueChange

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

Specified by:
attributeValueChange in interface AttributeValueListener
Parameters:
event - An event of type AttributeValueEvent.


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