#include <PolicyGraphGenerator.h>
Public Member Functions | |
void | generateGraph (ostream &output) |
PolicyGraphGenerator (SharedPointer< MOMDP > _problem, SharedPointer< AlphaVectorPolicy > _policy, PolicyGraphParam _graphParam) | |
~PolicyGraphGenerator (void) | |
Private Member Functions | |
void | convertStCacheIndex (ostream &output, cacherow_stval &stRowIndex) |
void | dfsBeliefForest (BeliefTreeNode *curNode, vector< BeliefTreeNode * > &path, int level) |
void | drawRootNodeDot (ostream &output, SharedPointer< SparseVector > initialBeliefY, SharedPointer< DenseVector > initialBeliefX, int bestAction) |
void | expandNode (BeliefTreeNode *curNode, int bestAction, vector< NodeRelation > &expansion) |
string | formatTuple (string name, int index, map< string, string > dataMap) |
void | generateNodesDot (ostream &output, BeliefTreeNode *node) |
void | generateNodesRelation (ostream &output, vector< NodeRelation > &nodeRelations, set< BeliefTreeNode * > firstLevelNodes) |
Private Attributes | |
vector< BeliefCache * > | beliefCacheSet |
BeliefForest * | beliefForest |
PolicyGraphParam | graphParam |
vector< NodeRelation > | nodeRelationsList |
set< BeliefTreeNode * > | nodesList |
SharedPointer< AlphaVectorPolicy > | policy |
SharedPointer< MOMDP > | problem |
Sample * | sampleEngine |
Definition at line 53 of file PolicyGraphGenerator.h.
PolicyGraphGenerator::PolicyGraphGenerator | ( | SharedPointer< MOMDP > | _problem, |
SharedPointer< AlphaVectorPolicy > | _policy, | ||
PolicyGraphParam | _graphParam | ||
) |
Definition at line 46 of file PolicyGraphGenerator.cpp.
Definition at line 66 of file PolicyGraphGenerator.cpp.
void PolicyGraphGenerator::convertStCacheIndex | ( | ostream & | output, |
cacherow_stval & | stRowIndex | ||
) | [private] |
Definition at line 240 of file PolicyGraphGenerator.cpp.
void PolicyGraphGenerator::dfsBeliefForest | ( | BeliefTreeNode * | curNode, |
vector< BeliefTreeNode * > & | path, | ||
int | level | ||
) | [private] |
Definition at line 74 of file PolicyGraphGenerator.cpp.
void PolicyGraphGenerator::drawRootNodeDot | ( | ostream & | output, |
SharedPointer< SparseVector > | initialBeliefY, | ||
SharedPointer< DenseVector > | initialBeliefX, | ||
int | bestAction | ||
) | [private] |
Definition at line 323 of file PolicyGraphGenerator.cpp.
void PolicyGraphGenerator::expandNode | ( | BeliefTreeNode * | curNode, |
int | bestAction, | ||
vector< NodeRelation > & | expansion | ||
) | [private] |
Definition at line 158 of file PolicyGraphGenerator.cpp.
string PolicyGraphGenerator::formatTuple | ( | string | name, |
int | index, | ||
map< string, string > | dataMap | ||
) | [private] |
Definition at line 209 of file PolicyGraphGenerator.cpp.
void PolicyGraphGenerator::generateGraph | ( | ostream & | output | ) |
Definition at line 364 of file PolicyGraphGenerator.cpp.
void PolicyGraphGenerator::generateNodesDot | ( | ostream & | output, |
BeliefTreeNode * | node | ||
) | [private] |
Definition at line 248 of file PolicyGraphGenerator.cpp.
void PolicyGraphGenerator::generateNodesRelation | ( | ostream & | output, |
vector< NodeRelation > & | nodeRelations, | ||
set< BeliefTreeNode * > | firstLevelNodes | ||
) | [private] |
Definition at line 288 of file PolicyGraphGenerator.cpp.
vector<BeliefCache *> momdp::PolicyGraphGenerator::beliefCacheSet [private] |
Definition at line 60 of file PolicyGraphGenerator.h.
Definition at line 58 of file PolicyGraphGenerator.h.
Definition at line 61 of file PolicyGraphGenerator.h.
vector<NodeRelation> momdp::PolicyGraphGenerator::nodeRelationsList [private] |
Definition at line 64 of file PolicyGraphGenerator.h.
set<BeliefTreeNode*> momdp::PolicyGraphGenerator::nodesList [private] |
Definition at line 63 of file PolicyGraphGenerator.h.
Definition at line 57 of file PolicyGraphGenerator.h.
Definition at line 56 of file PolicyGraphGenerator.h.
Sample* momdp::PolicyGraphGenerator::sampleEngine [private] |
Definition at line 59 of file PolicyGraphGenerator.h.