massim.framework
Class ObjectDumperObserver

java.lang.Object
  extended by massim.framework.DefaultObserver
      extended by massim.framework.ObjectDumperObserver
All Implemented Interfaces:
Component, Observer

public class ObjectDumperObserver
extends DefaultObserver


Nested Class Summary
static class ObjectDumperObserver.Marker
           
 
Constructor Summary
ObjectDumperObserver()
           
ObjectDumperObserver(java.io.OutputStream sink)
           
 
Method Summary
 java.io.OutputStream getDestinationFile()
           
 void notifySimulationEnd()
           
 void notifySimulationStart()
           
 void notifySimulationState(SimulationState state)
           
 void setDestinationFile(java.io.OutputStream destinationFile)
           
 void start()
          Tell the component to start activity.
 void stop()
          Tell the component to cease activity.
 
Methods inherited from class massim.framework.DefaultObserver
notifySimulationConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectDumperObserver

public ObjectDumperObserver(java.io.OutputStream sink)
                     throws java.io.IOException
Throws:
java.io.IOException

ObjectDumperObserver

public ObjectDumperObserver()
Method Detail

getDestinationFile

public java.io.OutputStream getDestinationFile()
Returns:
Returns the destinationFile.

setDestinationFile

public void setDestinationFile(java.io.OutputStream destinationFile)
                        throws java.io.IOException
Parameters:
destinationFile - The destinationFile to set.
Throws:
java.io.IOException

notifySimulationEnd

public void notifySimulationEnd()
Specified by:
notifySimulationEnd in interface Observer
Overrides:
notifySimulationEnd in class DefaultObserver

notifySimulationStart

public void notifySimulationStart()
Specified by:
notifySimulationStart in interface Observer
Overrides:
notifySimulationStart in class DefaultObserver

notifySimulationState

public void notifySimulationState(SimulationState state)
Specified by:
notifySimulationState in interface Observer
Overrides:
notifySimulationState in class DefaultObserver

start

public void start()
Description copied from interface: Component
Tell the component to start activity.

Specified by:
start in interface Component
Overrides:
start in class DefaultObserver

stop

public void stop()
Description copied from interface: Component
Tell the component to cease activity.

Specified by:
stop in interface Component
Overrides:
stop in class DefaultObserver


Copyright © 2011. All Rights Reserved.