public class StackAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>> extends java.util.Stack<AbstractSpaceT> implements LatticeAbstractState<StackAbstractState<AbstractSpaceT>>
StackAbstractState
represents a stack of LatticeAbstractState
s 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
index th element from the top of the stack. |
AbstractSpaceT |
peekOrDefault(int index,
AbstractSpaceT defaultState)
Returns the
index th 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, trimToSize
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isLess
equals, getPrecision, getStateByName, hashCode
public StackAbstractState<AbstractSpaceT> join(StackAbstractState<AbstractSpaceT> abstractState)
LatticeAbstractState
abstractState
.join
in interface LatticeAbstractState<StackAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>>>
public boolean isLessOrEqual(StackAbstractState<AbstractSpaceT> abstractState)
LatticeAbstractState
abstractState
.isLessOrEqual
in interface LatticeAbstractState<StackAbstractState<AbstractSpaceT extends LatticeAbstractState<AbstractSpaceT>>>
public StackAbstractState<AbstractSpaceT> copy()
AbstractState
copy
in interface AbstractState
public AbstractSpaceT popOrDefault(AbstractSpaceT defaultState)
defaultState
.public AbstractSpaceT peek(int index)
index
th 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)
index
th element from the top of the stack. If the stack does not have
enough elements, it returns the defaultState
.