public class DynamicObjectBuilder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DynamicObjectBuilder.ObjectThreadingModel |
| Constructor and Description |
|---|
DynamicObjectBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
advertiseMethod(java.lang.String methodSignature,
QiService service,
java.lang.String description)
Bind method from a qimessaging.service to GenericObject.
|
void |
advertiseProperty(java.lang.String name,
java.lang.Class<?> propertyBase) |
void |
advertiseSignal(java.lang.String signalSignature)
Advertise an signal with its callback signature.
|
protected void |
finalize()
Called by garbage collector
Finalize is overriden to manually delete C++ data
|
AnyObject |
object()
Instantiate new AnyObject after builder template.
|
void |
setThreadingModel(DynamicObjectBuilder.ObjectThreadingModel threadModel)
Declare the thread-safeness state of an instance
|
public void advertiseMethod(java.lang.String methodSignature,
QiService service,
java.lang.String description)
throws QiException
methodSignature - Signature of method to bind.service - Service implementing method.java.lang.Exception - on error.QiExceptionpublic void advertiseSignal(java.lang.String signalSignature)
throws java.lang.Exception
signalSignature - Signature of available callback.java.lang.Exception - If GenericObject is not initialized internally.public void advertiseProperty(java.lang.String name,
java.lang.Class<?> propertyBase)
throws QiException
QiExceptionpublic void setThreadingModel(DynamicObjectBuilder.ObjectThreadingModel threadModel) throws QiException
threadModel - if set to ObjectThreadingModel.MultiThread,
your object is expected to be
thread safe, and calls to its method will potentially
occur in parallel in multiple threads.
If false, qimessaging will use a per-instance mutex
to prevent multiple calls at the same time.QiExceptionpublic AnyObject object()
AnyObjectprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableAldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.