Package org.jspace
Class StackSpace
java.lang.Object
org.jspace.SequentialSpace
org.jspace.QueueSpace
org.jspace.StackSpace
- All Implemented Interfaces:
Space
public class StackSpace extends QueueSpace
-
Field Summary
Fields inherited from class org.jspace.SequentialSpace
bound, tuples
-
Constructor Summary
Constructors Constructor Description StackSpace()
Create an unbounded space based on stack.StackSpace(int bound)
Create a space based on stack of max sizebound
. -
Method Summary
Methods inherited from class org.jspace.QueueSpace
findAllTuples, findTuple
Methods inherited from class org.jspace.SequentialSpace
get, getAll, getp, put, query, queryAll, queryp, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StackSpace
public StackSpace()Create an unbounded space based on stack. -
StackSpace
public StackSpace(int bound)Create a space based on stack of max sizebound
.- Parameters:
bound
-
-
-
Method Details
-
addTuple
- Overrides:
addTuple
in classQueueSpace
-