Uses of Class
com.tnsai.fsm.StateMachine
Packages that use StateMachine
Package
Description
Finite State Machine (FSM) framework for modeling agent behavioral states.
-
Uses of StateMachine in com.tnsai.fsm
Methods in com.tnsai.fsm that return StateMachineModifier and TypeMethodDescriptionStateMachine.Builder.build()Builds the state machine.StateMachine.start()Starts the state machine.StateMachine.start(StateMachineContext context) Starts the state machine with the given context.Methods in com.tnsai.fsm with parameters of type StateMachineModifier and TypeMethodDescriptiondefault voidStateMachineListener.onCompleted(StateMachine stateMachine) Called when the state machine reaches a terminal state.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.static StringStateMachineVisualizer.toDot(StateMachine stateMachine) Generates Graphviz DOT syntax.static StringStateMachineVisualizer.toDot(StateMachine stateMachine, StateMachineVisualizer.DotOptions options) Generates Graphviz DOT syntax with options.static StringStateMachineVisualizer.toMermaid(StateMachine stateMachine) Generates Mermaid state diagram syntax.static StringStateMachineVisualizer.toMermaid(StateMachine stateMachine, StateMachineVisualizer.MermaidOptions options) Generates Mermaid state diagram syntax with options.static StringStateMachineVisualizer.toText(StateMachine stateMachine) Generates a simple text representation.