|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.sir.lowering.partition.PartitionRecord
public class PartitionRecord
This is just a structure for recording what has been assigned to a given partition.
Constructor Summary | |
---|---|
PartitionRecord()
|
Method Summary | |
---|---|
void |
add(SIRContainer cont)
Add container |
void |
add(SIROperator op,
int k)
Add operator |
static HashMap<SIROperator,Integer> |
asIntegerMap(LinkedList<PartitionRecord> partitions)
Given that |
static HashMap<SIROperator,Object> |
asStringMap(LinkedList<PartitionRecord> partitions)
Given that |
boolean |
contains(SIROperator op)
Returns whether or not this partition contains |
SIROperator |
get(int i)
Returns the i'th contents of this |
int |
getWork()
|
int |
size()
Returns number of operators in this. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartitionRecord()
Method Detail |
---|
public int getWork()
public void add(SIROperator op, int k)
opwith work amount
kto this partition. Requires that this does not already contain
op.
public void add(SIRContainer cont)
contto this. Requires that this does not already contain
cont.
public SIROperator get(int i)
public int size()
public boolean contains(SIROperator op)
preop.
public static HashMap<SIROperator,Object> asStringMap(LinkedList<PartitionRecord> partitions)
partitionsis a list of PartitionRecords, returns a hashmap in which each SIROperator that's in one of the partitions is mapped to a STRING representing the list of partitions it's assigned to.
public static HashMap<SIROperator,Integer> asIntegerMap(LinkedList<PartitionRecord> partitions)
partitionsis a list of PartitionRecords, returns a hashmap in which each SIROperator that's in one of the partitions is mapped to an Integer representing the list of partitions it's assigned to. Unlike asStringMap, requires that each operator is mapped to only one partition.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |