|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ensieta.simulation.EventQueue
File d'événéments datés. Peut fonctionner en FIFO (First In, First Out) ou en scheduler (éléments ordonnés chronologiquement).
LinkedList| Field Summary | |
static long |
serialVersionUID
|
| Constructor Summary | |
EventQueue()
Constructeur, crée une file vide en mode scheduler. |
|
EventQueue(boolean isTimeStampOrdered)
Constructeur, crée une file vide. |
|
| Method Summary | |
int |
getLength()
Retourne la longueur de la file d'attente. |
edu.ensieta.simulation.Event |
getNextEvent()
Lit l'événement suivant, c'est-à-dire le premier de la file, en le retirant de la file. |
static void |
main(java.lang.String[] args)
|
void |
postEvent(edu.ensieta.simulation.Event evt)
Poste un événement dans la file. |
edu.ensieta.simulation.Event |
readNextEvent()
Lit l'événement suivant, c'est-à-dire le premier de la file, sans le retirer de la file. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long serialVersionUID
| Constructor Detail |
public EventQueue(boolean isTimeStampOrdered)
isTimeStampOrdered - Si true, la file est ordonné chronologiquement,
sinon elle fonctionne en FIFO.public EventQueue()
| Method Detail |
public int getLength()
public void postEvent(edu.ensieta.simulation.Event evt)
evt - Evénement à rajouter dans la file.public edu.ensieta.simulation.Event getNextEvent()
public edu.ensieta.simulation.Event readNextEvent()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||