public class ObjectDumperObserver extends DefaultObserver
Modifier and Type | Class and Description |
---|---|
static class |
ObjectDumperObserver.Marker |
Constructor and Description |
---|
ObjectDumperObserver() |
ObjectDumperObserver(OutputStream sink) |
Modifier and Type | Method and Description |
---|---|
OutputStream |
getDestinationFile() |
void |
notifySimulationEnd() |
void |
notifySimulationStart() |
void |
notifySimulationState(SimulationState state) |
void |
setDestinationFile(OutputStream destinationFile) |
void |
start()
Tell the component to start activity.
|
void |
stop()
Tell the component to cease activity.
|
notifySimulationConfiguration
public ObjectDumperObserver(OutputStream sink) throws IOException
IOException
public ObjectDumperObserver()
public OutputStream getDestinationFile()
public void setDestinationFile(OutputStream destinationFile) throws IOException
destinationFile
- The destinationFile to set.IOException
public void notifySimulationEnd()
notifySimulationEnd
in interface Observer
notifySimulationEnd
in class DefaultObserver
public void notifySimulationStart()
notifySimulationStart
in interface Observer
notifySimulationStart
in class DefaultObserver
public void notifySimulationState(SimulationState state)
notifySimulationState
in interface Observer
notifySimulationState
in class DefaultObserver
public void start()
Component
start
in interface Component
start
in class DefaultObserver
public void stop()
Component
stop
in interface Component
stop
in class DefaultObserver
Copyright © 2013. All Rights Reserved.