#include <SimulationEngine.h>
Public Member Functions | |
void | checkTerminal (string o, string s, vector< int > &bhout, vector< int > &fhout) |
void | display (belief_vector &b, ostream &s) |
int | getGreedyAction (vector< int > &, vector< int > &) |
void | getPossibleObservations (belief_vector &possObs, int action, const BeliefWithState &belSt) const |
double | getReward (const BeliefWithState &belst, int action) |
void | performActionObs (belief_vector &outBelObs, int action, const BeliefWithState &belSt) const |
void | performActionUnobs (belief_vector &outBelUnobs, int action, const BeliefWithState &belSt, int currObsState) const |
int | runFor (int iters, ofstream *streamOut, double &reward, double &expReward) |
void | setup (SharedPointer< MOMDP > problem, SharedPointer< AlphaVectorPolicy > policy, SolverParams *solverParams) |
SimulationEngine () | |
string | toString () |
virtual | ~SimulationEngine (void) |
Private Attributes | |
SharedPointer< AlphaVectorPolicy > | policy |
SharedPointer< MOMDP > | problem |
SolverParams * | solverParams |
Definition at line 15 of file SimulationEngine.h.
Definition at line 24 of file SimulationEngine.cpp.
momdp::SimulationEngine::~SimulationEngine | ( | void | ) | [virtual] |
Definition at line 28 of file SimulationEngine.cpp.
void momdp::SimulationEngine::checkTerminal | ( | string | o, |
string | s, | ||
vector< int > & | bhout, | ||
vector< int > & | fhout | ||
) |
Definition at line 32 of file SimulationEngine.cpp.
void momdp::SimulationEngine::display | ( | belief_vector & | b, |
ostream & | s | ||
) |
Definition at line 118 of file SimulationEngine.cpp.
int momdp::SimulationEngine::getGreedyAction | ( | vector< int > & | bhout, |
vector< int > & | fhout | ||
) |
Definition at line 44 of file SimulationEngine.cpp.
void momdp::SimulationEngine::getPossibleObservations | ( | belief_vector & | possObs, |
int | action, | ||
const BeliefWithState & | belSt | ||
) | const |
Definition at line 96 of file SimulationEngine.cpp.
double momdp::SimulationEngine::getReward | ( | const BeliefWithState & | belst, |
int | action | ||
) |
Definition at line 104 of file SimulationEngine.cpp.
void momdp::SimulationEngine::performActionObs | ( | belief_vector & | outBelObs, |
int | action, | ||
const BeliefWithState & | belSt | ||
) | const |
Definition at line 73 of file SimulationEngine.cpp.
void momdp::SimulationEngine::performActionUnobs | ( | belief_vector & | outBelUnobs, |
int | action, | ||
const BeliefWithState & | belSt, | ||
int | currObsState | ||
) | const |
Definition at line 90 of file SimulationEngine.cpp.
int momdp::SimulationEngine::runFor | ( | int | iters, |
ofstream * | streamOut, | ||
double & | reward, | ||
double & | expReward | ||
) |
Definition at line 126 of file SimulationEngine.cpp.
void momdp::SimulationEngine::setup | ( | SharedPointer< MOMDP > | problem, |
SharedPointer< AlphaVectorPolicy > | policy, | ||
SolverParams * | solverParams | ||
) |
Definition at line 66 of file SimulationEngine.cpp.
string momdp::SimulationEngine::toString | ( | ) |
Definition at line 111 of file SimulationEngine.cpp.
Definition at line 19 of file SimulationEngine.h.
SharedPointer<MOMDP> momdp::SimulationEngine::problem [private] |
Definition at line 18 of file SimulationEngine.h.
Definition at line 20 of file SimulationEngine.h.