Class JunctionData<S,E>

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

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

    • JunctionData

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

      public JunctionData(S source, S target, Guard<S,E> guard, Collection<Action<S,E>> actions)
      Instantiates a new junction 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