|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.cluster.NodeEnumerator
public class NodeEnumerator
Create a mapping from SIROperators and FlatNodes to unique numbers [0..n] used for thread ids. Also provides the service of getting an estimate of the stack size needed to execute a given node.
Constructor Summary | |
---|---|
NodeEnumerator()
|
Method Summary | |
---|---|
static FlatNode |
getFlatNode(int nodeID)
Get the FlatNode associated with a number. |
static int |
getFlatNodeId(FlatNode f)
Get the id number assigned to a FlatNode |
static int |
getIdOffset(int nodeID,
FlatNode[] arr)
Get offset of node in array or -1 if not there. |
static int |
getNumberOfNodes()
|
static SIROperator |
getOperator(int nodeID)
Used to get the SIROperator (filter, splitter, joiner) associated with an id number. |
static int |
getSIROperatorId(SIROperator f)
Get the id number assigned to SIROperator (filter, splitter, or joiner) |
static int |
getStackSize(int nodeID)
Returns an estimate of the maximum stack size needed to execute a given node. |
static void |
init(FlatNode top)
Set up static data structures for NodeEnumerator |
static void |
reset()
NodeEnumerator uses static data structures that need to be cleaned out. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeEnumerator()
Method Detail |
---|
public static void reset()
public static void init(FlatNode top)
first
- node in a flatgraphpublic static int getNumberOfNodes()
public static int getStackSize(int nodeID)
nodeID
- ID of node in question
public static SIROperator getOperator(int nodeID)
nodeID
- (thread id)
public static FlatNode getFlatNode(int nodeID)
nodeID
- number.
public static int getSIROperatorId(SIROperator f)
f
-
public static int getFlatNodeId(FlatNode f)
f
-
public static int getIdOffset(int nodeID, FlatNode[] arr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |