All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.nodeos.CommSpaceElement
java.lang.Object
   |
   +----edu.utah.janos.nodeos.CommSpaceElement

  Summary

public final class  CommSpaceElement
     extends java.lang.Object
{
          // Fields 11
     private static final int ADDRESS_TYPE;
     private static final int BUFFER_HANDLE_TYPE;
     private static final int BYTE_ARRAY_TYPE;
     private static final int CHAR_ARRAY_TYPE;
     private static final int COMM_MONITOR_TYPE;
     private static final int COMM_QUEUE_TYPE;
     private static final int COMM_SPACE_HANDLE_TYPE;
     private static final int INT_TYPE;
     private static final int IN_CHANNEL_TYPE;
     private final int type;
     private final Object val;

          // Constructors 11
     public CommSpaceElement(byte[]);
     public CommSpaceElement(char[]);
     public CommSpaceElement(Address);
     public CommSpaceElement(BufferHandle);
     public CommSpaceElement(CommMonitor);
     public CommSpaceElement(CommQueue);
     CommSpaceElement(CommSpaceElement);
     public CommSpaceElement(CommSpaceHandle);
     public CommSpaceElement(InChannelHandle);
     public CommSpaceElement(int);
     private CommSpaceElement(Object, int);

          // Methods 12
     public Address getAddress();
     public BufferHandle getBufferHandle();
     public byte[] getByteArray();
     public void getByteArray(byte[], int);
     public char[] getCharArray();
     public void getCharArray(char[], int);
     public CommMonitor getCommMonitor();
     public CommQueue getCommQueue();
     public CommSpaceHandle getCommSpaceHandle();
     public InChannelHandle getInChannelHandle();
     public int getInt();
     public int type();
}

Element in the CommSpace for communication. This is what gets written to the CommSpace

XXX does this need to exist or can I just stick Objects in the CommSpace?

XXX because the val field is final, its impossible to re-use a CommSpaceElement (i.e., for a different object...) Could work around this by making the val field read-only while the object was lodged in the CommSpace...

XXX these are shared between processes.... i.e., they leak (~2 words).

"Big Deal." -- Chris H.

Author:
Janos Ministry of Development


  Cross Reference

Returned By:
CommQueue.copy(), CommQueue.waitToTake(), CommSpaceHandle.copy(), CommSpaceHandle.read(), CommSpaceHandle.swap(), CommSpaceHandle.take(), CommSpaceHandle.waitToTake(), CommSpace.read(), CommSpace.swap(), CommSpace.take(), CommSpace.waitToTake()





  Fields

· val

Summary  |  Top
   private final Object val


· type

Summary  |  Top
   private final int type


· INT_TYPE

Summary  |  Top
   private static final int INT_TYPE


· CHAR_ARRAY_TYPE

Summary  |  Top
   private static final int CHAR_ARRAY_TYPE


· BYTE_ARRAY_TYPE

Summary  |  Top
   private static final int BYTE_ARRAY_TYPE


· IN_CHANNEL_TYPE

Summary  |  Top
   private static final int IN_CHANNEL_TYPE


· ADDRESS_TYPE

Summary  |  Top
   private static final int ADDRESS_TYPE


· BUFFER_HANDLE_TYPE

Summary  |  Top
   private static final int BUFFER_HANDLE_TYPE


· COMM_SPACE_HANDLE_TYPE

Summary  |  Top
   private static final int COMM_SPACE_HANDLE_TYPE


· COMM_QUEUE_TYPE

Summary  |  Top
   private static final int COMM_QUEUE_TYPE


· COMM_MONITOR_TYPE

Summary  |  Top
   private static final int COMM_MONITOR_TYPE


  Constructors

· CommSpaceElement

Summary  |  Top

   private CommSpaceElement(Object val, 
                            int type) 


· CommSpaceElement

Summary  |  Top
   CommSpaceElement(CommSpaceElement from) 


· CommSpaceElement

Summary  |  Top
   public CommSpaceElement(int val) 


· CommSpaceElement

Summary  |  Top
   public CommSpaceElement(char[] val) 


· CommSpaceElement

Summary  |  Top
   public CommSpaceElement(byte[] val) 


· CommSpaceElement

Summary  |  Top
   public CommSpaceElement(InChannelHandle val) 


· CommSpaceElement

Summary  |  Top
   public CommSpaceElement(Address val) 


· CommSpaceElement

Summary  |  Top
   public CommSpaceElement(BufferHandle val) 


· CommSpaceElement

Summary  |  Top
   public CommSpaceElement(CommSpaceHandle val) 


· CommSpaceElement

Summary  |  Top
   public CommSpaceElement(CommQueue val) 


· CommSpaceElement

Summary  |  Top
   public CommSpaceElement(CommMonitor val) 


  Methods

· type

Summary  |  Top
   public int type() 


· getInt

Summary  |  Top
   public int getInt() 


· getCharArray

Summary  |  Top
   public char[] getCharArray() 


· getCharArray

Summary  |  Top
   public void getCharArray(char[] outbuf, 
                            int index) 


· getByteArray

Summary  |  Top
   public byte[] getByteArray() 


· getByteArray

Summary  |  Top
   public void getByteArray(byte[] outbuf, 
                            int index) 


· getInChannelHandle

Summary  |  Top
   public InChannelHandle getInChannelHandle() 


· getAddress

Summary  |  Top
   public Address getAddress() 


· getBufferHandle

Summary  |  Top
   public BufferHandle getBufferHandle() 


· getCommSpaceHandle

Summary  |  Top
   public CommSpaceHandle getCommSpaceHandle() 


· getCommQueue

Summary  |  Top
   public CommQueue getCommQueue() 


· getCommMonitor

Summary  |  Top
   public CommMonitor getCommMonitor() 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7