|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PacketScheduler
This class provides a template for schedulers that will be used at routers. Every egress port of a router needs to instantiate a PacketScheduler object which it uses to determine the order in which packets should be sent out.
Method Summary | |
---|---|
Packet |
deque()
Removes a single packet and returns it. |
boolean |
enque(Packet np)
This method enques a packet in this scheduler. |
double |
getBaudRate()
Returns the baud rate of the egress port that is using this scheduler. |
int |
getRouterID()
Returns the router ID that hosts this scheduler. |
int |
getSchedID()
Returns the ID of this scheduler. |
String |
getSchedName()
Returns the name of this scheduler, if one was specified during setup. |
boolean |
isEmpty()
Determines whether the scheduler is currently keeping any packets in its queue(s). |
boolean |
setBaudRate(double rate)
Sets the baud rate that this scheduler will be sending packets at. |
boolean |
setRouterID(int routerID)
Sets the router ID that hosts this scheduler. |
int |
size()
Determines the number of packets that are currently enqueued in this scheduler. |
Method Detail |
---|
double getBaudRate()
setBaudRate(double)
boolean setBaudRate(double rate)
rate
- the baud rate of this scheduler (in bits/s)boolean enque(Packet np)
np
- A Packet to be enqued by this scheduler.
Packet deque()
boolean isEmpty()
int size()
String getSchedName()
int getSchedID()
int getRouterID()
boolean setRouterID(int routerID)
routerID
- the router ID that hosts this scheduler
|
GridSim 5.0 beta | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |