ilog.ds
Class LinkEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--ilog.ds.AbstractDSEvent
              |
              +--ilog.ds.LinkEvent
All Implemented Interfaces:
Serializable

public class LinkEvent
extends AbstractDSEvent

Event class used for all events happening on a link

See Also:
Serialized Form

Field Summary
protected  Object _fromNode
           
protected  Object _link
           
protected  Object _toNode
           
 
Fields inherited from class ilog.ds.AbstractDSEvent
_properties, _type, ADD, REMOVE, UPDATE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LinkEvent(Object source, Object link)
          Constructor to use when the link is being deleted.
LinkEvent(Object source, Object link, Object fromNode, Object toNode, int type, Map properties)
          Constructor to use for creating or updating links
 
Method Summary
 Object getFromNode()
          Gets the "From" node (to be used only as a key)
 Object getLink()
          Gets the link (to be used only as a key)
 Object getToNode()
          Gets the "To" node (to be used only as a key)
 
Methods inherited from class ilog.ds.AbstractDSEvent
getProperties, getType
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_link

protected Object _link

_toNode

protected Object _toNode

_fromNode

protected Object _fromNode
Constructor Detail

LinkEvent

public LinkEvent(Object source,
                 Object link,
                 Object fromNode,
                 Object toNode,
                 int type,
                 Map properties)
Constructor to use for creating or updating links
Parameters:
source - The first parameter is the source of the event.
link - The link itself. It can be anything, as it is only used as a key.
fromNode - The origin of the link
toNode - The destination of the link
type - It can be:
  • ADD when the graph is created;
  • UPDATE if the graph is being updated. .
properties - Contains the named properties of the link, that is, all the properties when the link is created, or all the modified properties when the link is being updated.

LinkEvent

public LinkEvent(Object source,
                 Object link)
Constructor to use when the link is being deleted.
Method Detail

getLink

public Object getLink()
Gets the link (to be used only as a key)
Returns:
the subject of this event

getFromNode

public Object getFromNode()
Gets the "From" node (to be used only as a key)
Returns:
the origin of the link

getToNode

public Object getToNode()
Gets the "To" node (to be used only as a key)
Returns:
the destination of the link