public class StackAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>> extends java.util.Stack<AbstractSpaceT> implements LatticeAbstractState<StackAbstractState<AbstractSpaceT>>
StackAbstractState represents a stack of LatticeAbstractStates with the semilattice operators lifted to the stack.| Constructor and Description |
|---|
StackAbstractState() |
| Modifier and Type | Method and Description |
|---|---|
StackAbstractState<AbstractSpaceT> |
copy()
Creates a copy of itself.
|
boolean |
isLessOrEqual(StackAbstractState<AbstractSpaceT> abstractState)
Compares itself to the
abstractState. |
StackAbstractState<AbstractSpaceT> |
join(StackAbstractState<AbstractSpaceT> abstractState)
Computes a join over itself and the
abstractState. |
AbstractSpaceT |
peek(int index)
Returns the
indexth element from the top of the stack. |
AbstractSpaceT |
peekOrDefault(int index,
AbstractSpaceT defaultState)
Returns the
indexth element from the top of the stack. |
AbstractSpaceT |
popOrDefault(AbstractSpaceT defaultState)
Removes the top of the stack and returns it.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizeequals, finalize, getClass, notify, notifyAll, wait, wait, waitisLessequals, getPrecision, getStateByName, hashCodepublic StackAbstractState<AbstractSpaceT> join(StackAbstractState<AbstractSpaceT> abstractState)
LatticeAbstractStateabstractState.join in interface LatticeAbstractState<StackAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>>>public boolean isLessOrEqual(StackAbstractState<AbstractSpaceT> abstractState)
LatticeAbstractStateabstractState.isLessOrEqual in interface LatticeAbstractState<StackAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>>>public StackAbstractState<AbstractSpaceT> copy()
AbstractStatecopy in interface AbstractStatepublic AbstractSpaceT popOrDefault(AbstractSpaceT defaultState)
defaultState.public AbstractSpaceT peek(int index)
indexth element from the top of the stack.
If the stack does not have enough elements, it throws an exception.public AbstractSpaceT peekOrDefault(int index, AbstractSpaceT defaultState)
indexth element from the top of the stack.
If the stack does not have enough elements, it returns the defaultState.