Class ChoiceData<S,E>

java.lang.Object
org.springframework.statemachine.config.model.ChoiceData<S,E>
Type Parameters:
S - the type of state
E - the type of event

public class ChoiceData<S,E> extends Object
A simple data object keeping choice related configs in a same place.
  • Constructor Details

    • ChoiceData

      public ChoiceData(S source, S target, Guard<S,E> guard)
      Instantiates a new choice data.
      Parameters:
      source - the source
      target - the target
      guard - the guard
    • ChoiceData

      public ChoiceData(S source, S target, Guard<S,E> guard, Collection<Action<S,E>> actions)
      Instantiates a new choice data.
      Parameters:
      source - the source
      target - the target
      guard - the guard
      actions - the actions
  • Method Details

    • getSource

      public S getSource()
      Gets the source.
      Returns:
      the source
    • getTarget

      public S getTarget()
      Gets the target.
      Returns:
      the target
    • getGuard

      public Guard<S,E> getGuard()
      Gets the guard.
      Returns:
      the guard
    • getActions

      public Collection<Action<S,E>> getActions()
      Gets the actions.
      Returns:
      the actions