#include <BooleanVariable.h>
Public Member Functions | |
BooleanVariable (string name, double initProbTrue, double initProbFalse) | |
virtual SharedPointer < IVariableValue > | getFalseValue () |
virtual vector< SharedPointer < IVariableValue > > | getInitialValues () |
virtual int | getNumValues () |
virtual SharedPointer < IVariableValue > | getTrueValue () |
virtual SharedPointer < IVariableValue > | getValueByName (string valName) |
virtual vector< SharedPointer < IVariableValue > > | getValues () |
virtual string | getVariableName () |
virtual | ~BooleanVariable (void) |
Static Public Attributes | |
static const int | FalseValueIndex = 1 |
static const int | TrueValueIndex = 0 |
Private Member Functions | |
virtual void | addValue (SharedPointer< VariableValue > value) |
virtual void | addValue (string value, double initialProb=0.0) |
Private Attributes | |
vector< SharedPointer < VariableValue > > | values |
string | variableName |
Definition at line 20 of file BooleanVariable.h.
BooleanVariable::BooleanVariable | ( | string | name, |
double | initProbTrue, | ||
double | initProbFalse | ||
) |
Definition at line 6 of file BooleanVariable.cpp.
BooleanVariable::~BooleanVariable | ( | void | ) | [virtual] |
Definition at line 13 of file BooleanVariable.cpp.
void BooleanVariable::addValue | ( | SharedPointer< VariableValue > | value | ) | [private, virtual] |
Definition at line 26 of file BooleanVariable.cpp.
void BooleanVariable::addValue | ( | string | value, |
double | initialProb = 0.0 |
||
) | [private, virtual] |
Definition at line 30 of file BooleanVariable.cpp.
SharedPointer< IVariableValue > BooleanVariable::getFalseValue | ( | ) | [virtual] |
Definition at line 62 of file BooleanVariable.cpp.
vector< SharedPointer< IVariableValue > > BooleanVariable::getInitialValues | ( | ) | [virtual] |
Implements momdp::IVariable.
Definition at line 44 of file BooleanVariable.cpp.
int BooleanVariable::getNumValues | ( | ) | [virtual] |
Implements momdp::IVariable.
Definition at line 35 of file BooleanVariable.cpp.
SharedPointer< IVariableValue > BooleanVariable::getTrueValue | ( | ) | [virtual] |
Definition at line 57 of file BooleanVariable.cpp.
SharedPointer< IVariableValue > BooleanVariable::getValueByName | ( | string | valName | ) | [virtual] |
Implements momdp::IVariable.
Definition at line 66 of file BooleanVariable.cpp.
vector< SharedPointer< IVariableValue > > BooleanVariable::getValues | ( | ) | [virtual] |
Implements momdp::IVariable.
Definition at line 16 of file BooleanVariable.cpp.
string BooleanVariable::getVariableName | ( | ) | [virtual] |
Implements momdp::IVariable.
Definition at line 39 of file BooleanVariable.cpp.
const int momdp::BooleanVariable::FalseValueIndex = 1 [static] |
Definition at line 30 of file BooleanVariable.h.
const int momdp::BooleanVariable::TrueValueIndex = 0 [static] |
Definition at line 29 of file BooleanVariable.h.
vector<SharedPointer<VariableValue> > momdp::BooleanVariable::values [private] |
Definition at line 24 of file BooleanVariable.h.
string momdp::BooleanVariable::variableName [private] |
Definition at line 23 of file BooleanVariable.h.