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 1
private final CommSpaceElement[] table;
// Constructors 1
CommSpace(int);
// Methods 9
private final void checkIndex(int);
private void notifyOnIndex(int);
CommSpaceElement read(int) throws ArrayIndexOutOfBoundsException;
final int size();
CommSpaceElement swap(int, CommSpaceElement);
CommSpaceElement take(int) throws ArrayIndexOutOfBoundsException;
private void waitOnIndex(int) throws InterruptedException;
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
The table mapping indicies to elements.
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 function may create 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)
private void notifyOnIndex(int index)
Notify potential interested parties about a change at the
given index.
private void waitOnIndex(int index) throws InterruptedException
Wait for something to change in the slot at the
given index.
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7