com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib
Class SerializableDouble2DArray

java.lang.Object
  extended by com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType
      extended by com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableArray
          extended by com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableDouble2DArray
All Implemented Interfaces:
com.kuka.common.IDataEquatable, ISerializableType, Cloneable

public class SerializableDouble2DArray
extends SerializableArray

Serializable class for a double 2D array.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

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

SerializableDouble2DArray

public SerializableDouble2DArray(int dim1,
                                 int dim2)
Create a new serializable double 2D array.

Parameters:
dim1 - Size in first dimension.
dim2 - Size in second dimension.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.
Method Detail

getDimensions

public int[] getDimensions()
Gets the 4-dimensional integer array describing the order of this type in each of the four possible dimensions.

Specified by:
getDimensions in interface ISerializableType
Overrides:
getDimensions in class SerializableArray
Returns:
The 4-dimensional integer array describing the order of this type in each of the four possible dimensions.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

getLength

public int getLength()
Gets the length in bytes of this type.

Specified by:
getLength in interface ISerializableType
Overrides:
getLength in class SerializableArray
Returns:
The length in bytes of this type.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

toString

public String toString()

Overrides:
toString in class Object
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

getParameterType

public MessageParameterType getParameterType()
Gets the message type identifier of the type.

Specified by:
getParameterType in interface ISerializableType
Specified by:
getParameterType in class SerializableArray
Returns:
The message type identifier of the type.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

getValue

public double[][] getValue()
Gets the raw value of the serializable type.

Returns:
The raw value of the serializable type.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

setValue

public void setValue(Object value)
Sets the value for this type. Must be compatible with the type.

Parameters:
value - The value for this type. Must be compatible with the type. The value should never be null. Each subclass must check this.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

get

public Double get(int index)
Gets the element at the specified index.

Specified by:
get in class SerializableArray
Parameters:
index - The index.
Returns:
The element at the specified index.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

get

public Double get(int index1,
                  int index2)
Get value at specified cell.

Parameters:
index1 - Index in first dimension.
index2 - Index in second dimension.
Returns:
Value at position (index1, index2)
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

set

public void set(int index,
                Object value)
Sets the value at the specified index.

Specified by:
set in class SerializableArray
Parameters:
index - The index.
value - The value.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

set

public void set(int index1,
                int index2,
                Object value)
Set value at specified cell to specified value.

Parameters:
index1 - Index in first dimension.
index2 - Index in second dimension.
value - Value to be set at this cell.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

size

public int size()
Gets the size of the array.

Specified by:
size in class SerializableArray
Returns:
The size of the array.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

hasSameDataAs

public boolean hasSameDataAs(Object obj)

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

clone

public ISerializableType clone()
Creates a copy of this serializable type.

Specified by:
clone in interface ISerializableType
Specified by:
clone in class SerializableType
Returns:
A copy of this serializable type.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.