|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.autoeditor.automatonvisualizer.layouts.vyhnanovska.StateMapping<T>
public class StateMapping<T>
Maps State
s and Coordinate
s for the plotting purposes.
Constructor Summary | |
---|---|
StateMapping(int numberOfStates)
Number of states must be known before creation and has to be specified in this constructor. |
Method Summary | |
---|---|
void |
addStateCoordinate(State<T> state,
Coordinate coordinate)
Adds State <--> Coordinate mapping. |
State<T> |
getStateAtCoordinate(Coordinate coordinate)
Get State mapped with a specified Coordinate . |
Coordinate |
getStateCoordinate(State<T> state)
Get Coordinate mapped with a specified State . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateMapping(int numberOfStates)
numberOfStates
- Number of states we would like to map.Method Detail |
---|
public void addStateCoordinate(State<T> state, Coordinate coordinate)
State
<--> Coordinate
mapping.
state
- coordinate
- public State<T> getStateAtCoordinate(Coordinate coordinate)
State
mapped with a specified Coordinate
.
coordinate
- Coordinate
mapped with desired State
.
State
mapped with specified Coordinate
.public Coordinate getStateCoordinate(State<T> state)
Coordinate
mapped with a specified State
.
state
- State
mapped with desired Coordinate
.
Coordinate
mapped with specified State
.
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |