6 #ifndef KNOWROB_MODAL_OPERATOR_H
7 #define KNOWROB_MODAL_OPERATOR_H
12 #include "knowrob/terms/Term.h"
13 #include "knowrob/semweb/Perspective.h"
14 #include "knowrob/TimeInterval.h"
35 static constexpr
const char*
KEY_BEGIN =
"begin";
36 static constexpr
const char*
KEY_END =
"end";
79 std::optional<TermPtr>
parameter(std::string_view key)
const;
104 std::optional<double>
begin()
const;
114 std::optional<double>
end()
const;
static const ModalIteration & emptyIteration()
bool operator==(const ModalIteration &other) const
std::list< ModalOperatorPtr > modalitySequence_
auto numOperators() const
void operator+=(const ModalOperatorPtr &modalOperator)
ModalIteration operator+(const ModalOperatorPtr &modalOperator) const
std::optional< double > end() const
ModalOperator(ModalType modalType)
void setTimeInterval(const TimeInterval &timeInterval)
std::map< std::string, TermPtr > parameters_
void write(std::ostream &os) const
std::optional< double > end() const
bool isModalNecessity() const
void setPerspective(const std::string_view &agent)
const ModalType modalType_
void setBegin(double begin)
const char * symbol() const
std::optional< TermPtr > parameter(std::string_view key) const
std::optional< PerspectivePtr > perspective() const
std::optional< double > begin() const
void setParameter(std::string_view key, const TermPtr &value)
bool isModalPossibility() const
static constexpr const char * KEY_END
static constexpr const char * KEY_CONFIDENCE
void setConfidence(double confidence)
std::optional< double > confidence() const
std::optional< double > begin() const
bool operator==(const ModalOperator &other) const
static constexpr const char * KEY_BEGIN
static constexpr const char * KEY_PERSPECTIVE
std::optional< double > confidence() const
std::shared_ptr< Term > TermPtr
std::shared_ptr< const ModalOperator > ModalOperatorPtr