com.kuka.nav.robot
Interface GenericRequestContainer

All Superinterfaces:
RequestContainer

public interface GenericRequestContainer
extends RequestContainer

Container for accessing runtime information of a generic request.

This container provides the request id and the generic data as byte array.


Method Summary
 byte[] getData()
          Returns the generic data.
 String getId()
          Returns the identifier of the corresponding generic request.
 
Methods inherited from interface com.kuka.nav.command.RequestContainer
awaitFinished, awaitFinished, awaitUpdate, awaitUpdate, cancel, getError, hasError, isCancelled, isFinished, isValid
 

Method Detail

getId

String getId()
Returns the identifier of the corresponding generic request.

Returns:
the request identifier

getData

byte[] getData()
Returns the generic data.

An easy way of accessing the data is provided by the java class ByteBuffer. Use the static method ByteBuffer.wrap(byte[]) to use it.

Please take care of the byte order when reading the data. If you are using ByteBuffer you can use the method ByteBuffer.order(java.nio.ByteOrder) to change the byte order.

Returns:
the generic data


Copyright © 2019. All rights reserved.