ilog.cpl.equipment
Class EquipmentModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.util.IlEventObject
          extended by ilog.cpl.graph.GraphModelEvent
              extended by ilog.cpl.equipment.EquipmentModelEvent
All Implemented Interfaces:
Serializable

public class EquipmentModelEvent
extends GraphModelEvent

This class describes a change in an IlpEquipmentModel object.

Since:
JTGO 3.0
See Also:
GraphModelEvent, EquipmentModelListener, Serialized Form

Nested Class Summary
static class EquipmentModelEvent.Type
          Event types
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
EquipmentModelEvent(IlpEquipmentModel source, EquipmentModelEvent.Type type, Collection objects)
          Creates an event.
EquipmentModelEvent(IlpEquipmentModel source, EquipmentModelEvent.Type type, IlpRepresentationObject object)
          Creates an event.
EquipmentModelEvent(IlpEquipmentModel source, EquipmentModelEvent.Type type, IlpRepresentationObject link, boolean origin, IlpRepresentationObject oldEnd, IlpRepresentationObject newEnd)
          Creates a link-related event.
EquipmentModelEvent(IlpEquipmentModel source, EquipmentModelEvent.Type type, IlpRepresentationObject object, int[] indices, IlpRepresentationObject[] children)
          Creates a container-related event.
 
Method Summary
 boolean isPartOfSeries()
          Deprecated. No replacements.
 String toString()
          Returns a String representation of this event.
 
Methods inherited from class ilog.cpl.graph.GraphModelEvent
getChildren, getIndices, getNewEnd, getObject, getObjects, getOldEnd, getOrigin
 
Methods inherited from class ilog.util.IlEventObject
getType
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EquipmentModelEvent

public EquipmentModelEvent(IlpEquipmentModel source,
                           EquipmentModelEvent.Type type,
                           IlpRepresentationObject object)
Creates an event.

Parameters:
source - The model.
type - One of ROOT_OBJECT_ADDED, ROOT_OBJECT_REMOVED.
object - The object that has been added or removed.

EquipmentModelEvent

public EquipmentModelEvent(IlpEquipmentModel source,
                           EquipmentModelEvent.Type type,
                           Collection objects)
Creates an event.

Parameters:
source - The model.
type - One of ROOT_OBJECTS_ADDED, ROOT_OBJECTS_REMOVED.
objects - The objects that have been added or removed, a collection of IlpRepresentationObjects.
Since:
JTGO 4.0

EquipmentModelEvent

public EquipmentModelEvent(IlpEquipmentModel source,
                           EquipmentModelEvent.Type type,
                           IlpRepresentationObject object,
                           int[] indices,
                           IlpRepresentationObject[] children)
Creates a container-related event.

Parameters:
source - The model.
type - One of CHILDREN_ADDED, CHILDREN_REMOVED.
object - The root.
indices - The indices of the children (where the indices are taken after addition but before removal), in ascending order.
children - The children are in the same order as described in the indices.

EquipmentModelEvent

public EquipmentModelEvent(IlpEquipmentModel source,
                           EquipmentModelEvent.Type type,
                           IlpRepresentationObject link,
                           boolean origin,
                           IlpRepresentationObject oldEnd,
                           IlpRepresentationObject newEnd)
Creates a link-related event.

Parameters:
source - The model.
type - LINK_END_CHANGED.
link - The link.
origin - If this parameter is true, the from end is changed, otherwise the to end is changed.
oldEnd - The previous link end object.
newEnd - The new link end object.
Since:
JTGO 4.0
Method Detail

isPartOfSeries

public boolean isPartOfSeries()
Deprecated. No replacements.

Returns true if this event is part of a series of model events.

See Also:
GraphModelListener.eventSeriesBegin(), GraphModelListener.eventSeriesEnd()
Deprecated Since:
JTGO 4.0

toString

public String toString()
Returns a String representation of this event.

Overrides:
toString in class EventObject


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