|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.speckled.specksim.state.StateProcessor
public abstract class StateProcessor
StateProcessors are useful when you want to do some
processing on the state, and then use the results both in
visualisation and in statistic gathering without duplicating the
work. Note that you can make StateProcessors
Configurable if you wish.
| Constructor Summary | |
|---|---|
StateProcessor()
|
|
| Method Summary | |
|---|---|
protected abstract void |
doProcessing(StateSink statesink)
Override this method to do the actual work of the processor. |
abstract java.lang.String |
getName()
Gets the name of this StateProcessor |
protected void |
processState()
This should be called by subclasses every time that the output of the processor is requested. |
protected void |
refreshStateListeners()
Sub classes can call this method whenever they are changed in order for other state consumers to take note of the change |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateProcessor()
| Method Detail |
|---|
public abstract java.lang.String getName()
protected final void processState()
protected abstract void doProcessing(StateSink statesink)
statesink - The state to processprotected final void refreshStateListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||