|
GridSim v3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractCollection
AbstractList
AbstractSequentialList
LinkedList
eduni.simjava.Evqueue
This class implements the event queue used by Sim_system
.
The event queue is separated into two subqueues, the future queue and the deferred queue. Newly arrived events are added to the future queue while events that the receiving entity is unable to process are placed in the deferred queue. The current implementation uses a Vector to store the events received.
This class is used internally by Sim_system
and should not be
directly accessed.
Sim_system
,
Serialized FormField Summary | |
(package private) double |
max_time
|
Fields inherited from class AbstractList |
modCount |
Constructor Summary | |
Evqueue()
Allocates a new Evqueue object. |
Method Summary | |
void |
add_event(Sim_event new_event)
Add a new event to the queue. |
Sim_event |
pop()
Remove and return the event at the top of the queue. |
Sim_event |
top()
Return the event at the top of the queue, without removing it. |
Methods inherited from class LinkedList |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
Methods inherited from class AbstractSequentialList |
iterator |
Methods inherited from class AbstractList |
equals, hashCode, listIterator, removeRange, subList |
Methods inherited from class AbstractCollection |
containsAll, isEmpty, removeAll, retainAll, toString |
Methods inherited from class Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface List |
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
Field Detail |
double max_time
Constructor Detail |
public Evqueue()
Method Detail |
public Sim_event pop()
public Sim_event top()
public void add_event(Sim_event new_event)
new_event
- The event to be put on the queue.
|
GridSim v3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |