experiment.event.capability
Class NodeValueEvent

java.lang.Object
  extended by experiment.event.Event
      extended by experiment.event.capability.ValueEvent
          extended by experiment.event.capability.NodeValueEvent

public class NodeValueEvent
extends ValueEvent

Created by IntelliJ IDEA. User: andy Date: Mar 11, 2010 Includes the update information for a single Node


Field Summary
 
Fields inherited from class experiment.event.capability.ValueEvent
directiveList
 
Fields inherited from class experiment.event.Event
timestamp
 
Constructor Summary
NodeValueEvent(double timestamp, java.lang.String nodeId, Position newPosition)
          Default Constructor.
NodeValueEvent(long timestamp, java.lang.String id)
          Simple Constructor.
 
Method Summary
 boolean apply(ExperimentState state)
          Applies this event to the experiment.
 
Methods inherited from class experiment.event.capability.ValueEvent
addData
 
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
 

Constructor Detail

NodeValueEvent

public NodeValueEvent(double timestamp,
                      java.lang.String nodeId,
                      Position newPosition)
Default Constructor.

Parameters:
timestamp - the exact experiment moment that this event occured.
nodeId - the node's Id
newPosition - the Node's new position

NodeValueEvent

public NodeValueEvent(long timestamp,
                      java.lang.String id)
Simple Constructor.

Parameters:
timestamp - the exact experiment moment that this event occured.
id - the node's Id
Method Detail

apply

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

Specified by:
apply in class ValueEvent
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.