|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.dsol.eventlists.RedBlackTree
nl.tudelft.simulation.dsol.eventlists.TableModelEventList
public class TableModelEventList
A TableModel implementation of an eventlist is an extionsion of the eventlist which upholds its own TableModel. This implementation is used to graphically display the events in the tree.
(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.
Field Summary | |
---|---|
static EventType |
EVENTLIST_CHANCED_EVENT
The EVENTLIST_CHANGED_EVENT |
static String[] |
HEADER
The tableHeader |
Fields inherited from class nl.tudelft.simulation.dsol.eventlists.RedBlackTree |
---|
BLACK, modCount, RED, root, size |
Constructor Summary | |
---|---|
TableModelEventList(EventListInterface origin)
constructs a new TableModelEventList |
Method Summary | |
---|---|
boolean |
add(SimEventInterface value)
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. |
EventListInterface |
getOrigin()
returns the TreeMapEventList |
TableModel |
getTableModel()
returns the tableModel |
boolean |
remove(SimEventInterface value)
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. |
void |
setShowPackage(boolean showPackage)
sets the showPackage |
Methods inherited from class nl.tudelft.simulation.dsol.eventlists.RedBlackTree |
---|
contains, containsAll, deleteEntry, first, firstEntry, isEmpty, iterator, last, size, successor, toArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EventType EVENTLIST_CHANCED_EVENT
public static final String[] HEADER
Constructor Detail |
---|
public TableModelEventList(EventListInterface origin)
origin
- the originMethod Detail |
---|
public EventListInterface getOrigin()
public TableModel getTableModel()
public void setShowPackage(boolean showPackage)
showPackage
- The showPackage to set.public boolean add(SimEventInterface value)
EventListInterface
add
in interface EventListInterface
add
in class RedBlackTree
value
- the event to add
#add(nl.tudelft.simulation.dsol.formalisms.devs.SimEventInterface)
public boolean addAll(Collection collection)
EventListInterface
addAll
in interface EventListInterface
addAll
in class RedBlackTree
collection
- the collection
#addAll(java.util.Collection)
public void clear()
EventListInterface
clear
in interface EventListInterface
clear
in class RedBlackTree
#clear()
public boolean remove(SimEventInterface value)
EventListInterface
remove
in interface EventListInterface
remove
in class RedBlackTree
value
- the event to be removed
#remove(nl.tudelft.simulation.dsol.formalisms.devs.SimEventInterface)
public boolean removeAll(Collection collection)
EventListInterface
removeAll
in interface EventListInterface
removeAll
in class RedBlackTree
collection
- the colleciton
#removeAll(java.util.Collection)
public SimEventInterface removeFirst()
EventListInterface
removeFirst
in interface EventListInterface
removeFirst
in class RedBlackTree
EventListInterface.removeFirst()
public SimEventInterface removeLast()
EventListInterface
removeLast
in interface EventListInterface
removeLast
in class RedBlackTree
EventListInterface.removeLast()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |