public class ListAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>> extends java.util.ArrayList<AbstractSpaceT> implements LatticeAbstractState<ListAbstractState<AbstractSpaceT>>
ListAbstractState
represents a list of LatticeAbstractState
s with the
semilattice operators lifted to the list.Constructor and Description |
---|
ListAbstractState()
Create a list abstract state with initial capacity 0.
|
ListAbstractState(int initalCapacity)
Create a list abstract state with selected initial capacity.
|
Modifier and Type | Method and Description |
---|---|
ListAbstractState<AbstractSpaceT> |
copy()
Creates a copy of itself.
|
AbstractSpaceT |
getOrDefault(int index,
AbstractSpaceT defaultState)
Returns the abstract state at
index , if present, returns the defaultState
otherwise. |
boolean |
isLessOrEqual(ListAbstractState<AbstractSpaceT> abstractState)
Compares itself to the
abstractState . |
ListAbstractState<AbstractSpaceT> |
join(ListAbstractState<AbstractSpaceT> abstractState)
Computes a join over itself and the
abstractState . |
AbstractSpaceT |
set(int index,
AbstractSpaceT element,
AbstractSpaceT defaultState)
Sets an element at
index to elem . |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isLess
equals, getPrecision, getStateByName, hashCode
public ListAbstractState()
public ListAbstractState(int initalCapacity)
initalCapacity
- initial capacitypublic ListAbstractState<AbstractSpaceT> join(ListAbstractState<AbstractSpaceT> abstractState)
LatticeAbstractState
abstractState
.join
in interface LatticeAbstractState<ListAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>>>
public boolean isLessOrEqual(ListAbstractState<AbstractSpaceT> abstractState)
LatticeAbstractState
abstractState
.isLessOrEqual
in interface LatticeAbstractState<ListAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>>>
public ListAbstractState<AbstractSpaceT> copy()
AbstractState
copy
in interface AbstractState
public AbstractSpaceT getOrDefault(int index, AbstractSpaceT defaultState)
index
, if present, returns the defaultState
otherwise.public AbstractSpaceT set(int index, AbstractSpaceT element, AbstractSpaceT defaultState)
index
to elem
. Extends its length and pads with defaultState
, if necessary.