SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.simevents.LinkedListStat< E > Class Template Reference

This class extends ListWithStat, and uses a linked list as the internal data structure. More...

Inheritance diagram for umontreal.ssj.simevents.LinkedListStat< E >:
umontreal.ssj.simevents.ListWithStat< E > umontreal.ssj.util.TransformingList< OE, IE >

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.

Detailed Description

This class extends ListWithStat, and uses a linked list as the internal data structure.

Definition at line 38 of file LinkedListStat.java.

Constructor & Destructor Documentation

◆ LinkedListStat() [1/8]

umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat ( )

Constructs a new list, initially empty.

Definition at line 43 of file LinkedListStat.java.

◆ LinkedListStat() [2/8]

umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat ( Simulator inSim)

Constructs a new list, initially empty, and using the default simulator.

Parameters
inSimSimulator associate to the current variable.

Definition at line 52 of file LinkedListStat.java.

◆ LinkedListStat() [3/8]

umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat ( Collection<? extends E > c)

Constructs a list containing the elements of the specified collection, using the default simulator.

Parameters
ccollection containing elements to fill in this list with

Definition at line 62 of file LinkedListStat.java.

◆ LinkedListStat() [4/8]

umontreal.ssj.simevents.LinkedListStat< E >.LinkedListStat ( Simulator inSim,
Collection<? extends E > c )

Constructs a list containing the elements of the specified collection.

Parameters
inSimSimulator associate to the current variable.
ccollection containing elements to fill in this list with

Definition at line 72 of file LinkedListStat.java.

◆ LinkedListStat() [5/8]

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.

Parameters
namename for the list object

Definition at line 82 of file LinkedListStat.java.

◆ LinkedListStat() [6/8]

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.

Parameters
inSimSimulator associate to the current variable.
namename for the list object

Definition at line 93 of file LinkedListStat.java.

◆ LinkedListStat() [7/8]

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.

Parameters
ccollection containing elements to fill in this list with
namename for the list object

Definition at line 105 of file LinkedListStat.java.

◆ LinkedListStat() [8/8]

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.

Parameters
inSimSimulator associate to the current variable.
ccollection containing elements to fill in this list with
namename for the list object

Definition at line 118 of file LinkedListStat.java.


The documentation for this class was generated from the following file: