|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.kjc.vanillaSlice.UniProcessors
public class UniProcessors
Implementation of at.backendSupport.ComputeNodesI to provide a collection of UniProcessors.
Provides mapping of int -> UniProcessor.
| Constructor Summary | |
|---|---|
UniProcessors(Integer numberOfNodes)
Construct a new collection and fill it with ComputeNodes. |
|
| Method Summary | |
|---|---|
boolean |
canAllocateNewComputeNode()
Assume that it is easy to add more nodes... |
UniProcessor |
getNthComputeNode(int n)
Get the nth element of the collection of compute nodes. |
boolean |
isValidComputeNodeNumber(int nodeNumber)
Does a number correspond to a compute node? |
int |
newComputeNode()
Create a new compute node if compute nodes are dynamically creatable. |
int |
size()
Return the (current) number of compute nodes. |
UniProcessor[] |
toArray()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UniProcessors(Integer numberOfNodes)
ComputeNodes.
numberOfNodes - | Method Detail |
|---|
public boolean canAllocateNewComputeNode()
canAllocateNewComputeNode in interface ComputeNodesI<UniComputeCodeStore>ComputeNodesI.newComputeNode() may throw any throwable.public UniProcessor getNthComputeNode(int n)
ComputeNodesI
getNthComputeNode in interface ComputeNodesI<UniComputeCodeStore>public boolean isValidComputeNodeNumber(int nodeNumber)
ComputeNodesI
isValidComputeNodeNumber in interface ComputeNodesI<UniComputeCodeStore>nodeNumber - number to check
public int newComputeNode()
ComputeNodesI
newComputeNode in interface ComputeNodesI<UniComputeCodeStore>#getComputeNode(int).public int size()
ComputeNodesI
size in interface ComputeNodesI<UniComputeCodeStore>public UniProcessor[] toArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||