|
||||||||||
| 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.ComplexSerializableType
public final class ComplexSerializableType
General complex type. Can be used to just hold some values from return types.
| Constructor Summary | |
|---|---|
ComplexSerializableType(TypeIdentifier identifier,
int dim1,
int dim2,
int dim3,
int dim4)
Creates a new complex type. |
|
| Method Summary | |
|---|---|
ISerializableType |
clone()
Creates a copy of this serializable type. |
void |
fromByteBuffer(FastByteBuffer buffer,
int startIndexIn)
Deserializes a type from a byte buffer. |
void |
fromString(String value)
Deserializes this type out of a string. |
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 |
toByteBuffer(FastByteBuffer buffer,
int startIndexIn)
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 ComplexSerializableType(TypeIdentifier identifier,
int dim1,
int dim2,
int dim3,
int dim4)
identifier - The inner type of the complex type.dim1 - Number of dimensions in 1. direction.dim2 - Number of dimensions in 2. direction.dim3 - Number of dimensions in 3. direction.dim4 - Number of dimensions in 4. direction.| Method Detail |
|---|
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 void fromString(String value)
value - The string value.public int[] getDimensions()
public int getLength()
public MessageParameterType getParameterType()
public TypeIdentifier getTypeIdentifier()
public Object getValue()
public void fromByteBuffer(FastByteBuffer buffer,
int startIndexIn)
buffer - The byte buffe from which the value should be deserialized.startIndexIn - The start index of the deserialization.
public int toByteBuffer(FastByteBuffer buffer,
int startIndexIn)
buffer - The byte buffer to which the value should be serialized.startIndexIn - The start index for the serialization.
public 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 | |||||||||