#include <Variable.h>
Public Member Functions | |
virtual void | addValue (SharedPointer< VariableValue > value) |
virtual void | addValue (string value, double initialProb=0.0) |
virtual vector< SharedPointer < IVariableValue > > | getInitialValues () |
virtual int | getNumValues () |
virtual SharedPointer < IVariableValue > | getValueByName (string valName) |
virtual vector< SharedPointer < IVariableValue > > | getValues () |
virtual string | getVariableName () |
Variable (string name) | |
virtual | ~Variable (void) |
Private Attributes | |
vector< SharedPointer < VariableValue > > | values |
string | variableName |
Definition at line 18 of file Variable.h.
Variable::Variable | ( | string | name | ) |
Definition at line 5 of file Variable.cpp.
Variable::~Variable | ( | void | ) | [virtual] |
Definition at line 10 of file Variable.cpp.
void Variable::addValue | ( | SharedPointer< VariableValue > | value | ) | [virtual] |
Definition at line 23 of file Variable.cpp.
void Variable::addValue | ( | string | value, |
double | initialProb = 0.0 |
||
) | [virtual] |
Definition at line 27 of file Variable.cpp.
vector< SharedPointer< IVariableValue > > Variable::getInitialValues | ( | ) | [virtual] |
Implements momdp::IVariable.
Definition at line 41 of file Variable.cpp.
int Variable::getNumValues | ( | ) | [virtual] |
Implements momdp::IVariable.
Definition at line 32 of file Variable.cpp.
SharedPointer< IVariableValue > Variable::getValueByName | ( | string | valName | ) | [virtual] |
Implements momdp::IVariable.
Definition at line 54 of file Variable.cpp.
vector< SharedPointer< IVariableValue > > Variable::getValues | ( | ) | [virtual] |
Implements momdp::IVariable.
Definition at line 13 of file Variable.cpp.
string Variable::getVariableName | ( | ) | [virtual] |
Implements momdp::IVariable.
Definition at line 36 of file Variable.cpp.
vector<SharedPointer<VariableValue> > momdp::Variable::values [private] |
Definition at line 22 of file Variable.h.
string momdp::Variable::variableName [private] |
Definition at line 21 of file Variable.h.