|
||||||||||
| 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.SerializableDoubleArray
public class SerializableDoubleArray
Represents a double array.
| 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 |
|---|
public SerializableDoubleArray(int length)
length - The length of the array.public SerializableDoubleArray(double[] value)
value - The value for the array.public SerializableDoubleArray(Vector vector)
Vector.
vector - The vector.public SerializableDoubleArray(Inertia inertia)
Inertia.
inertia - The inertia.| Method Detail |
|---|
public static SerializableDoubleArray fromValues(double... values)
values - The values.
public MessageParameterType getParameterType()
getParameterType in interface ISerializableTypegetParameterType in class SerializableArraypublic void fromString(String value)
fromString in interface ISerializableTypefromString in class SerializableArrayvalue - The string representation for the type.public 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 SerializableDoubleArray clone()
clone in interface ISerializableTypeclone in class SerializableTypepublic String toString()
toString in class Objectpublic Double get(int index)
get in class SerializableArrayindex - The index.
public void set(int index,
Object value)
set in class SerializableArrayindex - The index.value - The value.public int size()
size in class SerializableArraypublic boolean hasSameDataAs(Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||