SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | List of all members
LinkedListStat< E > Class Template Reference

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

Inheritance diagram for LinkedListStat< E >:
[legend]
Collaboration diagram for LinkedListStat< E >:
[legend]

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)
 
getFirst ()
 
getLast ()
 
removeFirst ()
 
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...
 
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)
 
remove (int index)
 
Iterator< E > iterator ()
 
ListIterator< E > listIterator ()
 
ListIterator< E > listIterator (int index)
 
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 ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ LinkedListStat() [1/7]

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

Parameters
inSimSimulator associate to the current variable.

◆ LinkedListStat() [2/7]

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

◆ LinkedListStat() [3/7]

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

◆ LinkedListStat() [4/7]

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

◆ LinkedListStat() [5/7]

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

◆ LinkedListStat() [6/7]

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

◆ LinkedListStat() [7/7]

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

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