|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--laser.mpi.util.shuffle.Mapping
A Mapping is a pair (source, target) of two Coordinates, representing the starting and destination coordinates for a move.
| Field Summary | |
(package private) Coordinate |
source
The coordinate for the source. |
(package private) Coordinate |
target
The coordinate for the target. |
| Constructor Summary | |
Mapping(Coordinate source,
Coordinate target)
Constructs a new instance of Mapping with the given source and target coordinates. |
|
| Method Summary | |
Coordinate |
source()
Returns the source coordinate. |
Coordinate |
target()
Returns the target coordinate. |
java.lang.String |
toString()
Returns a string representation of this Mapping. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
Coordinate source
Coordinate target
| Constructor Detail |
public Mapping(Coordinate source,
Coordinate target)
source - the source coordinatetarget - the target coordinate
java.lang.IllegalArgumentException - if source or target is null| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic Coordinate source()
public Coordinate target()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||