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

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.SerializableDoubleArray
All Implemented Interfaces:
com.kuka.common.IDataEquatable, ISerializableType, Cloneable

public class SerializableDoubleArray
extends SerializableArray

Represents a double 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
SerializableDoubleArray(double[] value)
          Creates a new serializable double array.
SerializableDoubleArray(Inertia inertia)
          Creates an array out of an Inertia.
SerializableDoubleArray(int length)
          Creates a new serializable integer array.
SerializableDoubleArray(Vector vector)
          Creates an array out of a Vector.
 
Method Summary
 SerializableDoubleArray clone()
          Creates a copy of this serializable type.
 void fromString(String value)
          Deserializes the type from a String representation.
static SerializableDoubleArray fromValues(double... values)
          Creates a new SerializableDoubleArray instance with the given values.
 Double get(int index)
          Gets the element at the specified index.
 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 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, getDimensions, getLength, 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

SerializableDoubleArray

public SerializableDoubleArray(int length)
Creates a new serializable integer array.

Parameters:
length - The length 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.

SerializableDoubleArray

public SerializableDoubleArray(double[] value)
Creates a new serializable double array. The array is used as a reference, no copy is performed.

Parameters:
value - The value for 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.

SerializableDoubleArray

public SerializableDoubleArray(Vector vector)
Creates an array out of a Vector.

Parameters:
vector - The vector.
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.

SerializableDoubleArray

public SerializableDoubleArray(Inertia inertia)
Creates an array out of an Inertia.

Parameters:
inertia - The inertia.
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

fromValues

public static SerializableDoubleArray fromValues(double... values)
Creates a new SerializableDoubleArray instance with the given values.

Parameters:
values - The values.
Returns:
The created SerializableDoubleArray.
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.

fromString

public void fromString(String value)
Deserializes the type from a String representation.

Specified by:
fromString in interface ISerializableType
Overrides:
fromString in class SerializableArray
Parameters:
value - The string representation for 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.

clone

public SerializableDoubleArray 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.

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.

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.

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.

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.


Copyright © 2019. All rights reserved.