Class TransitionList

java.lang.Object
games.stendhal.server.entity.npc.fsm.TransitionList

public class TransitionList extends Object
easy access to a list of transitions for debugging.
Author:
hendrik
  • Constructor Details

    • TransitionList

      public TransitionList(List<Transition> transitions)
      Creates a new TransitionList.
      Parameters:
      transitions - list of transitions
  • Method Details

    • getSourceStates

      public Set<ConversationStates> getSourceStates()
      gets all source states.
      Returns:
      Set of source states
    • getTriggersForState

      public Collection<Expression> getTriggersForState(ConversationStates state)
      returns a set of triggers for a given source state.
      Parameters:
      state - source state
      Returns:
      set of triggers
    • getTransitionsForStateAndTrigger

      public List<Transition> getTransitionsForStateAndTrigger(ConversationStates state, Expression trigger)
      returns a list of transitions for this state-trigger pair.
      Parameters:
      state - source state
      trigger - trigger
      Returns:
      list of transitions