|
|||||||||||
| 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
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 2003 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
static nl.tudelft.simulation.event.EventType |
EVENTLIST_CHANCED_EVENT
The EVENTLIST_CHANGED_EVENT |
static java.lang.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(java.util.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 |
javax.swing.table.TableModel |
getTableModel()
returns the tableModel |
boolean |
remove(SimEventInterface value)
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. |
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 nl.tudelft.simulation.event.EventType EVENTLIST_CHANCED_EVENT
public static final java.lang.String[] HEADER
| Constructor Detail |
public TableModelEventList(EventListInterface origin)
origin - the origin| Method Detail |
public EventListInterface getOrigin()
public javax.swing.table.TableModel getTableModel()
public void setShowPackage(boolean showPackage)
showPackage - The showPackage to set.public boolean add(SimEventInterface value)
EventListInterface
add in interface EventListInterfaceadd in class RedBlackTree#add(nl.tudelft.simulation.dsol.formalisms.devs.SimEventInterface)public boolean addAll(java.util.Collection collection)
EventListInterface
addAll in interface EventListInterfaceaddAll in class RedBlackTree#addAll(java.util.Collection)public void clear()
EventListInterface
clear in interface EventListInterfaceclear in class RedBlackTree#clear()public boolean remove(SimEventInterface value)
EventListInterface
remove in interface EventListInterfaceremove in class RedBlackTree#remove(nl.tudelft.simulation.dsol.formalisms.devs.SimEventInterface)public boolean removeAll(java.util.Collection collection)
EventListInterface
removeAll in interface EventListInterfaceremoveAll in class RedBlackTree#removeAll(java.util.Collection)public SimEventInterface removeFirst()
EventListInterface
removeFirst in interface EventListInterfaceremoveFirst in class RedBlackTreeEventListInterface.removeFirst()public SimEventInterface removeLast()
EventListInterface
removeLast in interface EventListInterfaceremoveLast in class RedBlackTreeEventListInterface.removeLast()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||