-
Notifications
You must be signed in to change notification settings - Fork 2
SpaceBase Class
sequenze edited this page Jun 19, 2017
·
5 revisions
Provides the basic functionality for a tuplespace datastructure. Represents a strongly typed set of tuples that can be access through pattern matching. Provides methods to query and manipulate the set. This class does not impose ordering on the underlying tuples. This is an abstract class.
Object
public abstract class SpaceBase : ISpace
Name | Description |
---|---|
SpaceBase(ITupleFactory) | Initializes a new instance of the SpaceBase class. All tuples will be created using the provided tuple factory. |
Name | Description |
---|---|
Get(IPattern) | Retrieves and removes the first tuple from the Space, matching the specified pattern. The operation will block if no elements match. |
Get(Object[]) | Retrieves and removes the first tuple from the Space, matching the specified pattern. The operation will block if no elements match. |
GetP(IPattern) | Retrieves and removes the first tuple from the Space, matching the specified pattern. The operation is non-blocking. The operation will return null if no elements match. |
GetP(Object[]) | Retrieves and removes the first tuple from the Space, matching the specified pattern. The operation is non-blocking. The operation will return null if no elements match. |
GetAll(IPattern) | Retrieves and removes all tuples from the Space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match. |
GetAll(Object[]) | Retrieves and removes all tuples from the Space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match. |
Query(IPattern) | Retrieves a clone of the first tuple from the Space, matching the specified pattern. The operation will block if no elements match. |
Query(Object[]) | Retrieves a clone of the first tuple from the Space, matching the specified pattern. The operation will block if no elements match. |
QueryP(IPattern) | Retrieves a clone of the first tuple from the Space, matching the specified pattern. The operation is non-blocking. The operation will return null if no elements match. |
QueryP(Object[]) | Retrieves a clone of the first tuple from the Space, matching the specified pattern.The operation is non-blocking.The operation will return null if no elements match. |
QueryAll(IPattern) | Retrieves clones of all tuples from the Space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match. |
QueryAll(Object[]) | Retrieves clones of all tuples from the Space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match. |
Put(ITuple) | Inserts the tuple passed as argument into the Space. |
Put(Object[]) | Inserts the tuple passed as argument into the Space. |
GetIndex(Int32) | Template method returning the index of where to insert a tuple. This method constitutes the ordering of the space. |