public class ListAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>> extends java.util.ArrayList<AbstractSpaceT> implements LatticeAbstractState<ListAbstractState<AbstractSpaceT>>
ListAbstractState represents a list of LatticeAbstractStates 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, trimToSizeequals, finalize, getClass, notify, notifyAll, wait, wait, waitisLessequals, getPrecision, getStateByName, hashCodepublic ListAbstractState()
public ListAbstractState(int initalCapacity)
initalCapacity - initial capacitypublic ListAbstractState<AbstractSpaceT> join(ListAbstractState<AbstractSpaceT> abstractState)
LatticeAbstractStateabstractState.join in interface LatticeAbstractState<ListAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>>>public boolean isLessOrEqual(ListAbstractState<AbstractSpaceT> abstractState)
LatticeAbstractStateabstractState.isLessOrEqual in interface LatticeAbstractState<ListAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>>>public ListAbstractState<AbstractSpaceT> copy()
AbstractStatecopy in interface AbstractStatepublic 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.