public class IlpDefaultEquipmentModel extends IlpAbstractEquipmentModel implements IlpMutableEquipmentModel
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.
| Constructor and Description |
|---|
IlpDefaultEquipmentModel()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
addEquipmentModelListener, endChangingEquipmentModel, fireAttributeValueEvent, fireEquipmentModelEvent, isRoot, removeEquipmentModelListener, startChangingEquipmentModeladdModelListener, addRootObject, addRootObjects, addToObservationScope, clear, endBatch, fireModelEvent, getChildren, getFrom, getObservationScope, getParent, getRootObjects, getTo, isInObservationScope, isLeaf, removeFromObservationScope, removeModelListener, removeRootObject, removeRootObjects, startBatchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendChangingEquipmentModel, startChangingEquipmentModeladdEquipmentModelListener, isRoot, removeEquipmentModelListeneraddRootObject, addRootObjects, clear, removeRootObject, removeRootObjectsgetChildren, getFrom, getParent, getRootObjects, getTo, isLeafpublic boolean isNode(IlpRepresentationObject object)
true if an equipment object is a node in this model.isNode in interface IlpGraphModelisNode in class IlpAbstractGraphModelobject - The object to be checked.true if the object is an instance of
IlpEquipmentNode and is not an instance of
IlpEquipmentLink.IlpGraphModel.isLink(ilog.cpl.model.IlpRepresentationObject)public boolean isLink(IlpRepresentationObject object)
In this implementation, true is returned if the object is an instance of
IlpEquipmentLink.
isLink in interface IlpGraphModelisLink in class IlpAbstractGraphModelobject - The object to be checked.true if the object is a link in this model;
false otherwise.IlpGraphModel.isNode(ilog.cpl.model.IlpRepresentationObject)protected void noteChildrenAdded(IlpRepresentationNode node, int[] indices, IlpRepresentationNode[] children)
noteChildrenAdded in class IlpAbstractGraphModelprotected void noteChildrenRemoved(IlpRepresentationNode node, int[] indices, IlpRepresentationNode[] children)
noteChildrenRemoved in class IlpAbstractGraphModelprotected void noteEndChanged(IlpRepresentationLink link, boolean origin, IlpRepresentationNode oldEnd, IlpRepresentationNode newEnd)
noteEndChanged in class IlpAbstractGraphModelprotected void noteRootAdded(IlpRepresentationNode root)
noteRootAdded in class IlpAbstractGraphModelprotected void noteRootsAdded(Collection roots)
noteRootsAdded in class IlpAbstractGraphModelprotected void noteRootRemoved(IlpRepresentationNode root)
noteRootRemoved in class IlpAbstractGraphModelprotected void noteRootsRemoved(Collection roots)
noteRootsRemoved in class IlpAbstractGraphModel© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.