This class extends ListWithStat, and uses a linked list as the internal data structure. More...
Public Member Functions | |
| LinkedListStat () | |
| Constructs a new list, initially empty. | |
| LinkedListStat (Simulator inSim) | |
| Constructs a new list, initially empty, and using the default simulator. | |
| LinkedListStat (Collection<? extends E > c) | |
| Constructs a list containing the elements of the specified collection, using the default simulator. | |
| LinkedListStat (Simulator inSim, Collection<? extends E > c) | |
| Constructs a list containing the elements of the specified collection. | |
| LinkedListStat (String name) | |
| Constructs a new list with name name, using the default simulator. | |
| LinkedListStat (Simulator inSim, String name) | |
| Constructs a new list with name name. | |
| LinkedListStat (Collection<? extends E > c, String name) | |
| Constructs a new list containing the elements of the specified collection c and with name name, using the default simulator. | |
| LinkedListStat (Simulator inSim, Collection<? extends E > c, String name) | |
| Constructs a new list containing the elements of the specified collection c and with name name. | |
<tt>LinkedList</tt> methods | |
See the JDK documentation for more information about these methods. | |
| Public Member Functions inherited from umontreal.ssj.simevents.ListWithStat< E > | |
| ListWithStat (List< Node< E > > nodeList) | |
| Constructs a new list with internal data structure using the default simulator and implemented by nodeList. | |
| ListWithStat (Simulator inSim, List< Node< E > > nodeList) | |
| Constructs a new list with internal data structure implemented by nodeList. | |
| ListWithStat (List< Node< E > > nodeList, Collection<? extends E > c) | |
| Constructs a list containing the elements of the specified collection, whose elements are stored into nodeList and using the default simulator. | |
| ListWithStat (Simulator inSim, List< Node< E > > nodeList, Collection<? extends E > c) | |
| Constructs a list containing the elements of the specified collection, whose elements are stored into nodeList. | |
| ListWithStat (List< Node< E > > nodeList, String name) | |
| Constructs a new list with name name, internal list nodeList, and using the default simulator. | |
| ListWithStat (Simulator inSim, List< Node< E > > nodeList, String name) | |
| Constructs a new list with name name, and internal list nodeList. | |
| ListWithStat (List< Node< E > > nodeList, Collection<? extends E > c, String name) | |
| Constructs a new list containing the elements of the specified collection c, with name name, internal list nodeList, and using the default simulator. | |
| ListWithStat (Simulator inSim, List< Node< E > > nodeList, Collection<? extends E > c, String name) | |
| Constructs a new list containing the elements of the specified collection c, with name name, and internal list nodeList. | |
| Simulator | simulator () |
| Returns the simulator associated with this list. | |
| void | setSimulator (Simulator sim) |
| Sets the simulator associated with this list. | |
| boolean | getStatCollecting () |
| Returns true if the list collects statistics about its size and sojourn times of elements, and false otherwise. | |
| void | setStatCollecting (boolean b) |
| Starts or stops collecting statistics on this list. | |
| void | initStat () |
Reinitializes the two statistical probes created by setStatCollecting(true) and makes an update for the probe on the list size. | |
| double | getInitTime () |
| Returns the last simulation time initStat was called. | |
| Accumulate | statSize () |
| Returns the statistical probe on the evolution of the size of the list as a function of the simulation time. | |
| Tally | statSojourn () |
| Returns the statistical probe on the sojourn times of the objects in the list. | |
| String | report () |
Returns a string containing a statistical report on the list, provided that setStatCollecting(true) has been called before for this list. | |
| String | getName () |
| Returns the name associated to this list, or null if no name was assigned. | |
| Public Member Functions inherited from umontreal.ssj.util.TransformingList< OE, IE > | |
| TransformingList (List< IE > fromList) | |
| Creates a new transforming list wrapping the inner list fromList. | |
| abstract OE | convertFromInnerType (IE e) |
| Converts an element in the inner list to an element of the outer type. | |
| abstract IE | convertToInnerType (OE e) |
| Converts an element of the outer type to an element for the inner list. | |
This class extends ListWithStat, and uses a linked list as the internal data structure.
Definition at line 38 of file LinkedListStat.java.
| umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat | ( | ) |
Constructs a new list, initially empty.
Definition at line 43 of file LinkedListStat.java.
| umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat | ( | Simulator | inSim | ) |
Constructs a new list, initially empty, and using the default simulator.
| inSim | Simulator associate to the current variable. |
Definition at line 52 of file LinkedListStat.java.
| umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat | ( | Collection<? extends E > | c | ) |
Constructs a list containing the elements of the specified collection, using the default simulator.
| c | collection containing elements to fill in this list with |
Definition at line 62 of file LinkedListStat.java.
| umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat | ( | Simulator | inSim, |
| Collection<? extends E > | c ) |
Constructs a list containing the elements of the specified collection.
| inSim | Simulator associate to the current variable. |
| c | collection containing elements to fill in this list with |
Definition at line 72 of file LinkedListStat.java.
| umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat | ( | String | name | ) |
Constructs a new list with name name, using the default simulator.
This name can be used to identify the list in traces and reports.
| name | name for the list object |
Definition at line 82 of file LinkedListStat.java.
| umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat | ( | Simulator | inSim, |
| String | name ) |
Constructs a new list with name name.
This name can be used to identify the list in traces and reports.
| inSim | Simulator associate to the current variable. |
| name | name for the list object |
Definition at line 93 of file LinkedListStat.java.
| umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat | ( | Collection<? extends E > | c, |
| String | name ) |
Constructs a new list containing the elements of the specified collection c and with name name, using the default simulator.
This name can be used to identify the list in traces and reports.
| c | collection containing elements to fill in this list with |
| name | name for the list object |
Definition at line 105 of file LinkedListStat.java.
| umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat | ( | Simulator | inSim, |
| Collection<? extends E > | c, | ||
| String | name ) |
Constructs a new list containing the elements of the specified collection c and with name name.
This name can be used to identify the list in traces and reports.
| inSim | Simulator associate to the current variable. |
| c | collection containing elements to fill in this list with |
| name | name for the list object |
Definition at line 118 of file LinkedListStat.java.