Package | Description |
---|---|
net.sourceforge.anotherfsm |
AnotherFSM is yet another implementation of state machines,
a library for Java programming language.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
Preprocessor.Processor<T extends Event>
The real preprocessor of typed events.
|
Modifier and Type | Class and Description |
---|---|
class |
CharacterEvent
Event with character.
|
class |
ContainerEvent<T>
Event that contains another (whatever) object.
|
class |
NullEvent
Null event is equivalent of null in events world.
|
class |
OtherEvent
The other event is processed if no other event match and this transition is
defined for the source state.
|
class |
StartEvent
Start event, state machines send it on start of processing of events.
|
class |
TimeoutEvent
The timeout event.
|
class |
TypeEvent
Event with comparison based on the class type.
|
Modifier and Type | Method and Description |
---|---|
<T extends Event> |
TypePreprocessor.addProcessor(java.lang.Class<T> clazz,
Preprocessor.Processor<T> processor)
Add a new processor.
|
<T extends Event> |
EqualsPreprocessor.addProcessor(T event,
Preprocessor.Processor<T> processor)
Add a new processor.
|
Modifier and Type | Method and Description |
---|---|
Event |
Transition.getEvent()
Get the transition event.
|
Event |
OtherEvent.getSourceEvent()
Get the event that caused the transition.
|
Event |
ThreadProcessor.process(Event event) |
Event |
Preprocessor.process(Event event)
Process or preprocess the event.
|
Event |
SynchronizedStateMachine.process(Event event) |
Event |
DeterministicStateMachine.process(Event event) |
Event |
ProcesorGroup.process(Event event) |
Event |
Processor.process(Event event)
Process the event.
|
Event |
Preprocessor.Processor.process(T event)
Preprocess the event before passing it to the state machine.
|
Modifier and Type | Method and Description |
---|---|
protected Preprocessor.Processor |
EqualsPreprocessor.findProcessor(Event event) |
protected Preprocessor.Processor |
TypePreprocessor.findProcessor(Event event) |
protected Transition |
DeterministicStateMachine.getTransition(State state,
Event event)
Get transition of a specified event type defined for a state.
|
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.
|
Event |
ThreadProcessor.process(Event event) |
Event |
Preprocessor.process(Event event)
Process or preprocess the event.
|
Event |
SynchronizedStateMachine.process(Event event) |
Event |
DeterministicStateMachine.process(Event event) |
Event |
ProcesorGroup.process(Event event) |
Event |
Processor.process(Event event)
Process the event.
|
Constructor and Description |
---|
Transition(State state,
Event event)
Create the object.
|
Transition(State source,
Event event,
State destination)
Create the object.
|
Constructor and Description |
---|
ThreadProcessor(Processor processor,
boolean daemon,
java.util.concurrent.BlockingQueue<Event> queue)
Create the object.
|
Copyright 2012-2013 Michal Turek, AnotherFSM.