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, startChangingEquipmentModel
addModelListener, addRootObject, addRootObjects, addToObservationScope, clear, endBatch, fireModelEvent, getChildren, getFrom, getObservationScope, getParent, getRootObjects, getTo, isInObservationScope, isLeaf, removeFromObservationScope, removeModelListener, removeRootObject, removeRootObjects, startBatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endChangingEquipmentModel, startChangingEquipmentModel
addEquipmentModelListener, isRoot, removeEquipmentModelListener
addRootObject, addRootObjects, clear, removeRootObject, removeRootObjects
getChildren, getFrom, getParent, getRootObjects, getTo, isLeaf
public boolean isNode(IlpRepresentationObject object)
true
if an equipment object is a node in this model.isNode
in interface IlpGraphModel
isNode
in class IlpAbstractGraphModel
object
- 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 IlpGraphModel
isLink
in class IlpAbstractGraphModel
object
- 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 IlpAbstractGraphModel
protected void noteChildrenRemoved(IlpRepresentationNode node, int[] indices, IlpRepresentationNode[] children)
noteChildrenRemoved
in class IlpAbstractGraphModel
protected void noteEndChanged(IlpRepresentationLink link, boolean origin, IlpRepresentationNode oldEnd, IlpRepresentationNode newEnd)
noteEndChanged
in class IlpAbstractGraphModel
protected void noteRootAdded(IlpRepresentationNode root)
noteRootAdded
in class IlpAbstractGraphModel
protected void noteRootsAdded(Collection roots)
noteRootsAdded
in class IlpAbstractGraphModel
protected void noteRootRemoved(IlpRepresentationNode root)
noteRootRemoved
in class IlpAbstractGraphModel
protected void noteRootsRemoved(Collection roots)
noteRootsRemoved
in class IlpAbstractGraphModel
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.