de.cesr.lara.template
Class MyOutput

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

public class MyOutput
extends Object
implements LaraEventSubscriber

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


Constructor Summary
MyOutput(LaraEnvironment 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

MyOutput

public MyOutput(LaraEnvironment 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