java.lang.Object
org.apache.flink.streaming.examples.statemachine.dfa.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:
  • Constructor Details

    • 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.
  • Method Details

    • eventType

      public EventType eventType()
    • targetState

      public State targetState()
    • prob

      public float prob()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object