Uses of Class
com.tnsai.fsm.State
Packages that use State
Package
Description
Finite State Machine (FSM) framework for modeling agent behavioral states.
-
Uses of State in com.tnsai.fsm
Methods in com.tnsai.fsm that return StateModifier and TypeMethodDescriptionState.Builder.build()Builds the state.StateMachine.getCurrentState()Gets the current state.StateMachineContext.getCurrentState()Gets the current state.Transition.getSource()Gets the source state.Transition.getTarget()Gets the target state.static StateCreates an initial state with the given name.static StateCreates a simple state with the given name.static StateCreates a terminal (final) state with the given name.Methods in com.tnsai.fsm that return types with arguments of type StateMethods in com.tnsai.fsm with parameters of type StateModifier and TypeMethodDescriptionvoidTransitionAction.execute(StateMachineContext context, State from, State to) Executes the action.static Transition.SourceBuilderStarts building a transition from the given state.StateMachine.Builder.initialState(State state) Sets the initial state explicitly.static Transition.EventBuilderCreates an internal transition (self-loop).default voidStateMachineListener.onNoTransition(StateMachine stateMachine, State state, Event event) Called when an event doesn't match any transition.default voidStateMachineListener.onStateEntered(StateMachine stateMachine, State state, Event event) Called when a state is entered.default voidStateMachineListener.onStateExited(StateMachine stateMachine, State state, Event event) Called when a state is exited.default voidStateMachineListener.onTransition(StateMachine stateMachine, State from, State to, Event event) Called when a transition occurs.Adds a state.Adds multiple states.Sets the target state.