experiment.event.capability
Class NodeValueEvent
java.lang.Object
experiment.event.Event
experiment.event.capability.ValueEvent
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
Constructor Summary |
NodeValueEvent(double timestamp,
java.lang.String nodeId,
Position newPosition)
Default Constructor. |
NodeValueEvent(long timestamp,
java.lang.String id)
Simple Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 IdnewPosition
- 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
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.