experiment.event.topology
Class NodeEvent

java.lang.Object
  extended by experiment.event.Event
      extended by experiment.event.topology.NodeEvent

public class NodeEvent
extends Event

Created by IntelliJ IDEA. User: andy Date: Mar 11, 2010


Field Summary
 
Fields inherited from class experiment.event.Event
timestamp
 
Constructor Summary
NodeEvent(long timestamp, java.lang.String id, boolean status)
          Default constructor for Node Topology events.
 
Method Summary
 void addData(Directive data)
          Dummy method
 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
 

Constructor Detail

NodeEvent

public NodeEvent(long timestamp,
                 java.lang.String id,
                 boolean status)
Default constructor for Node Topology events.

Parameters:
timestamp - the Event timestamp
id - the id of the node that this event corresponds to
status - true to enable the entity, false to disable it
Method Detail

addData

public void addData(Directive data)
Dummy method

Specified by:
addData in class Event
Parameters:
data - the data to be added

apply

public 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.