|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.event.AbstractGraphEvent
com.tensegrity.graph.event.GraphEvent
This class describes graph events.
| Field Summary | |
static int |
EDGE_ADDED
Constants that define the type of the event. |
static int |
EDGE_ATTACH_REJECTED
Constants that define the type of the event. |
static int |
EDGE_REMOVED
Constants that define the type of the event. |
static int |
EDGE_SPLIT
Constants that define the type of the event. |
static int |
NODE_ADDED
Constants that define the type of the event. |
static int |
NODE_CASCADE_EDGES
Constants that define the type of the event. |
static int |
NODE_REMOVED
Constants that define the type of the event. |
static int |
PRE_EDGE_ADD
Constants that define the type of the event. |
static int |
PRE_EDGE_REMOVE
Constants that define the type of the event. |
static int |
PRE_EDGE_SPLIT
Constants that define the type of the event. |
static int |
PRE_NODE_ADD
Constants that define the type of the event. |
static int |
PRE_NODE_CASCADE_EDGES
Constants that define the type of the event. |
static int |
PRE_NODE_REMOVE
Constants that define the type of the event. |
| Constructor Summary | |
GraphEvent(int eventid,
Graph graph,
Edge edge,
long edgeid)
Constructs a new GraphEvent. |
|
GraphEvent(int eventid,
Graph graph,
Node node,
long nodeid)
Constructs a new GraphEvent. |
|
GraphEvent(int eventid,
Graph graph,
Subgraph subgraph,
Node node,
Edge edge,
long nodeid,
long edgeid)
Constructs a new GraphEvent. |
|
GraphEvent(int eventid,
Graph graph,
Subgraph subgraph,
Node node,
Edge edge,
long nodeid,
long edgeid,
Edge newedge1,
Edge newedge2)
Constructs a new GraphEvent. |
|
GraphEvent(int eventid,
long nodeid,
Node node,
Graph graph,
Subgraph subgraph,
long edgeid,
Edge edge,
GraphObjectContainer edgeGOC,
Edge newedge1,
GraphObjectContainer newedge1GOC,
Edge newedge2,
GraphObjectContainer newedge2GOC)
|
|
GraphEvent(int eventid,
Subgraph subgraph,
Edge edge,
long edgeid)
Constructs a new GraphEvent. |
|
GraphEvent(int eventid,
Subgraph subgraph,
Node node,
long nodeid)
Constructs a new GraphEvent. |
|
| Method Summary | |
java.lang.String |
getDescription()
Returns a textual description for the event. |
Graph |
getGraph()
Returns the Graph that
caused the event. |
int |
getID()
Returns the event id of this event. |
Edge |
getNewSplitEdge1()
If the event is an edge-split event, this method will return the first of the two newly introduced edges that replace the original split edge. |
GraphObjectContainer |
getNewSplitEdge1Container()
|
Edge |
getNewSplitEdge2()
If the event is an edge-split event, this method will return the second of the two newly introduced edges that replace the original split edge. |
GraphObjectContainer |
getNewSplitEdge2Container()
|
Edge |
getOldEdge1()
If the event is an node-delete-cascade-edge event, this method will return the first of the two removed edges that were replaced with the new merged edge. |
GraphObjectContainer |
getOldEdge1Container()
|
Edge |
getOldEdge2()
If the event is an node-delete-cascade-edge event, this method will return the second of the two removed edges that were replaced with the new merged edge. |
GraphObjectContainer |
getOldEdge2Container()
|
Subgraph |
getSubgraph()
Returns the Subgraph that
caused the event. |
Edge |
getSubjectEdge()
Returns the associated Edge of this event. |
GraphObjectContainer |
getSubjectEdgeContainer()
|
long |
getSubjectEdgeID()
Returns the id of the associated Edge of this event. |
Node |
getSubjectNode()
Returns the associated Node of this event. |
long |
getSubjectNodeID()
Returns the id of the associated Node of this event. |
static java.lang.String |
id2string(int id)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NODE_ADDED
public static final int NODE_REMOVED
public static final int EDGE_ADDED
public static final int EDGE_REMOVED
public static final int PRE_NODE_ADD
public static final int PRE_NODE_REMOVE
public static final int PRE_EDGE_ADD
public static final int PRE_EDGE_REMOVE
public static final int EDGE_ATTACH_REJECTED
public static final int PRE_EDGE_SPLIT
public static final int EDGE_SPLIT
public static final int PRE_NODE_CASCADE_EDGES
public static final int NODE_CASCADE_EDGES
| Constructor Detail |
public GraphEvent(int eventid,
Graph graph,
Node node,
long nodeid)
GraphEvent.
eventid - the id of the event.graph - the Graph that is associated with the event.node - the Node that is associated with the eventnodeid - the id of the associated Node
public GraphEvent(int eventid,
Subgraph subgraph,
Node node,
long nodeid)
GraphEvent.
eventid - the id of the event.subgraph - the Subgraph that is associated with the eventnode - the Node that is associated with the eventnodeid - the id of the associated Node
public GraphEvent(int eventid,
Graph graph,
Edge edge,
long edgeid)
GraphEvent.
eventid - the id of the event.graph - the Graph that is associated with the event.edge - the Edge that is associated with the eventedgeid - the id of the associated Edge
public GraphEvent(int eventid,
Subgraph subgraph,
Edge edge,
long edgeid)
GraphEvent.
eventid - the id of the event.subgraph - the Subgraph that is associated with the eventedge - the Edge that is associated with the eventedgeid - the id of the associated Edge
public GraphEvent(int eventid,
Graph graph,
Subgraph subgraph,
Node node,
Edge edge,
long nodeid,
long edgeid)
GraphEvent.
eventid - the id of the event.graph - the Graph that is associated with the event.subgraph - the Subgraph that is associated with the eventnode - the Node that is associated with the eventedge - the Edge that is associated with the eventnodeid - the id of the associated Nodeedgeid - the id of the associated Edge
public GraphEvent(int eventid,
Graph graph,
Subgraph subgraph,
Node node,
Edge edge,
long nodeid,
long edgeid,
Edge newedge1,
Edge newedge2)
GraphEvent.
eventid - the id of the event.graph - the Graph that is associated with the event.subgraph - the Subgraph that is associated with the eventnode - the Node that is associated with the eventedge - the Edge that is associated with the eventnodeid - the id of the associated Nodeedgeid - the id of the associated Edgenewedge1 - the first new edge (in case of a split).newedge2 - the second new edge (in case of a split).
public GraphEvent(int eventid,
long nodeid,
Node node,
Graph graph,
Subgraph subgraph,
long edgeid,
Edge edge,
GraphObjectContainer edgeGOC,
Edge newedge1,
GraphObjectContainer newedge1GOC,
Edge newedge2,
GraphObjectContainer newedge2GOC)
| Method Detail |
public static final java.lang.String id2string(int id)
public int getID()
public long getSubjectNodeID()
Node of this event.
Node of this event.public Node getSubjectNode()
Node of this event.
Node of this event.public long getSubjectEdgeID()
Edge of this event.
Edge of this event.public Edge getSubjectEdge()
Edge of this event.
Edge of this event.public GraphObjectContainer getSubjectEdgeContainer()
public Edge getNewSplitEdge1()
public GraphObjectContainer getNewSplitEdge1Container()
public Edge getNewSplitEdge2()
public GraphObjectContainer getNewSplitEdge2Container()
public Edge getOldEdge1()
public GraphObjectContainer getOldEdge1Container()
public Edge getOldEdge2()
public GraphObjectContainer getOldEdge2Container()
public java.lang.String getDescription()
getDescription in interface GraphRootEventpublic Graph getGraph()
Graph that
caused the event.
getGraph in interface GraphRootEventGraph that
caused the event.public Subgraph getSubgraph()
Subgraph that
caused the event.
Subgraph that
caused the event.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||