|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectyass.state.StateTransition<T>
public class StateTransition<T extends State>
Encapsulates a generic state transition
| Field Summary | |
|---|---|
private T |
from
The previous state |
private double |
timestamp
The state transition timestamp |
private T |
to
The new state |
| Constructor Summary | |
|---|---|
StateTransition(T from,
T to,
double timestamp)
Constructs a new instance of StateTransition |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object object)
Compares an arbitrary object to this StateTransition, and calculates their relationship in accordance with the natural ordering of StateTransition objects. |
boolean |
equals(java.lang.Object o)
Determines if a supplied object is equal to this StateTransition. |
T |
getFromState()
Obtains the previous state |
double |
getTimestamp()
Obtains the state transition timestamp |
T |
getToState()
Obtains the new state |
int |
hashCode()
Obtains a hashcode value |
java.lang.String |
toString()
Obtains a textual representation of the state transition |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private T extends State from
private T extends State to
private double timestamp
| Constructor Detail |
|---|
public StateTransition(T from,
T to,
double timestamp)
StateTransition
timestamp - the state transition timestampfrom - the previous stateto - the new state| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare
public int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparableobject - the object to compare
public T getFromState()
public T getToState()
public double getTimestamp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||