|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.speckled.specksim.state.StateRecorder
@ConfigurableType(value="State Recorder") @Description(value="Records a sequence of state objects for later consumption") public class StateRecorder
Records a series of state objects for later consumption
| Constructor Summary | |
|---|---|
StateRecorder()
Constructs a new StateRecorder that will be manually
handed SimulatorState objects to be recorded |
|
StateRecorder(StateSink sink)
Constructs a new StateRecorder that will automatically
record the state objects that pass through a StateSink |
|
| Method Summary | |
|---|---|
Configurator |
getConfigurator()
Gets a Configurator object that describes and can manipulate the variables of this Configurable. |
java.io.File |
getOutput()
Gets the current output file |
void |
setOutput(java.io.File file)
Changes the output file. |
void |
startRecording()
Starts recording state objects. |
void |
stateRefreshed()
Called when the associated state is refreshed |
void |
stopRecording()
Stops recording incoming state objects |
long |
writeState(SimulatorState state)
Write a SimulatorState object to the stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateRecorder()
StateRecorder that will be manually
handed SimulatorState objects to be recorded
public StateRecorder(StateSink sink)
StateRecorder that will automatically
record the state objects that pass through a StateSink
sink - The sink that receives the state objects to be
recorded| Method Detail |
|---|
@ConfigurableVariable(value="Output file") public void setOutput(java.io.File file)
file - The new output file.@ConfigurableVariable(value="Output file") @Priority(value=1) public java.io.File getOutput()
@ConfigurableVariable(value="Start recording") @Priority(value=2) public void startRecording()
@ConfigurableVariable(value="Stop recording") @Priority(value=3) public void stopRecording()
public long writeState(SimulatorState state)
SimulatorState object to the stream
state - The state object
public void stateRefreshed()
StateListener
stateRefreshed in interface StateListenerpublic Configurator getConfigurator()
Configurable
getConfigurator in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||