NAOqi Core - Overview | API | Tutorial
Namespace : AL
#include <alproxies/alresourcemanagerproxy.h>
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Deprecated Methods
True if resources free
Parameters: |
|
---|---|
Returns: | True if all the specified resources are free |
True if all the specified resources are owned by the owner
Parameters: |
|
---|---|
Returns: | True if all the specify resources are owned by the owner |
Create a resource
Parameters: |
|
---|
Create the resources listed in pResourceNameList
Parameters: |
|
---|
Delete a resource
Parameters: |
|
---|
Deprecated since version 1.22: use ALResourceManagerProxy::deleteResource with a single parameter instead.
Delete a root resource.
Parameters: |
|
---|
Enable or disable a state resource
Parameters: |
|
---|
True if a resource is in another parent resource
Parameters: |
|
---|---|
Returns: |
Release the resources listed
Parameters: |
|
---|
Wait and acquire the specified resource. Once acquired the callback is called if someone else want to take the resource. The callback takes only two parameters which are the resourcename and the current owner name. In the callback you can decide to release the resource by calling ALResourceManagerProxy::releaseResource() If timeoutSeconds is less than 0, an infinite wait is performed, if timeoutSeconds is zero the function is non-bloquing, else the function waits at most timeoutSeconds to acquire the resource, or throws if the resource is still not available. The function throws in case of error.
Parameters: |
|
---|
Wait and acquire the specified resource. Once acquired the callback is called if someone else want to take the resource. The callback takes only two parameters which are the resourcename and the current owner name. In the callback you can decide to release the resource by calling ALResourceManagerProxy::releaseResource() If timeoutSeconds is less than 0, an infinite wait is performed, if timeoutSeconds is zero the function is non-bloquing, else the function waits at most timeoutSeconds to acquire the resource, or throws if the resource is still not available. The function throws in case of error.
Parameters: |
|
---|
Deprecated since version 1.22: use ALResourceManagerProxy::releaseResources() instead.
Release resource
Parameters: |
|
---|
Returns: | the full list of resources |
---|
Returns: | a bool indicating if the resource is free or not |
---|
Returns: | the list of owners for each resources |
---|
Deprecated since version 1.22: due to technical improvements, this method is not useful anymore. Do not use.
Deprecated since version 1.22: due to technical improvements, this method is not useful anymore. Do not use.
Deprecated since version 1.22: use ALResourceManagerProxy::acquireResource() instead