ilog.cpl.model.container
Class RepresentationLinkEvent

java.lang.Object
  extended by java.util.EventObject
      extended by ilog.util.IlEventObject
          extended by ilog.cpl.model.container.RepresentationLinkEvent
All Implemented Interfaces:
Serializable

public class RepresentationLinkEvent
extends IlEventObject

This class describes a change in an IlpRepresentationLink.

Since:
JTGO 3.0
See Also:
RepresentationLinkListener, Serialized Form

Nested Class Summary
static class RepresentationLinkEvent.Type
          Type of events supported by this event class.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RepresentationLinkEvent(IlpRepresentationLink source, RepresentationLinkEvent.Type type, boolean origin, IlpRepresentationNode oldEnd, IlpRepresentationNode newEnd)
          Creates a link-related event.
 
Method Summary
 IlpRepresentationNode getNewEnd()
          Return the link's new end node.
 IlpRepresentationNode getOldEnd()
          Return the link's previous end node.
 boolean getOrigin()
          Returns true if the event is about the from end of the link, false if about the to end.
 IlpRepresentationLink getRepresentationLink()
          Returns the link the event refers to.
 String toString()
          Returns a String representation of this event.
 
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

RepresentationLinkEvent

public RepresentationLinkEvent(IlpRepresentationLink source,
                               RepresentationLinkEvent.Type type,
                               boolean origin,
                               IlpRepresentationNode oldEnd,
                               IlpRepresentationNode newEnd)
Creates a link-related event.

Parameters:
source - The link.
type - END_CHANGED.
origin - If this parameter is true, the from end is changed, otherwise the to end.
oldEnd - The previous link end node.
newEnd - The new link end node.
Method Detail

getRepresentationLink

public IlpRepresentationLink getRepresentationLink()
Returns the link the event refers to.


getOrigin

public boolean getOrigin()
Returns true if the event is about the from end of the link, false if about the to end.


getOldEnd

public IlpRepresentationNode getOldEnd()
Return the link's previous end node.


getNewEnd

public IlpRepresentationNode getNewEnd()
Return the link's new end node.


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.