experiment.event.capability
Class LinkValueEvent

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

public class LinkValueEvent
extends ValueEvent

Created by IntelliJ IDEA. User: andy Date: Mar 26, 2010 Includes the data update information for a single Link in a single time.


Field Summary
 
Fields inherited from class experiment.event.capability.ValueEvent
directiveList
 
Fields inherited from class experiment.event.Event
timestamp
 
Constructor Summary
LinkValueEvent(double timestamp, java.lang.String source, java.lang.String target, Rssi rssi)
          Default 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

LinkValueEvent

public LinkValueEvent(double timestamp,
                      java.lang.String source,
                      java.lang.String target,
                      Rssi rssi)
Default Constructor. Takes only the link's source and target node ids. If a capability has to be set, use the relative method after constructing the Event.

Parameters:
timestamp - the exact experiment moment that this event occured.
source - the source node's id.
target - the target node's id.
rssi - the new Rssi value. Can be null.
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.