All Packages This Package Class Hierarchy Class Search Index
Class edu.utah.janos.nodeos.CommSpace
java.lang.Object
|
+----edu.utah.janos.nodeos.CommSpace
class CommSpace
extends java.lang.Object
{
// Fields 2
private int currentSize;
private final CommSpaceElement[] table;
// Constructors 1
CommSpace(int);
// Methods 7
private final void checkIndex(int);
CommSpaceElement read(int) throws ArrayIndexOutOfBoundsException;
final int size();
CommSpaceElement swap(int, CommSpaceElement);
CommSpaceElement take(int) throws ArrayIndexOutOfBoundsException;
CommSpaceElement waitToTake(int) throws ArrayIndexOutOfBoundsException, InterruptedException;
void write(int, CommSpaceElement) throws ArrayIndexOutOfBoundsException;
}
Variation on an array, with some tuple-space like properties.
Objects are not shared between flows, they are copied on read.
- Author:
-
Janos Ministry of Development
private final CommSpaceElement[] table
private int currentSize
CommSpace(int size)
final int size()
private final void checkIndex(int index)
void write(int index,
CommSpaceElement elem) throws ArrayIndexOutOfBoundsException
Write the given element at the given index. Note
that this creates cross-process pointers..
CommSpaceElement take(int index) throws ArrayIndexOutOfBoundsException
CommSpaceElement waitToTake(int index) throws ArrayIndexOutOfBoundsException, InterruptedException
CommSpaceElement read(int index) throws ArrayIndexOutOfBoundsException
CommSpaceElement swap(int index,
CommSpaceElement elem)
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7