public interface Processor
Modifier and Type | Method and Description |
---|---|
void |
close()
Finish processing of the events and free all allocated resources.
|
java.lang.String |
getName()
Get the name of the processor.
|
Event |
process(Event event)
Process the event.
|
void |
start()
Building of the processor is finished, prepare it to the events
processing.
|
java.lang.String getName()
void start() throws FsmException
FsmException
close()
void close()
close()
should be
avoided. The behavior is not defined and may cause unpredictable
behavior, e.g. NullPointerException
.start()
Event process(Event event) throws FsmException
event
- the input eventFsmException
- if something failsCopyright 2013 Michal Turek, AnotherFSM.