#include <PropertySet.h>
Public Member Functions | |
void | addProperty (const Attribute &attribute, const pbl::PDF &value) |
void | addProperty (const std::string &attribute, const pbl::PDF &value) |
void | addProperty (const Attribute &attribute, const IStateEstimator &estimator) |
PropertySet * | clone () const |
virtual double | getLikelihood (const PropertySet &P) const |
const Property * | getProperty (const Attribute &attribute) const |
const Property * | getProperty (const std::string &attribute) const |
const std::map< Attribute, Property * > & | getPropertyMap () const |
Time | getTimestamp () const |
const pbl::PDF & | getValue () const |
Returns the current estimated state value. | |
void | propagate (const Time &time) |
Propagates the internal state to Time time. | |
PropertySet (Time timestamp=0) | |
PropertySet (const PropertySet &orig) | |
void | reset () |
Resets the internal state of the estimator to its initial value. | |
std::string | toString () const |
void | update (const pbl::PDF &z, const Time &time) |
Updates the internal state based on measurement z. | |
virtual | ~PropertySet () |
Static Public Attributes | |
static int | N_PROPERTY_SET = 0 |
Protected Member Functions | |
void | addProperty (Property *property) |
Property * | getProperty (const Attribute &attribute) |
Protected Attributes | |
Time | timestamp_ |
Private Attributes | |
std::map< Attribute, Property * > | properties_ |
Definition at line 13 of file PropertySet.h.
mhf::PropertySet::PropertySet | ( | Time | timestamp = 0 | ) |
Definition at line 19 of file PropertySet.cpp.
mhf::PropertySet::PropertySet | ( | const PropertySet & | orig | ) |
Definition at line 31 of file PropertySet.cpp.
mhf::PropertySet::~PropertySet | ( | ) | [virtual] |
Definition at line 23 of file PropertySet.cpp.
void mhf::PropertySet::addProperty | ( | const Attribute & | attribute, |
const pbl::PDF & | value | ||
) |
Definition at line 41 of file PropertySet.cpp.
void mhf::PropertySet::addProperty | ( | const std::string & | attribute, |
const pbl::PDF & | value | ||
) |
void mhf::PropertySet::addProperty | ( | const Attribute & | attribute, |
const IStateEstimator & | estimator | ||
) |
Definition at line 55 of file PropertySet.cpp.
void mhf::PropertySet::addProperty | ( | Property * | property | ) | [protected] |
Definition at line 65 of file PropertySet.cpp.
PropertySet * mhf::PropertySet::clone | ( | ) | const [virtual] |
Implements mhf::IStateEstimator.
Reimplemented in mhf::SemanticObject.
Definition at line 37 of file PropertySet.cpp.
double mhf::PropertySet::getLikelihood | ( | const PropertySet & | P | ) | const [virtual] |
Reimplemented in mhf::SemanticObject.
Definition at line 121 of file PropertySet.cpp.
const Property * mhf::PropertySet::getProperty | ( | const Attribute & | attribute | ) | const |
Definition at line 75 of file PropertySet.cpp.
const Property * mhf::PropertySet::getProperty | ( | const std::string & | attribute | ) | const |
Definition at line 91 of file PropertySet.cpp.
Property * mhf::PropertySet::getProperty | ( | const Attribute & | attribute | ) | [protected] |
Definition at line 83 of file PropertySet.cpp.
const std::map< Attribute, Property * > & mhf::PropertySet::getPropertyMap | ( | ) | const |
Definition at line 162 of file PropertySet.cpp.
Time mhf::PropertySet::getTimestamp | ( | ) | const |
Reimplemented in mhf::SemanticObject.
Definition at line 166 of file PropertySet.cpp.
const pbl::PDF & mhf::PropertySet::getValue | ( | ) | const [virtual] |
Returns the current estimated state value.
Implements mhf::IStateEstimator.
Definition at line 117 of file PropertySet.cpp.
void mhf::PropertySet::propagate | ( | const Time & | time | ) | [virtual] |
Propagates the internal state to Time time.
time | The time to which the internal state is propagated |
Implements mhf::IStateEstimator.
Definition at line 95 of file PropertySet.cpp.
void mhf::PropertySet::reset | ( | ) | [virtual] |
Resets the internal state of the estimator to its initial value.
Implements mhf::IStateEstimator.
Definition at line 111 of file PropertySet.cpp.
string mhf::PropertySet::toString | ( | ) | const |
Definition at line 170 of file PropertySet.cpp.
void mhf::PropertySet::update | ( | const pbl::PDF & | z, |
const Time & | time | ||
) | [virtual] |
Updates the internal state based on measurement z.
z | The measurement with which to update, represented as a probability density function |
time | The time to which the internal state is propagated before updating |
Implements mhf::IStateEstimator.
Definition at line 107 of file PropertySet.cpp.
int mhf::PropertySet::N_PROPERTY_SET = 0 [static] |
Definition at line 16 of file PropertySet.h.
std::map<Attribute, Property*> mhf::PropertySet::properties_ [private] |
Definition at line 62 of file PropertySet.h.
Time mhf::PropertySet::timestamp_ [protected] |
Reimplemented in mhf::Evidence.
Definition at line 54 of file PropertySet.h.