experiment.event
Class Event

java.lang.Object
  extended by experiment.event.Event
Direct Known Subclasses:
LinkEvent, NodeEvent, ValueEvent

public abstract class Event
extends java.lang.Object

Created by IntelliJ IDEA. User: andy Date: Mar 11, 2010 Implements the information for a a single change in the network


Field Summary
protected  double timestamp
           
 
Constructor Summary
Event()
           
 
Method Summary
abstract  void addData(Directive data)
           
abstract  boolean apply(ExperimentState state)
          Abstract definition of a function that applies the event to the experiment.
 double getTimestamp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timestamp

protected double timestamp
Constructor Detail

Event

public Event()
Method Detail

addData

public abstract void addData(Directive data)

apply

public abstract boolean apply(ExperimentState state)
                       throws badSyntaxException
Abstract definition of a function that applies the event to the experiment.

Parameters:
state - The experiment State to apply the event.
Returns:
true if event was successfully applied.
Throws:
badSyntaxException - in case of a mistake in the wiseml syntax.

getTimestamp

public double getTimestamp()
Returns:
the Event's timestamp