Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
momdp::BooleanVariable Class Reference

#include <BooleanVariable.h>

Inheritance diagram for momdp::BooleanVariable:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 20 of file BooleanVariable.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Definition at line 62 of file BooleanVariable.cpp.

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.

Definition at line 57 of file BooleanVariable.cpp.

Implements momdp::IVariable.

Definition at line 66 of file BooleanVariable.cpp.

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.


Member Data Documentation

Definition at line 30 of file BooleanVariable.h.

Definition at line 29 of file BooleanVariable.h.

Definition at line 24 of file BooleanVariable.h.

Definition at line 23 of file BooleanVariable.h.


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


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:30