public class PartitionImpl extends java.lang.Object implements Partition
14.08.2005 Time: 20:23:22
Constructor and Description |
---|
PartitionImpl(int p,
int n)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBottleneckP()
returns the bottleneck processor.
|
protected double |
getNeckValue(int i,
int pre,
int p)
The load of processor p, if it gets the tasks (pre, i].
|
double |
getPartitionValue()
partition bottleneck value.
|
int |
getSeparator(int pi)
the separator value for processor pi.
|
int[] |
getSeps()
the underlying 1D separator array.
|
void |
setArray(PrefixSum psum)
the prefix-summed task array.
|
void |
setSeparator(int pi,
int m)
The separator is set location m for processor pi.
|
java.lang.String |
toString() |
public PartitionImpl(int p, int n)
p
- the number of processors.n
- the number of tasks.public void setSeparator(int pi, int m)
Partition
setSeparator
in interface Partition
pi
- the processorm
- the separator index.public int[] getSeps()
Partition
public double getPartitionValue()
Partition
getPartitionValue
in interface Partition
protected double getNeckValue(int i, int pre, int p)
i
- the index of last processor to be assigned.pre
- the index of the task prior to the first processor to be assigned.p
- the processor index. (inapplicable for in homogenous systems)public void setArray(PrefixSum psum)
Partition
public int getSeparator(int pi)
Partition
getSeparator
in interface Partition
pi
- the processor.public int getBottleneckP()
Partition
getBottleneckP
in interface Partition
public java.lang.String toString()
toString
in class java.lang.Object