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()
Processor
public void start() throws FsmException
Processor
start
in interface Processor
FsmException
Processor.close()
public void close()
Processor
Processor.close()
should be
avoided. The behavior is not defined and may cause unpredictable
behavior, e.g. NullPointerException
.close
in interface Processor
Processor.start()
public Event process(Event event) throws FsmException
Processor
process
in interface Processor
event
- the input eventFsmException
- if something failspublic void addProcessor(Processor processor)
Copyright 2013 Michal Turek, AnotherFSM.