SSJ
3.3.1
Stochastic Simulation in Java
|
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. More... | |
LinkedListStat (Collection<? extends E > c) | |
Constructs a list containing the elements of the specified collection, using the default simulator. More... | |
LinkedListStat (Simulator inSim, Collection<? extends E > c) | |
Constructs a list containing the elements of the specified collection. More... | |
LinkedListStat (String name) | |
Constructs a new list with name name , using the default simulator. More... | |
LinkedListStat (Simulator inSim, String name) | |
Constructs a new list with name name . More... | |
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. More... | |
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 . More... | |
`LinkedList` methods | |
See the JDK documentation for more information about these methods. | |
void | addFirst (E obj) |
void | addLast (E obj) |
E | getFirst () |
E | getLast () |
E | removeFirst () |
E | removeLast () |
Public Member Functions inherited from ListWithStat< E > | |
ListWithStat (List< Node< E >> nodeList) | |
Constructs a new list with internal data structure using the default simulator and implemented by nodeList . More... | |
ListWithStat (Simulator inSim, List< Node< E >> nodeList) | |
Constructs a new list with internal data structure implemented by nodeList . More... | |
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. More... | |
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 . More... | |
ListWithStat (List< Node< E >> nodeList, String name) | |
Constructs a new list with name name , internal list nodeList , and using the default simulator. More... | |
ListWithStat (Simulator inSim, List< Node< E >> nodeList, String name) | |
Constructs a new list with name name , and internal list nodeList . More... | |
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. More... | |
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 . More... | |
E | convertFromInnerType (Node< E > node) |
Node< E > | convertToInnerType (E element) |
Simulator | simulator () |
Returns the simulator associated with this list. More... | |
void | setSimulator (Simulator sim) |
Sets the simulator associated with this list. More... | |
void | clear () |
void | add (int index, E obj) |
E | remove (int index) |
Iterator< E > | iterator () |
ListIterator< E > | listIterator () |
ListIterator< E > | listIterator (int index) |
E | set (int index, E element) |
boolean | getStatCollecting () |
Returns true if the list collects statistics about its size and sojourn times of elements, and false otherwise. More... | |
void | setStatCollecting (boolean b) |
Starts or stops collecting statistics on this list. More... | |
void | initStat () |
Reinitializes the two statistical probes created by setStatCollecting(true) and makes an update for the probe on the list size. More... | |
double | getInitTime () |
Returns the last simulation time initStat was called. More... | |
Accumulate | statSize () |
Returns the statistical probe on the evolution of the size of the list as a function of the simulation time. More... | |
Tally | statSojourn () |
Returns the statistical probe on the sojourn times of the objects in the list. More... | |
String | report () |
Returns a string containing a statistical report on the list, provided that setStatCollecting(true) has been called before for this list. More... | |
String | getName () |
Returns the name associated to this list, or null if no name was assigned. More... | |
Public Member Functions inherited from TransformingList< OE, IE > | |
TransformingList (List< IE > fromList) | |
Creates a new transforming list wrapping the inner list fromList . More... | |
List< IE > | getInnerList () |
abstract OE | convertFromInnerType (IE e) |
Converts an element in the inner list to an element of the outer type. More... | |
abstract IE | convertToInnerType (OE e) |
Converts an element of the outer type to an element for the inner list. More... | |
void | add (int index, OE element) |
void | clear () |
OE | get (int index) |
Iterator< OE > | iterator () |
ListIterator< OE > | listIterator () |
ListIterator< OE > | listIterator (int index) |
OE | remove (int index) |
OE | set (int index, OE element) |
int | size () |
This class extends ListWithStat, and uses a linked list as the internal data structure.
LinkedListStat | ( | Simulator | inSim | ) |
Constructs a new list, initially empty, and using the default simulator.
inSim | Simulator associate to the current variable. |
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 |
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 |
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 |
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 |
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 |
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 |