Package org.biojava.bio.dp
Class TrainerTransition
- java.lang.Object
-
- org.biojava.bio.dp.TrainerTransition
-
- All Implemented Interfaces:
Serializable
public class TrainerTransition extends Object implements 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.
- Author:
- Matthew Pocock
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TrainerTransition(TransitionTrainer trainer, State from, State to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(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()
-
-
-
Constructor Detail
-
TrainerTransition
public TrainerTransition(TransitionTrainer trainer, State from, State to)
-
-
Method Detail
-
equals
public boolean equals(Object o) throws ClassCastException
Two transitions are equal if they have the same trainer, from and to states.- Overrides:
equals
in classObject
- Throws:
ClassCastException
-
-