experiment.event.topology
Class LinkEvent

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

public class LinkEvent
extends Event

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


Field Summary
 
Fields inherited from class experiment.event.Event
timestamp
 
Constructor Summary
LinkEvent(long timestamp, java.lang.String sid, java.lang.String tid, boolean status)
          Default constructor for Link 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

LinkEvent

public LinkEvent(long timestamp,
                 java.lang.String sid,
                 java.lang.String tid,
                 boolean status)
Default constructor for Link Topology events.

Parameters:
timestamp - the Event timestamp
sid - the link's source id
tid - the link's target id
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.