#include <QLearningActionSelector.h>
Public Types | |
typedef std::map < actasp::AspFluent, double, actasp::ActionComparator > | ActionValueMap |
typedef std::set < actasp::AspFluent > | State |
typedef std::map< State, ActionValueMap, actasp::StateComparator < actasp::AspFluent > > | StateActionMap |
Public Member Functions | |
void | actionStarted (const actasp::AspFluent &action) throw () |
void | actionTerminated (const actasp::AspFluent &action) throw () |
actasp::ActionSet::const_iterator | choose (const actasp::ActionSet &options) throw () |
void | episodeEnded () |
QLearningActionSelector (double alpha, RewardFunction< State > *reward, actasp::AspKR *reasoner, DefaultActionValue *defval) | |
void | readFrom (std::istream &fromStream) throw () |
void | writeTo (std::ostream &toStream) throw () |
Private Attributes | |
double | alpha |
int | count |
DefaultActionValue * | defval |
State | final |
State | initial |
actasp::AspFluent | previousAction |
actasp::AspKR * | reasoner |
RewardFunction< State > * | reward |
StateActionMap | value |
Definition at line 21 of file QLearningActionSelector.h.
typedef std::map< actasp::AspFluent, double, actasp::ActionComparator> bwi_krexec::QLearningActionSelector::ActionValueMap |
Definition at line 39 of file QLearningActionSelector.h.
Definition at line 24 of file QLearningActionSelector.h.
typedef std::map< State , ActionValueMap , actasp::StateComparator<actasp::AspFluent> > bwi_krexec::QLearningActionSelector::StateActionMap |
Definition at line 40 of file QLearningActionSelector.h.
bwi_krexec::QLearningActionSelector::QLearningActionSelector | ( | double | alpha, |
RewardFunction< State > * | reward, | ||
actasp::AspKR * | reasoner, | ||
DefaultActionValue * | defval | ||
) |
Definition at line 46 of file QLearningActionSelector.cpp.
void bwi_krexec::QLearningActionSelector::actionStarted | ( | const actasp::AspFluent & | action | ) | throw () [virtual] |
Implements actasp::ExecutionObserver.
Definition at line 127 of file QLearningActionSelector.cpp.
void bwi_krexec::QLearningActionSelector::actionTerminated | ( | const actasp::AspFluent & | action | ) | throw () [virtual] |
Implements actasp::ExecutionObserver.
Definition at line 135 of file QLearningActionSelector.cpp.
actasp::ActionSet::const_iterator bwi_krexec::QLearningActionSelector::choose | ( | const actasp::ActionSet & | options | ) | throw () [virtual] |
Implements actasp::ActionSelector.
Definition at line 65 of file QLearningActionSelector.cpp.
Definition at line 142 of file QLearningActionSelector.cpp.
void bwi_krexec::QLearningActionSelector::readFrom | ( | std::istream & | fromStream | ) | throw () |
Definition at line 156 of file QLearningActionSelector.cpp.
void bwi_krexec::QLearningActionSelector::writeTo | ( | std::ostream & | toStream | ) | throw () |
Definition at line 211 of file QLearningActionSelector.cpp.
double bwi_krexec::QLearningActionSelector::alpha [private] |
Definition at line 46 of file QLearningActionSelector.h.
int bwi_krexec::QLearningActionSelector::count [private] |
Definition at line 53 of file QLearningActionSelector.h.
Definition at line 44 of file QLearningActionSelector.h.
Definition at line 51 of file QLearningActionSelector.h.
Definition at line 50 of file QLearningActionSelector.h.
Definition at line 52 of file QLearningActionSelector.h.
Definition at line 43 of file QLearningActionSelector.h.
Definition at line 47 of file QLearningActionSelector.h.
Definition at line 49 of file QLearningActionSelector.h.