#include <SarsaActionSelector.h>
Definition at line 32 of file SarsaActionSelector.h.
typedef std::map< actasp::AspFluent, double, actasp::ActionComparator> bwi_krexec::SarsaActionSelector::ActionValueMap |
Definition at line 60 of file SarsaActionSelector.h.
Definition at line 35 of file SarsaActionSelector.h.
typedef std::map< State , ActionValueMap , actasp::StateComparator<actasp::AspFluent> > bwi_krexec::SarsaActionSelector::StateActionMap |
Definition at line 61 of file SarsaActionSelector.h.
bwi_krexec::SarsaActionSelector::SarsaActionSelector | ( | actasp::FilteringKR * | reasoner, |
DefaultActionValue * | defval, | ||
RewardFunction< State > * | reward, | ||
const SarsaParams & | p = SarsaParams() |
||
) |
Definition at line 48 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::actionStarted | ( | const actasp::AspFluent & | action | ) | throw () [virtual] |
Implements actasp::ExecutionObserver.
Definition at line 257 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::actionTerminated | ( | const actasp::AspFluent & | action | ) | throw () [virtual] |
Implements actasp::ExecutionObserver.
Definition at line 284 of file SarsaActionSelector.cpp.
actasp::ActionSet::const_iterator bwi_krexec::SarsaActionSelector::choose | ( | const actasp::ActionSet & | options | ) | throw () [virtual] |
Implements actasp::ActionSelector.
Definition at line 70 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::episodeEnded | ( | ) | throw () |
Definition at line 336 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::goalChanged | ( | std::vector< actasp::AspRule > | newGoalRules | ) | throw () |
Definition at line 233 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::policyChanged | ( | actasp::PartialPolicy * | newPolicy | ) | throw () [virtual] |
Implements actasp::ExecutionObserver.
Definition at line 227 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::readFrom | ( | std::istream & | fromStream | ) | throw () |
Definition at line 409 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::readMapFrom | ( | std::istream & | fromStream | ) | throw () |
Definition at line 525 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::saveValueInitialState | ( | const std::string & | fileName | ) |
Definition at line 351 of file SarsaActionSelector.cpp.
bool bwi_krexec::SarsaActionSelector::stateCompare | ( | const std::set< actasp::AspFluent > | state, |
const std::set< actasp::AspFluent > | otherstate | ||
) | [private] |
Definition at line 239 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::updateValue | ( | double | v_s_prime | ) | [private] |
Definition at line 171 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::writeMapTo | ( | std::ostream & | toStream | ) | throw () |
Definition at line 529 of file SarsaActionSelector.cpp.
void bwi_krexec::SarsaActionSelector::writeTo | ( | std::ostream & | toStream | ) | throw () |
Definition at line 463 of file SarsaActionSelector.cpp.
Definition at line 68 of file SarsaActionSelector.h.
Definition at line 74 of file SarsaActionSelector.h.
State bwi_krexec::SarsaActionSelector::final [private] |
Definition at line 77 of file SarsaActionSelector.h.
Definition at line 78 of file SarsaActionSelector.h.
std::vector<actasp::AspRule> bwi_krexec::SarsaActionSelector::goalRules [private] |
Definition at line 84 of file SarsaActionSelector.h.
Definition at line 75 of file SarsaActionSelector.h.
Definition at line 76 of file SarsaActionSelector.h.
std::map< State, State, actasp::StateComparator<actasp::AspFluent> > bwi_krexec::SarsaActionSelector::notFilteredToFiltered [private] |
Definition at line 85 of file SarsaActionSelector.h.
Definition at line 70 of file SarsaActionSelector.h.
Definition at line 83 of file SarsaActionSelector.h.
Definition at line 79 of file SarsaActionSelector.h.
Definition at line 67 of file SarsaActionSelector.h.
Definition at line 71 of file SarsaActionSelector.h.
double bwi_krexec::SarsaActionSelector::v_s [private] |
Definition at line 80 of file SarsaActionSelector.h.
Definition at line 73 of file SarsaActionSelector.h.