Public Types | Public Member Functions | Private Attributes
bwi_krexec::QLearningActionSelector Class Reference

#include <QLearningActionSelector.h>

Inheritance diagram for bwi_krexec::QLearningActionSelector:
Inheritance graph
[legend]

List of all members.

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
DefaultActionValuedefval
State final
State initial
actasp::AspFluent previousAction
actasp::AspKRreasoner
RewardFunction< State > * reward
StateActionMap value

Detailed Description

Definition at line 21 of file QLearningActionSelector.h.


Member Typedef Documentation

Definition at line 39 of file QLearningActionSelector.h.

Definition at line 24 of file QLearningActionSelector.h.

Definition at line 40 of file QLearningActionSelector.h.


Constructor & Destructor Documentation

Definition at line 46 of file QLearningActionSelector.cpp.


Member Function Documentation

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.


Member Data Documentation

Definition at line 46 of file QLearningActionSelector.h.

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.


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


bwi_kr_execution
Author(s): Matteo Leonetti, Piyush Khandelwal
autogenerated on Thu Jun 6 2019 17:57:37