abstract class PreprocessorAdapter extends ProcessorAdapter implements Preprocessor
Preprocessor.Processor<T extends Event>
logger
Constructor and Description |
---|
PreprocessorAdapter(java.lang.String name)
Create the object.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Preprocessor.Processor |
findProcessor(Event event)
Find appropriate processor for an event.
|
Event |
process(Event event)
Process or preprocess the event.
|
close, getName, start
public PreprocessorAdapter(java.lang.String name)
name
- the name of the event processorpublic Event process(Event event) throws FsmException
Preprocessor
process
in interface Preprocessor
process
in interface Processor
event
- the input event, a newly generated event or NullEvent to
ignore the eventFsmException
- if something failsNullEvent
protected abstract Preprocessor.Processor findProcessor(Event event)
event
- the eventCopyright 2013 Michal Turek, AnotherFSM.