ilog.cpl.equipment
Class IlpDefaultEquipmentModel
java.lang.Object
ilog.cpl.graph.IlpAbstractGraphModel
ilog.cpl.equipment.IlpAbstractEquipmentModel
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
| 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 |
IlpDefaultEquipmentModel
public IlpDefaultEquipmentModel()
- Constructor.
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.