|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventListInterface
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 2002-2005 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Method Summary | |
---|---|
boolean |
add(SimEventInterface event)
adds an event to the eventlist |
boolean |
addAll(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(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 |
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(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 |
---|
boolean add(SimEventInterface event)
event
- the event to add
boolean addAll(Collection collection)
collection
- the collection
void clear()
boolean contains(SimEventInterface event)
event
- the event
boolean containsAll(Collection collection)
collection
- the collection to test
SimEventInterface first()
boolean isEmpty()
Iterator iterator()
SimEventInterface last()
boolean remove(SimEventInterface event)
event
- the event to be removed
boolean removeAll(Collection collection)
collection
- the colleciton
SimEventInterface removeFirst()
SimEventInterface removeLast()
int size()
SimEventInterface[] toArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |