| Package | Description | 
|---|---|
| net.sourceforge.anotherfsm | 
 AnotherFSM is yet another implementation of state machines,
 a library for Java programming language. 
 | 
| net.sourceforge.anotherfsm.examples.timeouts | 
 The example defines a simple state machine with connected and
 disconnected states. 
 | 
| 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. 
 | 
private static class  | 
ThreadProcessor.ShutdownEvent
Helper event to stop the internal thread on close. 
 | 
class  | 
TimeoutEvent
The timeout event. 
 | 
class  | 
TypeEvent
Event with comparison based on the class type. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
private Event | 
Transition.event
The event. 
 | 
private Event | 
OtherEvent.sourceEvent
The source event that caused this transition. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
private java.util.Map<Event,Preprocessor.Processor<? extends Event>> | 
EqualsPreprocessor.processors
The procesors. 
 | 
private java.util.Map<Event,Preprocessor.Processor<? extends Event>> | 
EqualsPreprocessor.processors
The procesors. 
 | 
private java.util.Map<java.lang.Class<? extends Event>,Preprocessor.Processor<? extends Event>> | 
TypePreprocessor.processors
The procesors. 
 | 
private java.util.Map<java.lang.Class<? extends Event>,Preprocessor.Processor<? extends Event>> | 
TypePreprocessor.processors
The procesors. 
 | 
private java.util.concurrent.BlockingQueue<Event> | 
ThreadProcessor.queue
The queue for storing of the incoming events before their processing. 
 | 
private java.util.Map<Event,Transition> | 
TransitionMap.transitions
The transitions. 
 | 
| 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. 
 | 
private Event | 
DeterministicStateMachine.preprocessEvent(Event event)
Preprocess event using all registered preprocessors (recursive). 
 | 
Event | 
ThreadProcessor.process(Event event)  | 
Event | 
PreprocessorAdapter.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. 
 | 
private Event | 
DeterministicStateMachine.processInternal(Transition transition,
               Event eventToProcess,
               Event matchedEvent)
Real processing of the event. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected Preprocessor.Processor | 
EqualsPreprocessor.findProcessor(Event event)  | 
protected abstract Preprocessor.Processor | 
PreprocessorAdapter.findProcessor(Event event)
Find appropriate processor for an event. 
 | 
protected Preprocessor.Processor | 
TypePreprocessor.findProcessor(Event event)  | 
(package private) static java.lang.String | 
Transition.format(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 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. 
 | 
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. 
 | 
(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. 
 | 
private Event | 
DeterministicStateMachine.preprocessEvent(Event event)
Preprocess event using all registered preprocessors (recursive). 
 | 
Event | 
ThreadProcessor.process(Event event)  | 
Event | 
PreprocessorAdapter.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. 
 | 
private void | 
DeterministicStateMachine.processCheck(Event event)
Check the input event and the internal state before processing the event. 
 | 
private Event | 
DeterministicStateMachine.processInternal(Transition transition,
               Event eventToProcess,
               Event matchedEvent)
Real processing of the event. 
 | 
| Constructor and Description | 
|---|
OtherEvent(Event sourceEvent)
Create the object. 
 | 
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. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
ConnectionStateEvent
Connection state event. 
 | 
Copyright 2013 Michal Turek, AnotherFSM.