knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <ModalFormula.h>
Public Member Functions | |
ModalFormula (ModalOperatorPtr modalOperator, const FormulaPtr &formula) | |
const ModalOperatorPtr & | modalOperator () const |
const FormulaPtr & | modalFormula () const |
bool | isModalPossibility () const |
bool | isModalNecessity () const |
const char * | operator_symbol () const override |
void | write (std::ostream &os) const override |
ModalFormula (ModalOperatorPtr modalOperator, const FormulaPtr &formula) | |
const ModalOperatorPtr & | modalOperator () const |
const FormulaPtr & | modalFormula () const |
bool | isModalPossibility () const |
bool | isModalNecessity () const |
const char * | operator_symbol () const override |
void | write (std::ostream &os) const override |
Public Member Functions inherited from knowrob::CompoundFormula | |
CompoundFormula (FormulaType type, const std::vector< FormulaPtr > &formulae) | |
virtual | ~CompoundFormula ()=default |
const std::vector< FormulaPtr > & | formulae () const |
CompoundFormula (FormulaType type, const std::vector< FormulaPtr > &formulae) | |
virtual | ~CompoundFormula ()=default |
const std::vector< FormulaPtr > & | formulae () const |
Public Member Functions inherited from knowrob::Formula | |
Formula (const FormulaType &type) | |
virtual | ~Formula ()=default |
bool | operator== (const Formula &other) const |
FormulaType | type () const |
bool | isAtomic () const |
bool | isGround () const |
bool | isTop () const |
bool | isBottom () const |
Formula (const FormulaType &type) | |
virtual | ~Formula ()=default |
bool | operator== (const Formula &other) const |
FormulaType | type () const |
bool | isAtomic () const |
bool | isGround () const |
bool | isTop () const |
bool | isBottom () const |
Public Member Functions inherited from knowrob::Printable | |
virtual | ~Printable ()=default |
virtual std::string | format () const |
virtual | ~Printable ()=default |
virtual std::string | format () const |
Protected Member Functions | |
bool | isEqual (const Formula &other) const override |
bool | isEqual (const Formula &other) const override |
Protected Member Functions inherited from knowrob::CompoundFormula | |
bool | isGround1 () const |
bool | isGround1 () const |
Protected Attributes | |
const ModalOperatorPtr | modalOperator_ |
Protected Attributes inherited from knowrob::CompoundFormula | |
const std::vector< FormulaPtr > | formulae_ |
Protected Attributes inherited from knowrob::Formula | |
const FormulaType | type_ |
bool | isGround_ = true |
A higher-order formula using a modal operator.
Definition at line 17 of file ModalFormula.h.
ModalFormula::ModalFormula | ( | ModalOperatorPtr | modalOperator, |
const FormulaPtr & | formula | ||
) |
Create a new modal formula.
modalOperator | the modal operator. |
formula | the formula. |
Definition at line 14 of file ModalFormula.cpp.
knowrob::ModalFormula::ModalFormula | ( | ModalOperatorPtr | modalOperator, |
const FormulaPtr & | formula | ||
) |
Create a new modal formula.
modalOperator | the modal operator. |
formula | the formula. |
|
overrideprotectedvirtual |
Implements knowrob::Formula.
Definition at line 19 of file ModalFormula.cpp.
|
overrideprotectedvirtual |
Implements knowrob::Formula.
bool ModalFormula::isModalNecessity | ( | ) | const |
Definition at line 24 of file ModalFormula.cpp.
bool knowrob::ModalFormula::isModalNecessity | ( | ) | const |
|
inline |
Definition at line 39 of file ModalFormula.h.
|
inline |
Definition at line 39 of file ModalFormula.h.
|
inline |
Definition at line 34 of file ModalFormula.h.
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Implements knowrob::CompoundFormula.
Definition at line 28 of file ModalFormula.cpp.
|
overridevirtual |
Implements knowrob::CompoundFormula.
|
overridevirtual |
Print this object to a stream.
os | the stream to print to. |
Reimplemented from knowrob::CompoundFormula.
Definition at line 32 of file ModalFormula.cpp.
|
overridevirtual |
Print this object to a stream.
os | the stream to print to. |
Reimplemented from knowrob::CompoundFormula.
|
protected |
Definition at line 53 of file ModalFormula.h.