|
||||||||||
| 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.SerializableGroup
public final class SerializableGroup
A group is a collection of data flow elements.
| Constructor Summary | |
|---|---|
SerializableGroup()
|
|
| Method Summary | |
|---|---|
void |
addElement(String elementName,
ISerializableType element)
Adds a new element to this group. |
SerializableGroup |
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. |
int[] |
getDimensions()
Gets the 4-dimensional integer array describing the order of this type in each of the four possible dimensions. |
ISerializableType |
getElement(int index)
Gets the element at the specified index in the group. |
ISerializableType |
getElement(String elementName)
Retrieves the element with the given name. |
String |
getElementName(int index)
Gets the element name at the specified index in the group. |
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)
|
Iterator<ISerializableType> |
iterator()
|
void |
setValue(Object value)
Sets the value for this type. |
int |
size()
Gets the amount of group elements of this group. |
int |
toByteBuffer(FastByteBuffer buffer,
int startIndex)
Serializes the type in a byte buffer. |
| 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, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerializableGroup()
| Method Detail |
|---|
public void fromString(String value)
fromString in interface ISerializableTypevalue - The string representation for the type.public int getLength()
getLength in interface ISerializableTypepublic MessageParameterType getParameterType()
getParameterType in interface ISerializableTypepublic TypeIdentifier getTypeIdentifier()
getTypeIdentifier in interface ISerializableTypepublic int[] getDimensions()
getDimensions in interface ISerializableType
public void fromByteBuffer(FastByteBuffer buffer,
int startIndex)
fromByteBuffer in interface ISerializableTypebuffer - The byte buffe from which the value should be deserialized.startIndex - The start index of the deserialization.
public int toByteBuffer(FastByteBuffer buffer,
int startIndex)
toByteBuffer in interface ISerializableTypebuffer - The byte buffer to which the value should be serialized.startIndex - The start index for the serialization.
public Object getValue()
getValue in interface ISerializableTypepublic void setValue(Object value)
setValue in interface ISerializableTypevalue - The value for this type. Must be compatible with the type. The
value should never be null. Each subclass must
check this.public SerializableGroup clone()
clone in interface ISerializableTypeclone in class SerializableTypepublic ISerializableType getElement(String elementName)
elementName - The name of the element.
public void addElement(String elementName,
ISerializableType element)
elementName - The name of the element.element - The element itself.public Iterator<ISerializableType> iterator()
iterator in interface Iterable<ISerializableType>public int size()
public ISerializableType getElement(int index)
index - The index.
public String getElementName(int index)
index - The index.
public boolean hasSameDataAs(Object obj)
hasSameDataAs in interface com.kuka.common.IDataEquatable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||