edu.utah.janosvm.kit.comm.commspace
Class CommSpaceElement
java.lang.Object
|
+--edu.utah.janosvm.kit.comm.commspace.CommSpaceElement
- All Implemented Interfaces:
- java.lang.Cloneable
- public final class CommSpaceElement
- extends java.lang.Object
- implements java.lang.Cloneable
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.
XXX Should the get methods be copying their contents?
- Author:
- Janos Ministry of Development
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait, wait0 |
val
private final java.lang.Object val
type
private final int type
INT_TYPE
private static final int INT_TYPE
CHAR_ARRAY_TYPE
private static final int CHAR_ARRAY_TYPE
BYTE_ARRAY_TYPE
private static final int BYTE_ARRAY_TYPE
COMM_SPACE_HANDLE_TYPE
private static final int COMM_SPACE_HANDLE_TYPE
COMM_QUEUE_TYPE
private static final int COMM_QUEUE_TYPE
COMM_HASHTABLE_TYPE
private static final int COMM_HASHTABLE_TYPE
BOOLEAN_TYPE
private static final int BOOLEAN_TYPE
STRING_TYPE
private static final int STRING_TYPE
COMMSPACEABLE_TYPE
private static final int COMMSPACEABLE_TYPE
LONG_TYPE
private static final int LONG_TYPE
CommSpaceElement
private CommSpaceElement(java.lang.Object val,
int type)
CommSpaceElement
CommSpaceElement(CommSpaceElement from)
CommSpaceElement
public CommSpaceElement(boolean val)
CommSpaceElement
public CommSpaceElement(java.lang.Boolean val)
CommSpaceElement
public CommSpaceElement(int val)
CommSpaceElement
public CommSpaceElement(java.lang.Long val)
CommSpaceElement
public CommSpaceElement(long val)
CommSpaceElement
public CommSpaceElement(java.lang.Integer val)
CommSpaceElement
public CommSpaceElement(char[] val)
CommSpaceElement
public CommSpaceElement(byte[] val)
CommSpaceElement
public CommSpaceElement(java.lang.String val)
CommSpaceElement
public CommSpaceElement(CommSpaceHandle val)
CommSpaceElement
public CommSpaceElement(CommQueuePusher val)
CommSpaceElement
public CommSpaceElement(CommHashtableHandle val)
CommSpaceElement
public CommSpaceElement(CommSpaceable val)
type
public int type()
getInt
public int getInt()
getInteger
public java.lang.Integer getInteger()
getLong
public long getLong()
getLongObject
public java.lang.Long getLongObject()
getBool
public boolean getBool()
getBoolean
public java.lang.Boolean getBoolean()
getString
public java.lang.String getString()
getCharArray
public char[] getCharArray()
getCharArray
public void getCharArray(char[] outbuf,
int index)
getByteArray
public byte[] getByteArray()
getByteArray
public void getByteArray(byte[] outbuf,
int index)
getCommSpaceHandle
public CommSpaceHandle getCommSpaceHandle()
getCommQueue
public CommQueuePusher getCommQueue()
getCommHashtableHandle
public CommHashtableHandle getCommHashtableHandle()
getCommSpaceable
public CommSpaceable getCommSpaceable()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareByteArrays
private static boolean compareByteArrays(byte[] b1,
byte[] b2)
compareCharArrays
private static boolean compareCharArrays(char[] c1,
char[] c2)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
copy
static CommSpaceElement copy(CommSpaceElement cse)
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003