|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.moyoman.framework.DAGNode
This class represents a single ModuleName within the DAG.
Field Summary | |
private boolean |
hasCompleted
This is true if the Module represented by the ModuleName has already executed. |
private ModuleName |
name
The ModuleName object. |
private ArrayList |
next
Each element is a DAGNode representing the immediate successors of this node. |
private ArrayList |
previous
Each element is a DAGNode representing the immediate predecessors of this node. |
Constructor Summary | |
protected |
DAGNode(ModuleName mn)
Create the DAGNode object. |
Method Summary | |
protected void |
addNext(DAGNode node)
Add an immediate successor to this node. |
protected void |
addPrevious(DAGNode node)
Add an immediate predecessor to this node. |
Object |
clone()
Clone this object. |
protected ModuleName |
getModuleName()
Get the module name of this node. |
protected DAGNode[] |
getNext()
Get all of the immediate successors to this node. |
protected DAGNode[] |
getPrevious()
Get all of the immediate predecessors to this node. |
private boolean |
isCompleted()
Return the completed flag. |
protected boolean |
isReady()
Return whether this module is ready to run. |
protected void |
setCompleted(boolean flag)
Set the completed flag of this node. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ModuleName name
private boolean hasCompleted
private ArrayList previous
private ArrayList next
Constructor Detail |
protected DAGNode(ModuleName mn)
mn
- The ModuleName which this object represents.Method Detail |
protected void addPrevious(DAGNode node)
node
- The predecessor to this node.protected void addNext(DAGNode node)
node
- The successor to this node.protected void setCompleted(boolean flag)
flag
- The flag which indicates if this node has completed.private boolean isCompleted()
protected boolean isReady()
protected DAGNode[] getPrevious()
protected DAGNode[] getNext()
protected ModuleName getModuleName()
public Object clone()
clone
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |