ilog.cpl.network
Class NetworkModelEvent
java.lang.Object
java.util.EventObject
ilog.util.IlEventObject
ilog.cpl.graph.GraphModelEvent
ilog.cpl.network.NetworkModelEvent
- All Implemented Interfaces:
- Serializable
public class NetworkModelEvent
- extends GraphModelEvent
This class describes a change in an IlpNetworkModel.
- Since:
- JTGO 4.0
- See Also:
GraphModelEvent,
NetworkModelListener,
Serialized Form
|
Constructor Summary |
NetworkModelEvent(IlpNetworkModel source,
NetworkModelEvent.Type type,
Collection objects)
Creates an event. |
NetworkModelEvent(IlpNetworkModel source,
NetworkModelEvent.Type type,
IlpRepresentationObject object)
Creates an event. |
NetworkModelEvent(IlpNetworkModel source,
NetworkModelEvent.Type type,
IlpRepresentationObject link,
boolean origin,
IlpRepresentationObject oldEnd,
IlpRepresentationObject newEnd)
Creates a link-related event. |
NetworkModelEvent(IlpNetworkModel source,
NetworkModelEvent.Type type,
IlpRepresentationObject object,
int[] indices,
IlpRepresentationObject[] children)
Creates a container-related event. |
NetworkModelEvent
public NetworkModelEvent(IlpNetworkModel source,
NetworkModelEvent.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.
NetworkModelEvent
public NetworkModelEvent(IlpNetworkModel source,
NetworkModelEvent.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 IlpRepresentationObject.- Since:
- JTGO 4.0
NetworkModelEvent
public NetworkModelEvent(IlpNetworkModel source,
NetworkModelEvent.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 parent.indices - The indices of the children (where the indices are taken
after addition but before removal), in ascending order.children - The children, in the same order as described in indices.
NetworkModelEvent
public NetworkModelEvent(IlpNetworkModel source,
NetworkModelEvent.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.oldEnd - The previous link end object.newEnd - The new link end object.
toString
public String toString()
- Overrides:
toString in class EventObject
Copyright © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage. . All Rights Reserved.