org.biojava.bio.dp
Class TrainerTransition
java.lang.Object
|
+--org.biojava.bio.dp.TrainerTransition
- public class TrainerTransition
- extends java.lang.Object
- implements java.io.Serializable
This is a small and ugly class for storing a trainer and a transition.
It is hash-code-able, and has a sensible equality operator.
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(java.lang.Object o)
Two transitions are equal if they have the same trainer, from and to states. |
int |
hashCode()
The hash code is model.hashCode() ^ from.hashCode() ^ to.hashCode() |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
toString,
wait,
wait,
wait |
trainer
public TransitionTrainer trainer
from
public State from
to
public State to
TrainerTransition
public TrainerTransition(TransitionTrainer trainer,
State from,
State to)
equals
public boolean equals(java.lang.Object o)
throws java.lang.ClassCastException
- Two transitions are equal if they have the same trainer, from and to states.
- Overrides:
- equals in class java.lang.Object
hashCode
public int hashCode()
- The hash code is model.hashCode() ^ from.hashCode() ^ to.hashCode()
- Overrides:
- hashCode in class java.lang.Object