public class SimEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EVENT_AP_CONTROLLER |
static int |
EVENT_END_LINK |
static int |
EVENT_END_ROUTER |
static int |
EVENT_END_SIMULATION |
static int |
EVENT_NEW_TRAFFIC_CONNECTION |
static int |
EVENT_ON_ROUTER |
static int |
EVENT_OUTPUT |
static int |
EVENT_START_LINK |
static int |
EVENT_START_ROUTER |
static int |
EVENT_START_SIMULATION |
Constructor and Description |
---|
SimEvent(int type,
long time,
java.lang.Object data,
EventEngine engine)
Create event -- note that time is time since start of
event schedule
|
Modifier and Type | Method and Description |
---|---|
void |
followEvent(EventScheduler s,
GlobalController g,
java.lang.Object o)
Use engines or global controller to get actions which should
follow this event
|
java.lang.Object |
getData() |
EventEngine |
getEngine()
Accessor function for engine associated with event
|
long |
getTime() |
int |
getType() |
void |
preceedEvent(EventScheduler s,
GlobalController g)
Use engines or global controller to get actions which should
preceed this event
|
java.lang.String |
toString() |
public static final int EVENT_END_SIMULATION
public static final int EVENT_START_SIMULATION
public static final int EVENT_START_ROUTER
public static final int EVENT_END_ROUTER
public static final int EVENT_START_LINK
public static final int EVENT_END_LINK
public static final int EVENT_AP_CONTROLLER
public static final int EVENT_OUTPUT
public static final int EVENT_ON_ROUTER
public static final int EVENT_NEW_TRAFFIC_CONNECTION
public SimEvent(int type, long time, java.lang.Object data, EventEngine engine)
public long getTime()
public int getType()
public java.lang.Object getData()
public EventEngine getEngine()
public void followEvent(EventScheduler s, GlobalController g, java.lang.Object o)
public void preceedEvent(EventScheduler s, GlobalController g)
public java.lang.String toString()
toString
in class java.lang.Object
User Space Routing 0.10.3