#include <Collection.h>
|
| Collection (const Collection &_rhs) |
|
Collection & | operator= (const Collection &_rhs) |
|
cres_qresult< Agent > | agent (const knowCore::Uri &_agentUri) const |
|
cres_qresult< Stream > | stream (const knowCore::Uri &_streamUri) const |
|
cres_qresult< bool > | hasAgent (const knowCore::Uri &_agentUri) const |
|
cres_qresult< bool > | hasStream (const knowCore::Uri &_streamUri) const |
|
cres_qresult< QList< Stream > > | streamsOf (const knowCore::Uri &_resource) const |
|
cres_qresult< QList< Agent > > | agents (const QList< QPair< knowCore::Uri, knowCore::ConstrainedValue > > &_constraints, const OperatorOptions &_operatorOptions=OperatorOptions()) const |
|
template<typename... _TArgs_> |
cres_qresult< QList< Agent > > | agents (const knowCore::Uri &_uri, const knowCore::ConstrainedValue &_constraint, const _TArgs_ &...) const |
|
cres_qresult< Agent > | createAgent (const knowCore::Uri &_typeUri, const QString &_name, const QString &_frame_name, const knowCore::Uri &_agentUri=knowCore::Uri::createUnique({"agent"})) |
|
cres_qresult< Stream > | createStream (const knowCore::Uri &_contentTypeUri, const QString &_identifier, const knowCore::Uri &_dataTypeUri, const knowCore::Uri &_streamUri=knowCore::Uri::createUnique({"stream"})) |
|
bool | operator== (const Derive &_rhs) const |
|
bool | isValid () const |
|
bool | isReadOnly () const |
|
knowCore::Uri | uri () const |
|
kDB::Repository::Connection | connection () const |
|
cres_qresult< std::size_t > | count () const |
|
cres_qresult< QList< ValueType > > | all () const |
|
Interface a kDB::Repository::TripleStore 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
◆ allAgents()
- Returns
- an interface to the view that covers all agents.
◆ 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.
◆ hasAgent()
cres_qresult< bool > Collection::hasAgent |
( |
const knowCore::Uri & | _agentUri | ) |
const |
- Returns
- true if the agent already exists.
◆ hasStream()
cres_qresult< bool > Collection::hasStream |
( |
const knowCore::Uri & | _streamUri | ) |
const |
- Returns
- true if the stream already exists.
◆ stream()
- Returns
- the stream with the Uri _agentUri
◆ streamsOf()
- Returns
- all the streams associated to a resource.
The documentation for this class was generated from the following files:
- kdb/extensions/kDBRobotics/Agents/Collection.h
- kdb/extensions/kDBRobotics/Agents/Collection.cpp