ReasonerClient Class
The ReasonerClient class provides an abstraction for ontologenius reasoner service. More...
Header: | #include "ontologenius/clients/ReasonerClient.h" |
Inherits: | ClientBase |
Namespace: | onto |
Public Functions
ReasonerClient(const std::string& name) | |
std::vector<std::string> | list() |
std::vector<std::string> | activeList() |
bool | activate(const std::string& name) |
bool | deactivate(const std::string& name) |
std::string | getDescription(const std::string& name) |
Reimplemented Public Functions
- 2 public functions inherited from ClientBase
Detailed Description
The ReasonerClient class provides an abstraction ontologenius reasoner ROS services.
The reasoner client is used to manage reasoner plugins for an ontology instance. This makes it possible to activate or deactivate plugins.
This class is based on ClientBase and so ensure a persistent connection with the service based on. The persistent connection ensures a minimal response time. A reconnection logic is implemented in the event that the persistent connection fails.
Public Function Documentation
ReasonerClient::ReasonerClient(const std::string& name)
Constructs a reasoner client.
Can be used in a multi-ontology mode by specifying the name of the ontology name. For classic use, name should be defined as "".
std::vector<std::string> ReasonerClient::list()
Returns the name of the plugins available.
std::vector<std::string> ReasonerClient::activeList()
Returns the name of the activated plugins.
bool ReasonerClient::activate(const std::string& name)
Activate the plugin named name.
Returns false if the service call fails.
bool ReasonerClient::deactivate(const std::string& name)
Deactivate the plugin named name
Returns false if the service call fails.
std::string ReasonerClient::getDescription(const std::string& name)
Return the description of the plugin named name.