com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib
Class SerializableList<T extends ISerializableType>

java.lang.Object
  extended by com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType
      extended by com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableList<T>
Type Parameters:
T - A list may contain serializable types. This type defines the type of the inner arguments of this list.
All Implemented Interfaces:
com.kuka.common.IDataEquatable, ISerializableType, Cloneable

public final class SerializableList<T extends ISerializableType>
extends SerializableType

List implementation for serialization of a list for Sunrise.

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
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

SerializableList

public SerializableList()
Method Detail

get

public T get(int index)
Returns the elements at the specified index.

Parameters:
index - Index of the element to return.
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.

add

public void add(T value)
Adds an object to the list.

Parameters:
value - The value that should be added
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.

getDimensions

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

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.

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.

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.

getParameterType

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

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.

getTypeIdentifier

public TypeIdentifier getTypeIdentifier()
Gets the Sunrise type identifier of the type.

Returns:
The Sunrise 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 Object 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.

fromByteBuffer

public void fromByteBuffer(FastByteBuffer buffer,
                           int startIndex)
Deserializes a type from a byte buffer.

Parameters:
buffer - The byte buffe from which the value should be deserialized.
startIndex - The start index of the deserialization.
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.

toByteBuffer

public int toByteBuffer(FastByteBuffer buffer,
                        int startIndex)
Serializes the type in a byte buffer.

Parameters:
buffer - The byte buffer to which the value should be serialized.
startIndex - The start index for the serialization.
Returns:
The length in bytes of the serialized 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.

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.

size

public int size()
Gets the size (element count) of the list.

Returns:
The size (element count) of the list.
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.

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.

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.