experiment.event.topology
Class LinkEvent
java.lang.Object
experiment.event.Event
experiment.event.topology.LinkEvent
public class LinkEvent
- extends Event
Created by IntelliJ IDEA.
User: andy
Date: Mar 11, 2010
Constructor Summary |
LinkEvent(long timestamp,
java.lang.String sid,
java.lang.String tid,
boolean status)
Default constructor for Link Topology events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 timestampsid
- the link's source idtid
- the link's target idstatus
- true to enable the entity, false to disable it
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.