|
||||||||||
| 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.SerializableList<T>
T - A list may contain serializable types. This type defines the type
of the inner arguments of this list.public final class SerializableList<T extends ISerializableType>
List implementation for serialization of a list for Sunrise.
| Constructor Summary | |
|---|---|
SerializableList()
|
|
| Method Summary | |
|---|---|
void |
add(T value)
Adds an object to the list. |
ISerializableType |
clone()
Creates a copy of this serializable type. |
void |
fromByteBuffer(FastByteBuffer buffer,
int startIndex)
Deserializes a type from a byte buffer. |
void |
fromString(String value)
Deserializes the type from a String representation. |
T |
get(int index)
Returns the elements 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. |
MessageParameterType |
getParameterType()
Gets the message type identifier of the type. |
TypeIdentifier |
getTypeIdentifier()
Gets the Sunrise type identifier of the type. |
Object |
getValue()
Gets the raw value of the serializable type. |
boolean |
hasSameDataAs(Object obj)
|
void |
setValue(Object value)
Sets the value for this type. |
int |
size()
Gets the size (element count) of the list. |
int |
toByteBuffer(FastByteBuffer buffer,
int startIndex)
Serializes the type in a byte buffer. |
String |
toString()
|
| 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 SerializableList()
| Method Detail |
|---|
public T get(int index)
index - Index of the element to return.
public void add(T value)
value - The value that should be addedpublic int[] getDimensions()
public int getLength()
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 MessageParameterType getParameterType()
public TypeIdentifier getTypeIdentifier()
public Object getValue()
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 void fromString(String value)
value - The string representation for the type.public int size()
public String toString()
toString in class Objectpublic ISerializableType clone()
clone in interface ISerializableTypeclone in class SerializableTypepublic boolean hasSameDataAs(Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||