|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--laser.mpi.util.shuffle.Coordinate
A Coordinate is just a pair (proc, locPos) of ints representing a particular position of localData on a particular proc.
Field Summary | |
(package private) int |
locPos
The position in localData. |
(package private) int |
proc
The process ID (rank). |
Constructor Summary | |
Coordinate(int proc,
int locPos)
Constructs a new instance of Coordinate with the given process rank and local position. |
Method Summary | |
int |
locPos()
Returns the position in localData (locPos). |
int |
proc()
Returns the process rank (proc). |
java.lang.String |
toString()
Returns a string representation of this Coordinate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
int proc
int locPos
Constructor Detail |
public Coordinate(int proc, int locPos)
proc
- the procss ID (rank)locPos
- the position in localData
java.lang.IllegalArgumentException
- if proc or locPos is negativeMethod Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public int proc()
public int locPos()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |