|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Permutation
The Permutation interface represents a general permutation
Method Summary | |
---|---|
PermutationFormatter |
getFormatter()
|
int |
getMappedValueOf(int pos)
Gets the value of the mapped element located at a specified position of the permutation |
int |
getNumberOfCycles()
|
Point |
getPointAt(int pos)
Gets a point at a specific position of the permutation |
int |
getPositionOf(int value)
Gets the position where a specified element of the permutation is located |
int |
getPositionOfMapped(int value)
Gets the position where a specified mapped element of the permutation is located |
int |
getValueOf(int pos)
Gets the value of the element located at a specified position of the permutation |
boolean |
isLinear()
Tests whether the permutation is linear or circular |
boolean |
isSorted()
|
int |
size()
|
Method Detail |
---|
int size()
int getNumberOfCycles()
boolean isSorted()
PermutationFormatter getFormatter()
Point getPointAt(int pos)
pos
- the given position
int getMappedValueOf(int pos)
pos
- the specified position
int getValueOf(int pos)
pos
- the specified position
int getPositionOf(int value)
value
- the value of the specified element
int getPositionOfMapped(int value)
value
- the value of the specified mapped element
boolean isLinear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |