ilog.cpl.equipment
Class IlpDefaultEquipmentModel

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

public class IlpDefaultEquipmentModel
extends IlpAbstractEquipmentModel
implements IlpMutableEquipmentModel

This class is the default implementation of the IlpEquipmentModel interface. It contains a number of nodes (instances of IlpEquipmentNode) and possibly other representation objects.

This class attaches RepresentationContainerListeners to the objects in the model. It is automatically notified when the list of children of an object changes.

Since:
JTGO 3.0

Constructor Summary
IlpDefaultEquipmentModel()
          Constructor.
 
Method Summary
 boolean isLink(IlpRepresentationObject object)
          Returns true if an equipment object is a link in this model.
 boolean isNode(IlpRepresentationObject object)
          Returns true if an equipment object is a node in this model.
protected  void noteChildrenAdded(IlpRepresentationNode node, int[] indices, IlpRepresentationNode[] children)
           
protected  void noteChildrenRemoved(IlpRepresentationNode node, int[] indices, IlpRepresentationNode[] children)
           
protected  void noteEndChanged(IlpRepresentationLink link, boolean origin, IlpRepresentationNode oldEnd, IlpRepresentationNode newEnd)
           
protected  void noteRootAdded(IlpRepresentationNode root)
           
protected  void noteRootRemoved(IlpRepresentationNode root)
           
protected  void noteRootsAdded(Collection roots)
           
protected  void noteRootsRemoved(Collection roots)
           
 
Methods inherited from class ilog.cpl.equipment.IlpAbstractEquipmentModel
addEquipmentModelListener, endChangingEquipmentModel, fireAttributeValueEvent, fireEquipmentModelEvent, isRoot, removeEquipmentModelListener, startChangingEquipmentModel
 
Methods inherited from class ilog.cpl.graph.IlpAbstractGraphModel
addModelListener, addRootObject, addRootObjects, addToObservationScope, clear, endBatch, fireModelEvent, getChildren, getFrom, getObservationScope, getParent, getRootObjects, getTo, isInObservationScope, isLeaf, 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.equipment.IlpMutableEquipmentModel
endChangingEquipmentModel, startChangingEquipmentModel
 
Methods inherited from interface ilog.cpl.equipment.IlpEquipmentModel
addEquipmentModelListener, isRoot, removeEquipmentModelListener
 
Methods inherited from interface ilog.cpl.graph.IlpGraphModel
getChildren, getFrom, getParent, getRootObjects, getTo, isLeaf
 
Methods inherited from interface ilog.cpl.graph.IlpMutableGraphModel
addRootObject, addRootObjects, clear, removeRootObject, removeRootObjects
 
Methods inherited from interface ilog.cpl.graph.IlpGraphModel
getChildren, getFrom, getParent, getRootObjects, getTo, isLeaf
 

Constructor Detail

IlpDefaultEquipmentModel

public IlpDefaultEquipmentModel()
Constructor.

Method Detail

isNode

public boolean isNode(IlpRepresentationObject object)
Returns true if an equipment object is a node in this model.

Specified by:
isNode in interface IlpGraphModel
Specified by:
isNode in class IlpAbstractGraphModel
Parameters:
object - The object to be checked.
Returns:
true if the object is an instance of IlpEquipmentNode and is not an instance of IlpEquipmentLink.
See Also:
IlpGraphModel.isLink(ilog.cpl.model.IlpRepresentationObject)

isLink

public boolean isLink(IlpRepresentationObject object)
Returns true if an equipment object is a link in this model.

In this implementation, true is returned if the object is an instance of IlpEquipmentLink.

Specified by:
isLink in interface IlpGraphModel
Specified by:
isLink in class IlpAbstractGraphModel
Parameters:
object - The object to be checked.
Returns:
true if the object is a link in this model; false otherwise.
See Also:
IlpGraphModel.isNode(ilog.cpl.model.IlpRepresentationObject)

noteChildrenAdded

protected void noteChildrenAdded(IlpRepresentationNode node,
                                 int[] indices,
                                 IlpRepresentationNode[] children)
Specified by:
noteChildrenAdded in class IlpAbstractGraphModel
Internal method or field: do not use!

noteChildrenRemoved

protected void noteChildrenRemoved(IlpRepresentationNode node,
                                   int[] indices,
                                   IlpRepresentationNode[] children)
Specified by:
noteChildrenRemoved in class IlpAbstractGraphModel
Internal method or field: do not use!

noteEndChanged

protected void noteEndChanged(IlpRepresentationLink link,
                              boolean origin,
                              IlpRepresentationNode oldEnd,
                              IlpRepresentationNode newEnd)
Specified by:
noteEndChanged in class IlpAbstractGraphModel
Internal method or field: do not use!

noteRootAdded

protected void noteRootAdded(IlpRepresentationNode root)
Specified by:
noteRootAdded in class IlpAbstractGraphModel
Internal method or field: do not use!

noteRootsAdded

protected void noteRootsAdded(Collection roots)
Specified by:
noteRootsAdded in class IlpAbstractGraphModel
Internal method or field: do not use!

noteRootRemoved

protected void noteRootRemoved(IlpRepresentationNode root)
Specified by:
noteRootRemoved in class IlpAbstractGraphModel
Internal method or field: do not use!

noteRootsRemoved

protected void noteRootsRemoved(Collection roots)
Specified by:
noteRootsRemoved in class IlpAbstractGraphModel
Internal method or field: do not use!


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