ilog.ds
Class LinkEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ilog.ds.AbstractDSEvent
|
+--ilog.ds.LinkEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class LinkEvent
- extends AbstractDSEvent
Event class used for all events happening on a link
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.Object |
_fromNode
|
protected java.lang.Object |
_link
|
protected java.lang.Object |
_toNode
|
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
LinkEvent(java.lang.Object source,
java.lang.Object link)
Constructor to use when the link is being deleted. |
LinkEvent(java.lang.Object source,
java.lang.Object link,
java.lang.Object fromNode,
java.lang.Object toNode,
int type,
java.util.Map properties)
Constructor to use for creating or updating links |
|
Method Summary |
java.lang.Object |
getFromNode()
Gets the "From" node (to be used only as a key) |
java.lang.Object |
getLink()
Gets the link (to be used only as a key) |
java.lang.Object |
getToNode()
Gets the "To" node (to be used only as a key) |
| 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 |
_link
protected java.lang.Object _link
_toNode
protected java.lang.Object _toNode
_fromNode
protected java.lang.Object _fromNode
LinkEvent
public LinkEvent(java.lang.Object source,
java.lang.Object link,
java.lang.Object fromNode,
java.lang.Object toNode,
int type,
java.util.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(java.lang.Object source,
java.lang.Object link)
- Constructor to use when the link is being deleted.
getLink
public java.lang.Object getLink()
- Gets the link (to be used only as a key)
- Returns:
- the subject of this event
getFromNode
public java.lang.Object getFromNode()
- Gets the "From" node (to be used only as a key)
- Returns:
- the origin of the link
getToNode
public java.lang.Object getToNode()
- Gets the "To" node (to be used only as a key)
- Returns:
- the destination of the link