Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
mhf::PropertySet Class Reference

#include <PropertySet.h>

Inheritance diagram for mhf::PropertySet:
Inheritance graph
[legend]

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)
 
PropertySetclone () const
 
virtual double getLikelihood (const PropertySet &P) const
 
const PropertygetProperty (const Attribute &attribute) const
 
const PropertygetProperty (const std::string &attribute) const
 
const std::map< Attribute, Property * > & getPropertyMap () const
 
Time getTimestamp () const
 
const pbl::PDFgetValue () const
 Returns the current estimated state value. More...
 
void propagate (const Time &time)
 Propagates the internal state to Time time. More...
 
 PropertySet (Time timestamp=0)
 
 PropertySet (const PropertySet &orig)
 
void reset ()
 Resets the internal state of the estimator to its initial value. More...
 
std::string toString () const
 
void update (const pbl::PDF &z, const Time &time)
 Updates the internal state based on measurement z. More...
 
virtual ~PropertySet ()
 
- Public Member Functions inherited from mhf::IStateEstimator
virtual bool setParameter (const std::string &param, bool b)
 Resets the internal state of the estimator to the given PDF. More...
 
virtual bool setParameter (const std::string &param, double v)
 Set a real-valued parameter of this state estimator. More...
 
virtual bool setParameter (const std::string &param, const std::string &s)
 Set a string parameter of this state estimator. More...
 
virtual ~IStateEstimator ()
 

Static Public Attributes

static int N_PROPERTY_SET = 0
 

Protected Member Functions

void addProperty (Property *property)
 
PropertygetProperty (const Attribute &attribute)
 

Protected Attributes

Time timestamp_
 

Private Attributes

std::map< Attribute, Property * > properties_
 

Detailed Description

Definition at line 13 of file PropertySet.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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

Definition at line 166 of file PropertySet.cpp.

const pbl::PDF & mhf::PropertySet::getValue ( ) const
virtual

Returns the current estimated state value.

Returns
The current state, i.e., the current attribute value represented as probability density function

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.

Parameters
timeThe 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.

Parameters
zThe measurement with which to update, represented as a probability density function
timeThe time to which the internal state is propagated before updating

Implements mhf::IStateEstimator.

Definition at line 107 of file PropertySet.cpp.

Member Data Documentation

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

Definition at line 54 of file PropertySet.h.


The documentation for this class was generated from the following files:


wire_core
Author(s): Sjoerd van den Dries, Jos Elfring
autogenerated on Fri Apr 16 2021 02:32:27