com.anji.integration
Class PresentationEventListener

java.lang.Object
  extended by com.anji.integration.PresentationEventListener
All Implemented Interfaces:
GeneticEventListener

public class PresentationEventListener
extends java.lang.Object
implements GeneticEventListener

Stores presentation XML data where it can be displayed, likely in a web browser.

Author:
Philip Tucker

Field Summary
static java.lang.String BASE_DIR_KEY
          poperties key, directory in which to store presentation data
 
Constructor Summary
PresentationEventListener(Run aRun)
          ctor
 
Method Summary
 void geneticEventFired(GeneticEvent event)
          Notify this GeneticEventListener that an event has been fired of a type to which this listener is subscribed.
 void init(Properties props)
          See Parameter Details for specific property settings.
 void storeRun(boolean isRunCompleted)
          Store/update run presentation data based on genotype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_DIR_KEY

public static final java.lang.String BASE_DIR_KEY
poperties key, directory in which to store presentation data

See Also:
Constant Field Values
Constructor Detail

PresentationEventListener

public PresentationEventListener(Run aRun)
ctor

Parameters:
aRun -
Method Detail

init

public void init(Properties props)
See Parameter Details for specific property settings.

Parameters:
props - configuration data

geneticEventFired

public void geneticEventFired(GeneticEvent event)
Description copied from interface: GeneticEventListener
Notify this GeneticEventListener that an event has been fired of a type to which this listener is subscribed.

Specified by:
geneticEventFired in interface GeneticEventListener
Parameters:
event - GeneticEvent.GENOTYPE_EVALUATED_EVENT is the only event handled; writes presentation data for run

storeRun

public void storeRun(boolean isRunCompleted)
Store/update run presentation data based on genotype.

Parameters:
isRunCompleted - true iff this is the last call to storeRun() for this run