#include <Agents.h>
Interface a kDB::Repository::TriplesStore that contains a set of agents.
◆ agent()
- Returns
- the agent with the Uri _agentUri
◆ agents()
- Parameters
-
| _constraints | a list of pair of list of uris representing the property uri and a constraint. |
| _operatorOptions | set the precision used by operators |
- Returns
- the list of agents that satisfies the constraints
◆ all()
- Returns
- all the agent contained in this document.
◆ allAgents()
- Returns
- an interface to the view that covers all agents.
◆ allAgentsUris()
- Returns
- a list of the uris of all agents documents.
◆ connection()
◆ count()
| std::size_t Agents::count |
( |
| ) |
const |
- Returns
- the number of agents in this document.
◆ create()
Create a new kDB::Repository::TriplesStore with uri _graph, add it to the union of agents Uris::kdb_sensing::agents.
- Returns
- an invalid Agents if an error occurs or if the agents already exists
◆ createAgent()
Create a new Agent of uri type _typeUri with name _name and add it to this agent graph.
◆ createStream()
Create a new Stream of uri type _typeUri with name _name and add it to this agent graph.
◆ get()
Return an unique instance of the agents stored in _graph for a given _connection
- Returns
- an invalid Agents if it does not exists
◆ getOrCreate()
Create or access the agents specified in _graph
- Returns
- an invalid Agents if an error occurs
◆ hasAgent()
| knowCore::ReturnValue< bool > Agents::hasAgent |
( |
const knowCore::Uri & | _agentUri | ) |
const |
- Returns
- true if the agent already exists.
◆ hasStream()
| knowCore::ReturnValue< bool > Agents::hasStream |
( |
const knowCore::Uri & | _streamUri | ) |
const |
- Returns
- true if the stream already exists.
◆ isReadOnly()
| bool Agents::isReadOnly |
( |
| ) |
const |
- Returns
- true if it can only be used to access agents and not insert one.
◆ isValid()
| bool Agents::isValid |
( |
| ) |
const |
- Returns
- true if it is a valid set of agents
◆ stream()
- Returns
- the stream with the Uri _agentUri
◆ streamsOf()
- Returns
- all the streams associated to a resource.
◆ uri()
- Returns
- the uri for the graph
The documentation for this class was generated from the following files:
- kdb/extensions/kDBRobotics/Agents.h
- kdb/extensions/kDBRobotics/Agents.cpp