Class Transition

  • All Implemented Interfaces:
    Serializable

    public class Transition
    extends Object
    implements Serializable
    A possible transition on a given event into a target state. The transition belongs to its originating state and has an associated probability that is used to generate random transition events.
    See Also:
    Serialized Form
    • Constructor Detail

      • Transition

        public Transition​(EventType eventType,
                          State targetState,
                          float prob)
        Creates a new transition.
        Parameters:
        eventType - The event that triggers the transition.
        targetState - The target state after the transition.
        prob - The probability of the transition.