public class BackgroundTrafficEngine extends java.lang.Object implements EventEngine
Constructor and Description |
---|
BackgroundTrafficEngine(int time,
java.lang.String parms)
Contructor from Parameter string
|
Modifier and Type | Method and Description |
---|---|
void |
followEvent(SimEvent e,
EventScheduler s,
GlobalController g,
java.lang.Object o)
Add or remove events following a simulation event
|
int |
getBytes()
number of bytes to transfer
|
double |
getRate()
rate at which to transfer bytes/sec
|
int |
getReceivePort(int rId)
Return a free port on which to listen for a given router Id
|
void |
initialEvents(EventScheduler s,
GlobalController g)
Initial events to add to schedule
|
void |
preceedEvent(SimEvent e,
EventScheduler s,
GlobalController g)
Add or remove events following a simulation event
|
boolean |
preferEmptyNodes()
Will empty nodes be connected to more frequently
|
void |
startStopEvents(EventScheduler s,
GlobalController g)
Initial events to add to schedule
|
public BackgroundTrafficEngine(int time, java.lang.String parms) throws EventEngineException
EventEngineException
public void startStopEvents(EventScheduler s, GlobalController g)
startStopEvents
in interface EventEngine
public void initialEvents(EventScheduler s, GlobalController g)
initialEvents
in interface EventEngine
public void preceedEvent(SimEvent e, EventScheduler s, GlobalController g)
preceedEvent
in interface EventEngine
public void followEvent(SimEvent e, EventScheduler s, GlobalController g, java.lang.Object o)
followEvent
in interface EventEngine
public boolean preferEmptyNodes()
public double getRate()
public int getReceivePort(int rId)
public int getBytes()
User Space Routing 0.10.3