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
_link
protected Object _link
_toNode
protected Object _toNode
_fromNode
protected Object _fromNode
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 linktoNode
- The destination of the linktype
- 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.
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