umontreal.iro.lecuyer.simevents
Class LinkedListStat<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<OE>
-
- umontreal.iro.lecuyer.util.TransformingList<E,ListWithStat.Node<E>>
-
- umontreal.iro.lecuyer.simevents.ListWithStat<E>
-
- umontreal.iro.lecuyer.simevents.LinkedListStat<E>
-
- All Implemented Interfaces:
- java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>
public class LinkedListStat<E> extends ListWithStat<E>
This class extendsListWithStat, and uses a linked list as the internal data structure.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class umontreal.iro.lecuyer.simevents.ListWithStat
ListWithStat.Node<E>
-
-
Constructor Summary
Constructors Constructor and Description LinkedListStat()Constructs a new list, initially empty.LinkedListStat(java.util.Collection<? extends E> c)Constructs a list containing the elements of the specified collection, using the default simulator.LinkedListStat(java.util.Collection<? extends E> c, java.lang.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)Constructs a new list, initially empty, and using the default simulator.LinkedListStat(Simulator inSim, java.util.Collection<? extends E> c)Constructs a list containing the elements of the specified collection.LinkedListStat(Simulator inSim, java.util.Collection<? extends E> c, java.lang.String name)Constructs a new list containing the elements of the specified collection c and with name name.LinkedListStat(Simulator inSim, java.lang.String name)Constructs a new list with name name.LinkedListStat(java.lang.String name)Constructs a new list with name name, using the default simulator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddFirst(E obj)voidaddLast(E obj)EgetFirst()EgetLast()EremoveFirst()EremoveLast()-
Methods inherited from class umontreal.iro.lecuyer.simevents.ListWithStat
add, clear, convertFromInnerType, convertToInnerType, getInitTime, getName, getStatCollecting, initStat, iterator, listIterator, listIterator, remove, report, set, setSimulator, setStatCollecting, simulator, statSize, statSojourn
-
Methods inherited from class umontreal.iro.lecuyer.util.TransformingList
get, getInnerList, size
-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, lastIndexOf, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
LinkedListStat
public LinkedListStat()
Constructs a new list, initially empty.
-
LinkedListStat
public LinkedListStat(Simulator inSim)
Constructs a new list, initially empty, and using the default simulator.- Parameters:
inSim- Simulator associate to the current variable.
-
LinkedListStat
public LinkedListStat(java.util.Collection<? extends E> c)
Constructs a list containing the elements of the specified collection, using the default simulator.- Parameters:
c- collection containing elements to fill in this list with
-
LinkedListStat
public LinkedListStat(Simulator inSim, java.util.Collection<? extends E> c)
Constructs a list containing the elements of the specified collection.- Parameters:
inSim- Simulator associate to the current variable.c- collection containing elements to fill in this list with
-
LinkedListStat
public LinkedListStat(java.lang.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:
name- name for the list object
-
LinkedListStat
public LinkedListStat(Simulator inSim, java.lang.String name)
Constructs a new list with name name. This name can be used to identify the list in traces and reports.- Parameters:
inSim- Simulator associate to the current variable.name- name for the list object
-
LinkedListStat
public LinkedListStat(java.util.Collection<? extends E> c, java.lang.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:
c- collection containing elements to fill in this list withname- name for the list object
-
LinkedListStat
public LinkedListStat(Simulator inSim, java.util.Collection<? extends E> c, java.lang.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:
inSim- Simulator associate to the current variable.c- collection containing elements to fill in this list withname- name for the list object
-
-
DMelt 3.0 © DataMelt by jWork.ORG