public class EventTreeList extends EventList
EventList
using a
tree-based list as a container for the event-notes, yielding both access and
removal of event-list entries in O(log n) time.
Disadvantages compared to EventVector
include
non-thread-safeness (however, discrete Event simulation should never attempt
concurrent modifications of the event-list) and the slightly higher memory
requirement.
The internal tree-based list is provided by the class
org.apache.commons.collections.list.TreeList
from the Commons
Collections package from the Apache Jakarta Commons Project (see
http://jakarta.apache.org/commons/index.html). Thus, his product includes
software developed by The Apache Software Foundation
(http://www.apache.org/). For License see
http://www.apache.org/licenses/LICENSE-2.0 (of which a copy can be found in
the root directory of this distribtuon).org.apache.commons.collections.list.TreeList
,
EventVectorList
,
EventNote
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a string representing the entries of this tree list in a row.
|