|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The EventListInterface defines the required methods for discrete event lists. A number of competitive algoritms can be used to implement such eventlist. Among these implementations are the Red-Black, the SplayTree, and others.
(c) copyright 2003 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Method Summary | |
boolean |
add(SimEventInterface event)
adds an event to the eventlist |
boolean |
addAll(java.util.Collection collection)
adds a collection of events to the tree |
void |
clear()
clears the eventlist by removing all its scheduled events. |
boolean |
contains(SimEventInterface event)
returns whether event is an entry of the eventlist |
boolean |
containsAll(java.util.Collection collection)
returns whether the collection is in the list. |
SimEventInterface |
first()
returns the first scheduled event |
boolean |
isEmpty()
returns whether the eventlist is empty |
java.util.Iterator |
iterator()
returns the iterator for this eventlist |
SimEventInterface |
last()
returns the last scheduled event |
boolean |
remove(SimEventInterface event)
removes the event from this tree |
boolean |
removeAll(java.util.Collection collection)
removes a collection of events from this tree |
SimEventInterface |
removeFirst()
removes the first event from the eventlist. |
SimEventInterface |
removeLast()
removes the last event from the eventlist. |
int |
size()
returns the number of scheduled events |
SimEventInterface[] |
toArray()
returns the eventlist as array of simevents |
| Method Detail |
public boolean add(SimEventInterface event)
event - the event to add
public boolean addAll(java.util.Collection collection)
collection - the collection
public void clear()
public boolean contains(SimEventInterface event)
event - the event
public boolean containsAll(java.util.Collection collection)
collection - the collection to test
public SimEventInterface first()
public boolean isEmpty()
public java.util.Iterator iterator()
public SimEventInterface last()
public boolean remove(SimEventInterface event)
event - the event to be removed
public boolean removeAll(java.util.Collection collection)
collection - the colleciton
public SimEventInterface removeFirst()
public SimEventInterface removeLast()
public int size()
public SimEventInterface[] toArray()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||