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 Transition |
TimeoutStateMachine.TimeoutTask.timeoutTransition
The transition with TimeoutEvent that should be processed.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Event,Transition> |
TransitionMap.transitions
The transitions.
|
Modifier and Type | Method and Description |
---|---|
Transition |
TransitionMap.getTransition(Event event)
Get a transition for the event.
|
protected Transition |
DeterministicStateMachine.getTransition(State state,
Event event)
Get transition of a specified event type defined for a state.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Transition> |
TransitionMap.getTransitions()
Get all defined transitions.
|
java.util.Set<Transition> |
DeterministicStateMachine.getTransitions() |
java.util.Set<Transition> |
StateMachine.getTransitions()
Get all defined transitions.
|
Modifier and Type | Method and Description |
---|---|
void |
TransitionMap.addTransition(Transition transition)
Add a new transition.
|
void |
DeterministicStateMachine.addTransition(Transition transition) |
void |
StateMachine.addTransition(Transition transition)
Add a new transition.
|
(package private) void |
DeterministicStateMachine.notifyTransition(Transition transition,
State source,
Event event,
State destination)
Process all transition callbacks.
|
private void |
TimeoutStateMachine.proccessTimeoutTransition(Transition timeoutTransition,
java.lang.Object stateEnterId,
java.lang.Object stateEnterIdNonLoop)
Process the timeout transition.
|
private Event |
DeterministicStateMachine.processInternal(Transition transition,
Event eventToProcess,
Event matchedEvent)
Real processing of the event.
|
Constructor and Description |
---|
TimeoutStateMachine.TimeoutTask(Transition timeoutTransition,
java.lang.Object stateEnterId,
java.lang.Object stateEnterIdNonLoop)
Create the object.
|
Modifier and Type | Field and Description |
---|---|
Transition |
SearchFsm.trAOther |
Transition |
SearchFsm.trAtoN |
Transition |
SearchFsm.trEOther |
Transition |
SearchFsm.trEtoR |
Transition |
SearchFsm.trFOther |
Transition |
SearchFsm.trFtoS |
Transition |
SearchFsm.trHOther |
Transition |
SearchFsm.trHtoE |
Transition |
SearchFsm.trMOther |
Transition |
SearchFsm.trNOther |
Transition |
SearchFsm.trNtoO |
Transition |
SearchFsm.trOOther |
Transition |
SearchFsm.trOtoT |
Transition |
SearchFsm.trROther |
Transition |
SearchFsm.trRtoF |
Transition |
SearchFsm.trSOther |
Transition |
SearchFsm.trStartOther |
Transition |
SearchFsm.trStartToA |
Transition |
SearchFsm.trStoM |
Transition |
SearchFsm.trTOther |
Transition |
SearchFsm.trTtoH |
Modifier and Type | Field and Description |
---|---|
Transition |
SearchStringFsm.stateA_CharacterEvent_instancen_stateN
Transition from
stateA to stateN on CharacterEvent.instance('n') event. |
Transition |
SearchStringFsm.stateA_OtherEvent_instance_stateStart
Transition from
stateA to stateStart on OtherEvent.instance event. |
Transition |
SearchStringFsm.stateE_CharacterEvent_instancer_stateR
Transition from
stateE to stateR on CharacterEvent.instance('r') event. |
Transition |
SearchStringFsm.stateE_OtherEvent_instance_stateStart
Transition from
stateE to stateStart on OtherEvent.instance event. |
Transition |
SearchStringFsm.stateF_CharacterEvent_instanceS_stateS
Transition from
stateF to stateS on CharacterEvent.instance('S') event. |
Transition |
SearchStringFsm.stateF_OtherEvent_instance_stateStart
Transition from
stateF to stateStart on OtherEvent.instance event. |
Transition |
SearchStringFsm.stateH_CharacterEvent_instancee_stateE
Transition from
stateH to stateE on CharacterEvent.instance('e') event. |
Transition |
SearchStringFsm.stateH_OtherEvent_instance_stateStart
Transition from
stateH to stateStart on OtherEvent.instance event. |
Transition |
SearchStringFsm.stateM_OtherEvent_instance_stateStart
Transition from
stateM to stateStart on OtherEvent.instance event. |
Transition |
SearchStringFsm.stateN_CharacterEvent_instanceo_stateO
Transition from
stateN to stateO on CharacterEvent.instance('o') event. |
Transition |
SearchStringFsm.stateN_OtherEvent_instance_stateStart
Transition from
stateN to stateStart on OtherEvent.instance event. |
Transition |
SearchStringFsm.stateO_CharacterEvent_instancet_stateT
Transition from
stateO to stateT on CharacterEvent.instance('t') event. |
Transition |
SearchStringFsm.stateO_OtherEvent_instance_stateStart
Transition from
stateO to stateStart on OtherEvent.instance event. |
Transition |
SearchStringFsm.stateR_CharacterEvent_instanceF_stateF
Transition from
stateR to stateF on CharacterEvent.instance('F') event. |
Transition |
SearchStringFsm.stateR_OtherEvent_instance_stateStart
Transition from
stateR to stateStart on OtherEvent.instance event. |
Transition |
SearchStringFsm.stateS_CharacterEvent_instanceM_stateM
Transition from
stateS to stateM on CharacterEvent.instance('M') event. |
Transition |
SearchStringFsm.stateS_OtherEvent_instance_stateStart
Transition from
stateS to stateStart on OtherEvent.instance event. |
Transition |
SearchStringFsm.stateStart_CharacterEvent_instanceA_stateA
Transition from
stateStart to stateA on CharacterEvent.instance('A') event. |
Transition |
SearchStringFsm.stateStart_OtherEvent_instance_stateStart
Transition from
stateStart to stateStart on OtherEvent.instance event. |
Transition |
SearchStringFsm.stateT_CharacterEvent_instanceh_stateH
Transition from
stateT to stateH on CharacterEvent.instance('h') event. |
Transition |
SearchStringFsm.stateT_OtherEvent_instance_stateStart
Transition from
stateT to stateStart on OtherEvent.instance event. |
Modifier and Type | Field and Description |
---|---|
Transition |
TimeoutConnectionFsm.connected_ConnectionStateEvent_instanceCONNECT_connected
Transition from
connected to connected on ConnectionStateEvent.instanceCONNECT event. |
Transition |
TimeoutConnectionFsm.connected_ConnectionStateEvent_instanceDISCONNECT_disconnected
Transition from
connected to disconnected on ConnectionStateEvent.instanceDISCONNECT event. |
Transition |
TimeoutConnectionFsm.connected_TimeoutEvent_instance10000TimeoutEvent_Type_LOOP_NO_RESTART_disconnected
Transition from
connected to disconnected on TimeoutEvent.instance(10000,TimeoutEvent.Type.LOOP_NO_RESTART) event. |
Transition |
TimeoutConnectionFsm.disconnected_ConnectionStateEvent_instanceCONNECT_connected
Transition from
disconnected to connected on ConnectionStateEvent.instanceCONNECT event. |
Transition |
TimeoutConnectionFsm.disconnected_ConnectionStateEvent_instanceDISCONNECT_disconnected
Transition from
disconnected to disconnected on ConnectionStateEvent.instanceDISCONNECT event. |
Transition |
TimeoutConnectionFsm.disconnected_TimeoutEvent_instance10000TimeoutEvent_Type_LOOP_RESTART_disconnected
Transition from
disconnected to disconnected on TimeoutEvent.instance(10000,TimeoutEvent.Type.LOOP_RESTART) event. |
Copyright 2013 Michal Turek, AnotherFSM.