|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType
com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableArray
com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableDouble2DArray
public class SerializableDouble2DArray
Serializable class for a double 2D array.
| Constructor Summary | |
|---|---|
SerializableDouble2DArray(int dim1,
int dim2)
Create a new serializable double 2D array. |
|
| Method Summary | |
|---|---|
ISerializableType |
clone()
Creates a copy of this serializable type. |
Double |
get(int index)
Gets the element at the specified index. |
Double |
get(int index1,
int index2)
Get value at specified cell. |
int[] |
getDimensions()
Gets the 4-dimensional integer array describing the order of this type in each of the four possible dimensions. |
int |
getLength()
Gets the length in bytes of this type. |
MessageParameterType |
getParameterType()
Gets the message type identifier of the type. |
double[][] |
getValue()
Gets the raw value of the serializable type. |
boolean |
hasSameDataAs(Object obj)
|
void |
set(int index1,
int index2,
Object value)
Set value at specified cell to specified value. |
void |
set(int index,
Object value)
Sets the value at the specified index. |
void |
setValue(Object value)
Sets the value for this type. |
int |
size()
Gets the size of the array. |
String |
toString()
|
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableArray |
|---|
fromByteBuffer, fromString, getTypeIdentifier, split, toByteBuffer |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType |
|---|
getParameterName, hasParameterNameSet, setParameterName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SerializableDouble2DArray(int dim1,
int dim2)
dim1 - Size in first dimension.dim2 - Size in second dimension.| Method Detail |
|---|
public int[] getDimensions()
getDimensions in interface ISerializableTypegetDimensions in class SerializableArraypublic int getLength()
getLength in interface ISerializableTypegetLength in class SerializableArraypublic String toString()
toString in class Objectpublic MessageParameterType getParameterType()
getParameterType in interface ISerializableTypegetParameterType in class SerializableArraypublic double[][] getValue()
public void setValue(Object value)
value - The value for this type. Must be compatible with the type. The
value should never be null. Each subclass must
check this.public Double get(int index)
get in class SerializableArrayindex - The index.
public Double get(int index1,
int index2)
index1 - Index in first dimension.index2 - Index in second dimension.
public void set(int index,
Object value)
set in class SerializableArrayindex - The index.value - The value.
public void set(int index1,
int index2,
Object value)
index1 - Index in first dimension.index2 - Index in second dimension.value - Value to be set at this cell.public int size()
size in class SerializableArraypublic boolean hasSameDataAs(Object obj)
public ISerializableType clone()
clone in interface ISerializableTypeclone in class SerializableType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||