|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibis.gmi.ParameterVector
The ParameterVector
class provides a base class for generated
parameter vector classes, specific for a group method.
Field Summary | |
boolean |
done
Set to true when the parameter vector is completely initialized. |
Constructor Summary | |
ParameterVector()
|
Method Summary | |
ParameterVector |
getVector()
Creates a new parameter vector of the same type. |
boolean |
readBoolean(int num)
Get a boolean from position "num" in the parameter vector. |
byte |
readByte(int num)
Get a byte from position "num" in the parameter vector. |
char |
readChar(int num)
Get a char from position "num" in the parameter vector. |
double |
readDouble(int num)
Get a double from position "num" in the parameter vector. |
float |
readFloat(int num)
Get a float from position "num" in the parameter vector. |
int |
readInt(int num)
Get a int from position "num" in the parameter vector. |
long |
readLong(int num)
Get a long from position "num" in the parameter vector. |
java.lang.Object |
readObject(int num)
Get a Object from position "num" in the parameter vector. |
abstract ParameterVector |
readParameters(ReadMessage r)
Reads a parameter vector from a message. |
short |
readShort(int num)
Get a short from position "num" in the parameter vector. |
void |
write(int num,
boolean value)
Places a boolean value in parameter number "num". |
void |
write(int num,
byte value)
Places a byte value in parameter number "num". |
void |
write(int num,
char value)
Places a char value in parameter number "num". |
void |
write(int num,
double value)
Places a double value in parameter number "num". |
void |
write(int num,
float value)
Places a float value in parameter number "num". |
void |
write(int num,
int value)
Places an int value in parameter number "num". |
void |
write(int num,
long value)
Places a long value in parameter number "num". |
void |
write(int num,
java.lang.Object value)
Places an Object value in parameter number "num". |
void |
write(int num,
short value)
Places a short value in parameter number "num". |
abstract void |
writeParameters(WriteMessage w)
Writes this parameter vector to a message. |
void |
writeSubArray(int num,
int offset,
int size,
boolean[] value)
Records in the parameter vector that parameter "num" is a sub-array of boolean array "value", with offset "offset" and length "size". |
void |
writeSubArray(int num,
int offset,
int size,
byte[] value)
Records in the parameter vector that parameter "num" is a sub-array of byte array "value", with offset "offset" and length "size". |
void |
writeSubArray(int num,
int offset,
int size,
char[] value)
Records in the parameter vector that parameter "num" is a sub-array of char array "value", with offset "offset" and length "size". |
void |
writeSubArray(int num,
int offset,
int size,
double[] value)
Records in the parameter vector that parameter "num" is a sub-array of double array "value", with offset "offset" and length "size". |
void |
writeSubArray(int num,
int offset,
int size,
float[] value)
Records in the parameter vector that parameter "num" is a sub-array of float array "value", with offset "offset" and length "size". |
void |
writeSubArray(int num,
int offset,
int size,
int[] value)
Records in the parameter vector that parameter "num" is a sub-array of int array "value", with offset "offset" and length "size". |
void |
writeSubArray(int num,
int offset,
int size,
long[] value)
Records in the parameter vector that parameter "num" is a sub-array of long array "value", with offset "offset" and length "size". |
void |
writeSubArray(int num,
int offset,
int size,
java.lang.Object[] value)
Records in the parameter vector that parameter "num" is a sub-array of Object array "value", with offset "offset" and length "size". |
void |
writeSubArray(int num,
int offset,
int size,
short[] value)
Records in the parameter vector that parameter "num" is a sub-array of short array "value", with offset "offset" and length "size". |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public boolean done
Constructor Detail |
public ParameterVector()
Method Detail |
public abstract ParameterVector readParameters(ReadMessage r) throws java.io.IOException
r
- the message from which the parameters are to be read
java.io.IOException
- some network error occurredpublic abstract void writeParameters(WriteMessage w) throws java.io.IOException
w
- the message to which the parameters are to be appended
java.io.IOException
- some network error occurredpublic ParameterVector getVector()
public void write(int num, boolean value)
num
- the parameter number, ranging from 0 .. #parameters-1value
- the value to be storedpublic void write(int num, byte value)
num
- the parameter number, ranging from 0 .. #parameters-1value
- the value to be storedpublic void write(int num, short value)
num
- the parameter number, ranging from 0 .. #parameters-1value
- the value to be storedpublic void write(int num, char value)
num
- the parameter number, ranging from 0 .. #parameters-1value
- the value to be storedpublic void write(int num, int value)
num
- the parameter number, ranging from 0 .. #parameters-1value
- the value to be storedpublic void write(int num, long value)
num
- the parameter number, ranging from 0 .. #parameters-1value
- the value to be storedpublic void write(int num, float value)
num
- the parameter number, ranging from 0 .. #parameters-1value
- the value to be storedpublic void write(int num, double value)
num
- the parameter number, ranging from 0 .. #parameters-1value
- the value to be storedpublic void write(int num, java.lang.Object value)
num
- the parameter number, ranging from 0 .. #parameters-1value
- the value to be storedpublic void writeSubArray(int num, int offset, int size, boolean[] value)
num
- The parameter number, ranging from 0 .. #parameters-1.offset
- Offset in the array where the sub-array begins.size
- Length (number of elements) in the sub-array.value
- The array of which a sub-array is the parameter.public void writeSubArray(int num, int offset, int size, byte[] value)
num
- The parameter number, ranging from 0 .. #parameters-1.offset
- Offset in the array where the sub-array begins.size
- Length (number of elements) in the sub-array.value
- The array of which a sub-array is the parameter.public void writeSubArray(int num, int offset, int size, short[] value)
num
- The parameter number, ranging from 0 .. #parameters-1.offset
- Offset in the array where the sub-array begins.size
- Length (number of elements) in the sub-array.value
- The array of which a sub-array is the parameter.public void writeSubArray(int num, int offset, int size, char[] value)
num
- The parameter number, ranging from 0 .. #parameters-1.offset
- Offset in the array where the sub-array begins.size
- Length (number of elements) in the sub-array.value
- The array of which a sub-array is the parameter.public void writeSubArray(int num, int offset, int size, int[] value)
num
- The parameter number, ranging from 0 .. #parameters-1.offset
- Offset in the array where the sub-array begins.size
- Length (number of elements) in the sub-array.value
- The array of which a sub-array is the parameter.public void writeSubArray(int num, int offset, int size, long[] value)
num
- The parameter number, ranging from 0 .. #parameters-1.offset
- Offset in the array where the sub-array begins.size
- Length (number of elements) in the sub-array.value
- The array of which a sub-array is the parameter.public void writeSubArray(int num, int offset, int size, float[] value)
num
- The parameter number, ranging from 0 .. #parameters-1.offset
- Offset in the array where the sub-array begins.size
- Length (number of elements) in the sub-array.value
- The array of which a sub-array is the parameter.public void writeSubArray(int num, int offset, int size, double[] value)
num
- The parameter number, ranging from 0 .. #parameters-1.offset
- Offset in the array where the sub-array begins.size
- Length (number of elements) in the sub-array.value
- The array of which a sub-array is the parameter.public void writeSubArray(int num, int offset, int size, java.lang.Object[] value)
num
- The parameter number, ranging from 0 .. #parameters-1.offset
- Offset in the array where the sub-array begins.size
- Length (number of elements) in the sub-array.value
- The array of which a sub-array is the parameter.public boolean readBoolean(int num)
num
- The position number in the parameter vector.
public byte readByte(int num)
num
- The position number in the parameter vector.
public short readShort(int num)
num
- The position number in the parameter vector.
public char readChar(int num)
num
- The position number in the parameter vector.
public int readInt(int num)
num
- The position number in the parameter vector.
public long readLong(int num)
num
- The position number in the parameter vector.
public float readFloat(int num)
num
- The position number in the parameter vector.
public double readDouble(int num)
num
- The position number in the parameter vector.
public java.lang.Object readObject(int num)
num
- The position number in the parameter vector.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |