Uses of Class
com.amalgamasimulation.engine.StateMachine
Packages that use StateMachine
-
Uses of StateMachine in com.amalgamasimulation.engine
Methods in com.amalgamasimulation.engine that return StateMachineModifier and TypeMethodDescriptionStateMachine.addAllTransitions()Adds all default transitions between all pairs of different states.StateMachine.addEnterAction(BiConsumer<T, Object> action) Adds an action that will be executed every time this state machine enters any state.StateMachine.addEnterAction(T state, StateMachine.HandlerOrder handlerOrder, Consumer<Object> action) Adds an action that will be executed every time after the specified state is entered.StateMachine.addEnterAction(T state, Consumer<Object> action) Adds an action that will be executed every time after the specified state is entered.StateMachine.addExitAction(T state, StateMachine.HandlerOrder handlerOrder, Consumer<Object> action) Adds an action that will be executed every time before the specified state is exited.StateMachine.addExitAction(T state, Consumer<Object> action) Adds an action that will be executed every time before the specified state is exited.StateMachine.addSingleEnterActionHandler(T state, Consumer<Object> action) Adds an action that will be executed at most once after the specified state is entered.Adds the specified state to this state machine.StateMachine.addTransition(T fromState, T toState) Adds a default transition to this state machine.StateMachine.addTransition(T fromState, T toState, Predicate<Object> predicate) Adds a transition with predicate to this state machine.StateMachine.setThrowExceptionForUnusedMessages(boolean throwExceptionForUnusedMessages) Specifies if this state machine should throw aRuntimeExceptionif it receives a message that does not cause it to immediately activate any transition. -
Uses of StateMachine in com.amalgamasimulation.graphagent.views
Constructors in com.amalgamasimulation.graphagent.views with parameters of type StateMachineModifierConstructorDescriptionStateMachineShape(Supplier<Boolean> visible, Supplier<Point> point, StateMachine<T> stateMachine, Supplier<Double> timeSupplier)