de.cesr.lara.houseplant
Class SimpleOutput

java.lang.Object
  extended by de.cesr.lara.houseplant.SimpleOutput
All Implemented Interfaces:
LaraAbstractEventSubscriber, LaraEventSubscriber

public class SimpleOutput
extends Object
implements LaraEventSubscriber

simple output. creates csv-file and provides method to append one line


Constructor Summary
SimpleOutput(Environment environment)
          creates the file with key as name and header
 
Method Summary
 void appendCurrentStateOfEnvironment()
          appends the current state of the environment to the output file
<T extends LaraEvent>
void
onEvent(T event)
          Will be called with an event as a parameter when an event the subscriber subscribed to occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleOutput

public SimpleOutput(Environment environment)
creates the file with key as name and header

Parameters:
key -
Method Detail

appendCurrentStateOfEnvironment

public void appendCurrentStateOfEnvironment()
appends the current state of the environment to the output file

Parameters:
value -

onEvent

public <T extends LaraEvent> void onEvent(T event)
Description copied from interface: LaraEventSubscriber
Will be called with an event as a parameter when an event the subscriber subscribed to occurs. Implement this to react on events. Typically you would start doing something like if (event instanceof VeryInterestingEvent) { //do something smart }

Specified by:
onEvent in interface LaraEventSubscriber