|
||||||||||
| 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
public abstract class SerializableArray
Base class for arrays.
| Constructor Summary | |
|---|---|
protected |
SerializableArray(ISerializableType helperWrapper)
Creates a new serializable array. |
| Method Summary | |
|---|---|
void |
fromByteBuffer(FastByteBuffer buffer,
int startIndex)
Deserializes a type from a byte buffer. |
void |
fromString(String value)
Deserializes the type from a String representation. |
abstract Object |
get(int index)
Gets the element at the specified index. |
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. |
abstract MessageParameterType |
getParameterType()
Gets the message type identifier of the type. |
TypeIdentifier |
getTypeIdentifier()
Gets the Sunrise type identifier of the type. |
abstract void |
set(int index,
Object value)
Sets the value at the specified index. |
abstract int |
size()
Gets the size of the array. |
protected static String[] |
split(String valueIn)
Helper method to split a value into it's array components. |
int |
toByteBuffer(FastByteBuffer buffer,
int startIndex)
Serializes the type in a byte buffer. |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType |
|---|
clone, getParameterName, hasParameterNameSet, setParameterName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.ISerializableType |
|---|
getValue, setValue |
| Methods inherited from interface com.kuka.common.IDataEquatable |
|---|
hasSameDataAs |
| Constructor Detail |
|---|
protected SerializableArray(ISerializableType helperWrapper)
helperWrapper - The helper object for the inner types of the array to
serialize and deserialize them.| Method Detail |
|---|
public int[] getDimensions()
public int getLength()
public TypeIdentifier getTypeIdentifier()
public void fromString(String value)
value - The string representation for the type.
public void fromByteBuffer(FastByteBuffer buffer,
int startIndex)
buffer - The byte buffe from which the value should be deserialized.startIndex - The start index of the deserialization.
public int toByteBuffer(FastByteBuffer buffer,
int startIndex)
buffer - The byte buffer to which the value should be serialized.startIndex - The start index for the serialization.
public abstract MessageParameterType getParameterType()
public abstract void set(int index,
Object value)
index - The index.value - The value.public abstract int size()
public abstract Object get(int index)
index - The index.
protected static String[] split(String valueIn)
valueIn - The string value. null is not allowed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||