Package | Description |
---|---|
net.sourceforge.anotherfsm |
AnotherFSM is yet another implementation of state machines,
a library for Java programming language.
|
net.sourceforge.anotherfsm.examples.first |
Introduction to the main features of AnotherFSM library.
|
net.sourceforge.anotherfsm.examples.qfsm |
This example re-implements the functionality of First example with
significant help of code generated from Qfsm diagram.
|
net.sourceforge.anotherfsm.examples.timeouts |
The example defines a simple state machine with connected and
disconnected states.
|
Modifier and Type | Field and Description |
---|---|
private State |
DeterministicStateMachine.currentState
The current state.
|
private State |
Transition.destination
The destination state.
|
private State |
Transition.source
The source state.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<State,TransitionMap> |
DeterministicStateMachine.stateTransitions
The transitions.
|
Modifier and Type | Method and Description |
---|---|
State |
SynchronizedStateMachine.getActiveState() |
State |
DeterministicStateMachine.getActiveState() |
State |
StateMachine.getActiveState()
Get the currently active state.
|
State |
Transition.getDestination()
Get the transition destination state.
|
State |
Transition.getSource()
Get the source state.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<State> |
SynchronizedStateMachine.getActiveStates() |
java.util.Set<State> |
DeterministicStateMachine.getActiveStates() |
java.util.Set<State> |
StateMachine.getActiveStates()
Get the currently active states.
|
java.util.Set<State> |
DeterministicStateMachine.getStates() |
java.util.Set<State> |
StateMachine.getStates()
Get all defined states.
|
Modifier and Type | Method and Description |
---|---|
void |
DeterministicStateMachine.addState(State state) |
void |
StateMachine.addState(State state)
Add a new state.
|
private void |
DeterministicStateMachine.addStateInternal(State state)
Add a new state to the state machine.
|
(package private) static java.lang.String |
Transition.format(State source,
Event event)
Helper method to format transition parameters to the string
representation.
|
(package private) static java.lang.String |
Transition.format(State source,
Event matchedEvent,
Event eventToProcess)
Helper method to format transition parameters to the string
representation.
|
(package private) static java.lang.String |
Transition.format(State source,
Event matchedEvent,
Event eventToProcess,
State destination)
Helper method to format transition parameters to the string
representation.
|
(package private) static java.lang.String |
Transition.format(State source,
Event event,
State destination)
Helper method to format transition parameters to the string
representation.
|
protected Transition |
DeterministicStateMachine.getTransition(State state,
Event event)
Get transition of a specified event type defined for a state.
|
(package private) void |
State.notifyEnter(boolean loopTransition,
State previous,
Event event,
State current)
The state was entered, notify listeners.
|
(package private) void |
TimeoutStateMachine.notifyEnter(State previous,
Event event,
State current) |
(package private) void |
DeterministicStateMachine.notifyEnter(State previous,
Event event,
State current)
Process all state enter callbacks.
|
(package private) void |
State.notifyExit(boolean loopTransition,
State current,
Event event,
State next)
The state was exited, notify listeners.
|
(package private) void |
DeterministicStateMachine.notifyExit(State current,
Event event,
State next)
Process all state exit callbacks.
|
(package private) void |
Transition.notifyTransition(State source,
Event event,
State destination)
The transition was processed, notify listeners.
|
(package private) void |
DeterministicStateMachine.notifyTransition(Transition transition,
State source,
Event event,
State destination)
Process all transition callbacks.
|
void |
StateAdapter.onStateEnter(State previous,
Event event,
State current) |
void |
StateListener.onStateEnter(State previous,
Event event,
State current)
The state was entered.
|
void |
StateAdapter.onStateExit(State current,
Event event,
State next) |
void |
StateListener.onStateExit(State current,
Event event,
State next)
The state was exited.
|
void |
TransitionAdapter.onTransition(State source,
Event event,
State destination) |
void |
TransitionListener.onTransition(State source,
Event event,
State destination)
The transition was processed.
|
void |
DeterministicStateMachine.setStartState(State state) |
void |
StateMachine.setStartState(State state)
Set the start state.
|
Constructor and Description |
---|
Transition(State state,
Event event)
Create the object.
|
Transition(State source,
Event event,
State destination)
Create the object.
|
Modifier and Type | Field and Description |
---|---|
State |
SearchFsm.stateA |
State |
SearchFsm.stateE |
State |
SearchFsm.stateF |
State |
SearchFsm.stateH |
State |
SearchFsm.stateM |
State |
SearchFsm.stateN |
State |
SearchFsm.stateO |
State |
SearchFsm.stateR |
State |
SearchFsm.stateS |
State |
SearchFsm.stateStart |
State |
SearchFsm.stateT |
Modifier and Type | Field and Description |
---|---|
State |
SearchStringFsm.stateA
"A" processed.
|
State |
SearchStringFsm.stateE
"Anothe" processed.
|
State |
SearchStringFsm.stateF
"AnotherF" processed.
|
State |
SearchStringFsm.stateH
"Anoth" processed.
|
State |
SearchStringFsm.stateM
"AnotherFSM" processed.
|
State |
SearchStringFsm.stateN
"An" processed.
|
State |
SearchStringFsm.stateO
"Ano" processed.
|
State |
SearchStringFsm.stateR
"Another" processed.
|
State |
SearchStringFsm.stateS
"AnotherFS" processed.
|
State |
SearchStringFsm.stateStart
The start state.
|
State |
SearchStringFsm.stateT
"Anot" processed.
|
Modifier and Type | Field and Description |
---|---|
State |
TimeoutConnectionFsm.connected
The client is connected.
|
State |
TimeoutConnectionFsm.disconnected
The client is disconnected.
|
Copyright 2013 Michal Turek, AnotherFSM.