|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectyass.packet.schedule.PacketScheduler
yass.packet.schedule.AsapPacketScheduler
public class AsapPacketScheduler
Simple packet scheduler implementation in which packets are scheduled such that they enter and leave the scheduler in strict FIFO order, are always available for transmission at any time, and are never dropped. In effect, this PacketScheduler-extending class implements a simple infinite-size queue.
| Field Summary |
|---|
| Fields inherited from class yass.packet.schedule.PacketScheduler |
|---|
accepted, dropped, extracted, maxScheduleSize, node, schedule |
| Constructor Summary | |
|---|---|
AsapPacketScheduler()
Constructs a new instance of AsapPacketScheduler |
|
| Method Summary | |
|---|---|
java.util.List<PacketScheduleEntry> |
extractAllWaiting(double delta)
Obtains the collection of packets scheduled for transmission, if any, during the current simulation period. |
PacketScheduleEntry |
extractNextWaiting(double delta)
Obtains the next packet scheduled for transmission, if any, during the current simulation period. |
PacketScheduleEntry |
reschedule(Packet packet)
Accepts the supplied packet for scheduling for later transmission. |
PacketScheduleEntry |
schedule(Packet packet)
Accepts the supplied packet for scheduling for later transmission. |
| Methods inherited from class yass.packet.schedule.PacketScheduler |
|---|
advanceTime, countScheduleEntries, dropMissedDeadlines, dropScheduleEntry, dropScheduleEntry, extractScheduleEntry, findScheduleEntry, getAccepted, getDropped, getExtracted, getMaxScheduleSize, getNode, getSchedule, insertScheduleEntryAtHead, insertScheduleEntryAtTail, insertScheduleEntryByDeadline, peekFirst, peekLast, setNode, sortSchedule |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsapPacketScheduler()
AsapPacketScheduler
| Method Detail |
|---|
public PacketScheduleEntry schedule(Packet packet)
schedule in class PacketSchedulerpacket - the packet
public PacketScheduleEntry reschedule(Packet packet)
reschedule in class PacketSchedulerpacket - the packet to reschedule
public PacketScheduleEntry extractNextWaiting(double delta)
extractNextWaiting in class PacketSchedulerdelta - the duration of the current simulation period, in seconds
public java.util.List<PacketScheduleEntry> extractAllWaiting(double delta)
extractAllWaiting in class PacketSchedulerdelta - the duration of the current simulation period, in seconds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||