|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.export.MyPathwayGraph
public class MyPathwayGraph
a simple pathway graph to detect the structure change. Like version graph, we store the element here but the adjacency list in node itself
| Constructor Summary | |
|---|---|
MyPathwayGraph()
default constructor |
|
| Method Summary | |
|---|---|
void |
addEdge(java.lang.Integer leftId,
java.lang.Integer rightId)
|
void |
addNode(PathwayElementNode node)
add an element |
java.util.ArrayList |
getDownstreamEntityNodeIdList(java.lang.Integer blockId)
get the downstream entity node id list |
java.util.ArrayList |
getDownstreamInteractionNodeIdList(java.lang.Integer blockId)
get the downstream interaction node id list |
java.util.ArrayList |
getDownstreamNodeIdList(java.lang.Integer blockId)
get the list of new version record |
java.util.Map |
getNodeMap()
|
java.util.ArrayList |
getUpstreamEntityNodeIdList(java.lang.Integer blockId)
get the upstream entity node id list |
java.util.ArrayList |
getUpstreamInteractionNodeIdList(java.lang.Integer blockId)
get the upstream interaction node id list |
java.util.ArrayList |
getUpstreamNodeIdList(java.lang.Integer blockId)
get the list of old version record |
boolean |
isControlInteraction(java.lang.Integer blockId)
if this is a control interaction |
boolean |
isEntitywithlocation(java.lang.Integer blockId)
if it is an entitywithlocation |
boolean |
isInteraction(java.lang.Integer blockId)
if it is an interaction |
boolean |
isNormalInteraction(java.lang.Integer blockId)
if it is a normal interaction |
void |
removeNode(java.lang.Integer nodeId)
remove a node from the pathway structure |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MyPathwayGraph()
| Method Detail |
|---|
public void addNode(PathwayElementNode node)
node - the structure node informationpublic void removeNode(java.lang.Integer nodeId)
nodeId - the node id of the pathway element
public boolean isEntitywithlocation(java.lang.Integer blockId)
throws NoSuchNodeException
blockId - the blockid of the entitywithlocation
NoSuchNodeException - the node id does not exist
public boolean isInteraction(java.lang.Integer blockId)
throws NoSuchNodeException
blockId - the blockid of the node
NoSuchNodeException - the node id does not exist
public boolean isNormalInteraction(java.lang.Integer blockId)
throws NoSuchNodeException
blockId - the blockid of the node
NoSuchNodeException - the node id does not exist
public boolean isControlInteraction(java.lang.Integer blockId)
throws NoSuchNodeException
blockId - the blockid of current node
NoSuchNodeException - the node id does not existpublic java.util.ArrayList getDownstreamNodeIdList(java.lang.Integer blockId)
blockId - the record id to be query
public java.util.ArrayList getUpstreamNodeIdList(java.lang.Integer blockId)
blockId - the recordid to be query
public java.util.ArrayList getUpstreamEntityNodeIdList(java.lang.Integer blockId)
blockId - the current node id
public java.util.ArrayList getDownstreamEntityNodeIdList(java.lang.Integer blockId)
blockId - the current node id
public java.util.ArrayList getUpstreamInteractionNodeIdList(java.lang.Integer blockId)
blockId - the current node id
public java.util.ArrayList getDownstreamInteractionNodeIdList(java.lang.Integer blockId)
blockId - the current node id
public void addEdge(java.lang.Integer leftId,
java.lang.Integer rightId)
throws NoSuchNodeException
NoSuchNodeExceptionpublic java.util.Map getNodeMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||