knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <ModalOperator.h>
Public Member Functions | |
ModalOperator (ModalType modalType) | |
bool | operator== (const ModalOperator &other) const |
bool | isModalNecessity () const |
bool | isModalPossibility () const |
auto | modalType () const |
const char * | symbol () const |
void | setParameter (std::string_view key, const TermPtr &value) |
std::optional< TermPtr > | parameter (std::string_view key) const |
std::optional< PerspectivePtr > | perspective () const |
void | setPerspective (const std::string_view &agent) |
std::optional< double > | confidence () const |
void | setConfidence (double confidence) |
std::optional< double > | begin () const |
void | setBegin (double begin) |
std::optional< double > | end () const |
void | setEnd (double end) |
void | setTimeInterval (const TimeInterval &timeInterval) |
void | write (std::ostream &os) const |
ModalOperator (ModalType modalType) | |
bool | operator== (const ModalOperator &other) const |
bool | isModalNecessity () const |
bool | isModalPossibility () const |
auto | modalType () const |
const char * | symbol () const |
void | setParameter (std::string_view key, const TermPtr &value) |
std::optional< TermPtr > | parameter (std::string_view key) const |
std::optional< PerspectivePtr > | perspective () const |
void | setPerspective (const std::string_view &agent) |
std::optional< double > | confidence () const |
void | setConfidence (double confidence) |
std::optional< double > | begin () const |
void | setBegin (double begin) |
std::optional< double > | end () const |
void | setEnd (double end) |
void | setTimeInterval (const TimeInterval &timeInterval) |
void | write (std::ostream &os) const |
Static Public Attributes | |
static constexpr const char * | KEY_PERSPECTIVE = "agent" |
static constexpr const char * | KEY_CONFIDENCE = "confidence" |
static constexpr const char * | KEY_BEGIN = "begin" |
static constexpr const char * | KEY_END = "end" |
Protected Attributes | |
const ModalType | modalType_ |
std::map< std::string, TermPtr > | parameters_ |
An operator of a modal language, e.g. "B" is often used for "belief" and "K" for "knowledge". Additional parameters can be added to the operator, e.g. "B[confidence=0.8]".
Definition at line 31 of file ModalOperator.h.
|
explicit |
|
explicit |
modalType | the type of this operator. |
std::optional< double > ModalOperator::begin | ( | ) | const |
Definition at line 113 of file ModalOperator.cpp.
std::optional<double> knowrob::ModalOperator::begin | ( | ) | const |
std::optional< double > ModalOperator::confidence | ( | ) | const |
Definition at line 101 of file ModalOperator.cpp.
std::optional<double> knowrob::ModalOperator::confidence | ( | ) | const |
std::optional< double > ModalOperator::end | ( | ) | const |
Definition at line 125 of file ModalOperator.cpp.
std::optional<double> knowrob::ModalOperator::end | ( | ) | const |
bool ModalOperator::isModalNecessity | ( | ) | const |
Definition at line 61 of file ModalOperator.cpp.
bool knowrob::ModalOperator::isModalNecessity | ( | ) | const |
bool ModalOperator::isModalPossibility | ( | ) | const |
Definition at line 73 of file ModalOperator.cpp.
bool knowrob::ModalOperator::isModalPossibility | ( | ) | const |
|
inline |
|
inline |
bool ModalOperator::operator== | ( | const ModalOperator & | other | ) | const |
other | another operator. |
Definition at line 45 of file ModalOperator.cpp.
bool knowrob::ModalOperator::operator== | ( | const ModalOperator & | other | ) | const |
other | another operator. |
std::optional< TermPtr > ModalOperator::parameter | ( | std::string_view | key | ) | const |
key | the key of the parameter. |
Definition at line 81 of file ModalOperator.cpp.
std::optional<TermPtr> knowrob::ModalOperator::parameter | ( | std::string_view | key | ) | const |
key | the key of the parameter. |
std::optional< PerspectivePtr > ModalOperator::perspective | ( | ) | const |
Definition at line 89 of file ModalOperator.cpp.
std::optional<PerspectivePtr> knowrob::ModalOperator::perspective | ( | ) | const |
void ModalOperator::setBegin | ( | double | begin | ) |
begin | the time interval begin parameter of this operator. |
Definition at line 121 of file ModalOperator.cpp.
void knowrob::ModalOperator::setBegin | ( | double | begin | ) |
begin | the time interval begin parameter of this operator. |
void ModalOperator::setConfidence | ( | double | confidence | ) |
confidence | the confidence parameter of this operator. |
Definition at line 109 of file ModalOperator.cpp.
void knowrob::ModalOperator::setConfidence | ( | double | confidence | ) |
confidence | the confidence parameter of this operator. |
void ModalOperator::setEnd | ( | double | end | ) |
end | the time interval end parameter of this operator. |
Definition at line 133 of file ModalOperator.cpp.
void knowrob::ModalOperator::setEnd | ( | double | end | ) |
end | the time interval end parameter of this operator. |
void ModalOperator::setParameter | ( | std::string_view | key, |
const TermPtr & | value | ||
) |
key | the key of the parameter. |
value | the value of the parameter. |
Definition at line 77 of file ModalOperator.cpp.
void knowrob::ModalOperator::setParameter | ( | std::string_view | key, |
const TermPtr & | value | ||
) |
key | the key of the parameter. |
value | the value of the parameter. |
void ModalOperator::setPerspective | ( | const std::string_view & | agent | ) |
agent | the perspective parameter of this operator. |
Definition at line 97 of file ModalOperator.cpp.
void knowrob::ModalOperator::setPerspective | ( | const std::string_view & | agent | ) |
agent | the perspective parameter of this operator. |
void ModalOperator::setTimeInterval | ( | const TimeInterval & | timeInterval | ) |
Definition at line 137 of file ModalOperator.cpp.
void knowrob::ModalOperator::setTimeInterval | ( | const TimeInterval & | timeInterval | ) |
const char * ModalOperator::symbol | ( | ) | const |
const char* knowrob::ModalOperator::symbol | ( | ) | const |
void ModalOperator::write | ( | std::ostream & | os | ) | const |
void knowrob::ModalOperator::write | ( | std::ostream & | os | ) | const |
os | the output stream. |
|
staticconstexpr |
Definition at line 35 of file ModalOperator.h.
|
staticconstexpr |
Definition at line 34 of file ModalOperator.h.
|
staticconstexpr |
Definition at line 36 of file ModalOperator.h.
|
staticconstexpr |
Definition at line 33 of file ModalOperator.h.
|
protected |
Definition at line 132 of file ModalOperator.h.
|
protected |
Definition at line 133 of file ModalOperator.h.