experiment.event
Class Event
java.lang.Object
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
Constructor Summary |
Event()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timestamp
protected double timestamp
Event
public Event()
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