| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Processor> |
processors
The inner processors.
|
| Constructor and Description |
|---|
ProcesorGroup()
Create the object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(Processor processor) |
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.
|
private final java.util.List<Processor> processors
public java.lang.String getName()
Processorpublic void start()
throws FsmException
Processorstart in interface ProcessorFsmExceptionProcessor.close()public void close()
ProcessorProcessor.close() should be
avoided. The behavior is not defined and may cause unpredictable
behavior, e.g. NullPointerException.close in interface ProcessorProcessor.start()public Event process(Event event) throws FsmException
Processorprocess in interface Processorevent - the input eventFsmException - if something failspublic void addProcessor(Processor processor)
Copyright 2013 Michal Turek, AnotherFSM.