knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
knowrob::modals Namespace Reference

Functions

std::shared_ptr< ModalFormulaB (const FormulaPtr &phi)
 
ModalOperatorPtr B ()
 
ModalOperatorPtr B (std::string_view perspective)
 
ModalOperatorPtr B (std::string_view perspective, double confidence)
 
ModalOperatorPtr B (double confidence)
 
std::shared_ptr< ModalFormulaK (const FormulaPtr &phi)
 
ModalOperatorPtr K ()
 
ModalOperatorPtr K (std::string_view perspective)
 
std::shared_ptr< ModalFormulaP (const FormulaPtr &phi)
 
ModalOperatorPtr P ()
 
ModalOperatorPtr P (const TimeInterval &timeInterval)
 
std::shared_ptr< ModalFormulaH (const FormulaPtr &phi)
 
ModalOperatorPtr H ()
 
ModalOperatorPtr H (const TimeInterval &timeInterval)
 

Function Documentation

◆ B() [1/5]

ModalOperatorPtr knowrob::modals::B ( )
Returns
the belief operator B

Definition at line 65 of file ModalFormula.cpp.

65  {
66  static auto beliefOperator = std::make_shared<ModalOperator>(ModalType::BELIEF);
67  return beliefOperator;
68  }
@ BELIEF

◆ B() [2/5]

std::shared_ptr< ModalFormula > knowrob::modals::B ( const FormulaPtr phi)

Apply modal operator "B" to a formula.

Parameters
phia formula.
Returns
a modal formula.

Definition at line 38 of file ModalFormula.cpp.

38  {
39  return std::make_shared<ModalFormula>(B(), phi);
40  }
std::shared_ptr< ModalFormula > B(const FormulaPtr &phi)

◆ B() [3/5]

ModalOperatorPtr knowrob::modals::B ( double  confidence)
Returns
the belief operator B

Definition at line 83 of file ModalFormula.cpp.

83  {
84  auto op = std::make_shared<ModalOperator>(ModalType::BELIEF);
85  op->setConfidence(confidence);
86  return op;
87  }

◆ B() [4/5]

ModalOperatorPtr knowrob::modals::B ( std::string_view  perspective)
Returns
the belief operator B
Parameters
perspectivea perspective IRI.

Definition at line 70 of file ModalFormula.cpp.

70  {
71  auto op = std::make_shared<ModalOperator>(ModalType::BELIEF);
72  op->setPerspective(perspective);
73  return op;
74  }

◆ B() [5/5]

ModalOperatorPtr knowrob::modals::B ( std::string_view  perspective,
double  confidence 
)
Returns
the belief operator B
Parameters
perspectivea perspective IRI.
confidencea confidence value.

Definition at line 76 of file ModalFormula.cpp.

76  {
77  auto op = std::make_shared<ModalOperator>(ModalType::BELIEF);
78  op->setPerspective(perspective);
79  op->setConfidence(confidence);
80  return op;
81  }

◆ H() [1/3]

ModalOperatorPtr knowrob::modals::H ( )
Returns
the belief operator H

Definition at line 100 of file ModalFormula.cpp.

100  {
101  static auto op = std::make_shared<ModalOperator>(ModalType::ALWAYS);
102  return op;
103  }

◆ H() [2/3]

std::shared_ptr< ModalFormula > knowrob::modals::H ( const FormulaPtr phi)

Apply modal operator "H" to a formula.

Parameters
phia formula.
Returns
a modal formula.

Definition at line 50 of file ModalFormula.cpp.

50  {
51  return std::make_shared<ModalFormula>(H(), phi);
52  }
std::shared_ptr< ModalFormula > H(const FormulaPtr &phi)

◆ H() [3/3]

ModalOperatorPtr knowrob::modals::H ( const TimeInterval timeInterval)
Returns
the belief operator H

Definition at line 105 of file ModalFormula.cpp.

105  {
106  auto op = std::make_shared<ModalOperator>(ModalType::ALWAYS);
107  op->setTimeInterval(timeInterval);
108  return op;
109  }

◆ K() [1/3]

ModalOperatorPtr knowrob::modals::K ( )
Returns
the knowledge operator K

Definition at line 54 of file ModalFormula.cpp.

54  {
55  static auto k_withoutArgs = std::make_shared<ModalOperator>(ModalType::KNOWLEDGE);
56  return k_withoutArgs;
57  }
@ KNOWLEDGE

◆ K() [2/3]

std::shared_ptr< ModalFormula > knowrob::modals::K ( const FormulaPtr phi)

Apply modal operator "K" to a formula.

Parameters
phia formula.
Returns
a modal formula.

Definition at line 42 of file ModalFormula.cpp.

42  {
43  return std::make_shared<ModalFormula>(K(), phi);
44  }
std::shared_ptr< ModalFormula > K(const FormulaPtr &phi)

◆ K() [3/3]

ModalOperatorPtr knowrob::modals::K ( std::string_view  perspective)
Returns
the knowledge operator K
Parameters
perspectivea perspective IRI.

Definition at line 59 of file ModalFormula.cpp.

59  {
60  auto op = std::make_shared<ModalOperator>(ModalType::KNOWLEDGE);
61  op->setPerspective(perspective);
62  return op;
63  }

◆ P() [1/3]

ModalOperatorPtr knowrob::modals::P ( )
Returns
the belief operator B

Definition at line 89 of file ModalFormula.cpp.

89  {
90  static auto op = std::make_shared<ModalOperator>(ModalType::SOMETIMES);
91  return op;
92  }

◆ P() [2/3]

std::shared_ptr< ModalFormula > knowrob::modals::P ( const FormulaPtr phi)

Apply modal operator "P" to a formula.

Parameters
phia formula.
Returns
a modal formula.

Definition at line 46 of file ModalFormula.cpp.

46  {
47  return std::make_shared<ModalFormula>(P(), phi);
48  }
std::shared_ptr< ModalFormula > P(const FormulaPtr &phi)

◆ P() [3/3]

ModalOperatorPtr knowrob::modals::P ( const TimeInterval timeInterval)
Returns
the belief operator B

Definition at line 94 of file ModalFormula.cpp.

94  {
95  auto op = std::make_shared<ModalOperator>(ModalType::SOMETIMES);
96  op->setTimeInterval(timeInterval);
97  return op;
98  }