|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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>
public class LinkedListStat<E>
This class extends ListWithStat
, 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 | |
---|---|
LinkedListStat()
Constructs a new list, initially empty. |
|
LinkedListStat(Collection<? extends E> c)
Constructs a list containing the elements of the specified collection, using the default simulator. |
|
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)
Constructs a new list, initially empty, and using the default simulator. |
|
LinkedListStat(Simulator inSim,
Collection<? extends E> c)
Constructs a list containing the elements of the specified collection. |
|
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. |
|
LinkedListStat(Simulator inSim,
String name)
Constructs a new list with name name. |
|
LinkedListStat(String name)
Constructs a new list with name name, using the default simulator. |
Method Summary | |
---|---|
void |
addFirst(E obj)
|
void |
addLast(E obj)
|
E |
getFirst()
|
E |
getLast()
|
E |
removeFirst()
|
E |
removeLast()
|
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 |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public LinkedListStat()
public LinkedListStat(Simulator inSim)
inSim
- Simulator associate to the current variable.public LinkedListStat(Collection<? extends E> c)
c
- collection containing elements to fill in this list withpublic LinkedListStat(Simulator inSim, Collection<? extends E> c)
inSim
- Simulator associate to the current variable.c
- collection containing elements to fill in this list withpublic LinkedListStat(String name)
name
- name for the list objectpublic LinkedListStat(Simulator inSim, String name)
inSim
- Simulator associate to the current variable.name
- name for the list objectpublic LinkedListStat(Collection<? extends E> c, String name)
c
- collection containing elements to fill in this list withname
- name for the list objectpublic LinkedListStat(Simulator inSim, Collection<? extends E> c, String name)
inSim
- Simulator associate to the current variable.c
- collection containing elements to fill in this list withname
- name for the list objectMethod Detail |
---|
public void addFirst(E obj)
public void addLast(E obj)
public E getFirst()
public E getLast()
public E removeFirst()
public E removeLast()
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |