ilog.cpl.equipment
Class IlpAbstractEquipmentModel

java.lang.Object
  extended by ilog.cpl.graph.IlpAbstractGraphModel
      extended by ilog.cpl.equipment.IlpAbstractEquipmentModel
All Implemented Interfaces:
IlpEquipmentModel, IlpGraphModel, IlvBatchable
Direct Known Subclasses:
IlpDefaultEquipmentModel

public abstract class IlpAbstractEquipmentModel
extends IlpAbstractGraphModel
implements IlpEquipmentModel

This class is an implementation of the IlpEquipmentModel interface. It handles the notification of the model to listeners.

It does not constrain the type of objects being stored nor the storage data structure. It is an abstract class. IlpDefaultEquipmentModel is a concrete, fully implemented subclass.

Since:
JTGO 3.0

Constructor Summary
IlpAbstractEquipmentModel(Logger logger)
          Constructor.
 
Method Summary
 void addEquipmentModelListener(EquipmentModelListener listener)
          Adds a listener that is notified each time a change to this model occurs.
 void endChangingEquipmentModel()
          Deprecated. Please use IlpAbstractDataSource.endBatch() instead.
 void fireAttributeValueEvent(AttributeValueEvent event)
          Notifies the listeners of an attribute value change event.
 void fireEquipmentModelEvent(EquipmentModelEvent event)
          Notifies the listeners of a model event.
 boolean isRoot(IlpRepresentationObject object)
          Deprecated. Please check getParent(object) method instead.
 void removeEquipmentModelListener(EquipmentModelListener listener)
          Removes a previously added listener with addEquipmentModelListener.
 void startChangingEquipmentModel()
          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

IlpAbstractEquipmentModel

public IlpAbstractEquipmentModel(Logger logger)
Constructor.

Method Detail

startChangingEquipmentModel

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

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

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

endChangingEquipmentModel

public void endChangingEquipmentModel()
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 startChangingEquipmentModel.

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

isRoot

public boolean isRoot(IlpRepresentationObject object)
Deprecated. Please check getParent(object) method instead.

Returns true if the given object is a root object.

Specified by:
isRoot in interface IlpEquipmentModel
Returns:
true for a given root object. It returns false otherwise.
Deprecated Since:
JTGO4.0

fireEquipmentModelEvent

public void fireEquipmentModelEvent(EquipmentModelEvent 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

addEquipmentModelListener

public void addEquipmentModelListener(EquipmentModelListener listener)
Adds a listener that is notified each time a change to this model occurs.

Specified by:
addEquipmentModelListener in interface IlpEquipmentModel
Parameters:
listener - The listener to be added.

removeEquipmentModelListener

public void removeEquipmentModelListener(EquipmentModelListener listener)
Removes a previously added listener with addEquipmentModelListener.

Specified by:
removeEquipmentModelListener in interface IlpEquipmentModel
Parameters:
listener - The listener to be removed.


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