experiment.event.capability
Class ValueEvent

java.lang.Object
  extended by experiment.event.Event
      extended by experiment.event.capability.ValueEvent
Direct Known Subclasses:
LinkValueEvent, NodeValueEvent

public abstract class ValueEvent
extends Event

Created by IntelliJ IDEA. User: andy Date: Mar 26, 2010 Conttains abstract methods and a directiveList. It provides a common way for manipulating ValueEvents.


Field Summary
protected  java.util.LinkedList<Directive> directiveList
           
 
Fields inherited from class experiment.event.Event
timestamp
 
Constructor Summary
ValueEvent()
           
 
Method Summary
 void addData(Directive d)
          Add a new Direcrive object to this ValueEvent
abstract  boolean apply(ExperimentState state)
          Applies this event to the experiment.
 
Methods inherited from class experiment.event.Event
getTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directiveList

protected java.util.LinkedList<Directive> directiveList
Constructor Detail

ValueEvent

public ValueEvent()
Method Detail

addData

public void addData(Directive d)
Add a new Direcrive object to this ValueEvent

Specified by:
addData in class Event
Parameters:
d - contains a single capability change

apply

public abstract boolean apply(ExperimentState state)
                       throws badSyntaxException
Applies this event to the experiment.

Specified by:
apply in class Event
Parameters:
state - the experiment state where this event belong to.
Returns:
true if event was successfully applied.
Throws:
badSyntaxException - in case of a mistake in the wiseml syntax.