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

#include <SarsaActionSelector.h>

Inheritance diagram for bwi_krexec::SarsaActionSelector:
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 () throw ()
void goalChanged (std::vector< actasp::AspRule > newGoalRules) throw ()
void policyChanged (actasp::PartialPolicy *newPolicy) throw ()
void readFrom (std::istream &fromStream) throw ()
void readMapFrom (std::istream &fromStream) throw ()
 SarsaActionSelector (actasp::FilteringKR *reasoner, DefaultActionValue *defval, RewardFunction< State > *reward, const SarsaParams &p=SarsaParams())
void saveValueInitialState (const std::string &fileName)
void writeMapTo (std::ostream &toStream) throw ()
void writeTo (std::ostream &toStream) throw ()

Private Member Functions

bool stateCompare (const std::set< actasp::AspFluent > state, const std::set< actasp::AspFluent > otherstate)
void updateValue (double v_s_prime)

Private Attributes

DefaultActionValuedefval
StateActionMap e
State final
State finalNotFiltered
std::vector< actasp::AspRulegoalRules
State initial
State initialNotFiltered
std::map< State, State,
actasp::StateComparator
< actasp::AspFluent > > 
notFilteredToFiltered
SarsaParams p
actasp::GraphPolicypolicy
actasp::AspFluent previousAction
actasp::FilteringKRreasoner
RewardFunction< State > * reward
double v_s
StateActionMap value

Detailed Description

Definition at line 32 of file SarsaActionSelector.h.


Member Typedef Documentation

Definition at line 60 of file SarsaActionSelector.h.

Definition at line 35 of file SarsaActionSelector.h.

Definition at line 61 of file SarsaActionSelector.h.


Constructor & Destructor Documentation

Definition at line 48 of file SarsaActionSelector.cpp.


Member Function Documentation

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.

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.

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.


Member Data Documentation

Definition at line 68 of file SarsaActionSelector.h.

Definition at line 74 of file SarsaActionSelector.h.

Definition at line 77 of file SarsaActionSelector.h.

Definition at line 78 of file SarsaActionSelector.h.

Definition at line 84 of file SarsaActionSelector.h.

Definition at line 75 of file SarsaActionSelector.h.

Definition at line 76 of file SarsaActionSelector.h.

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.

Definition at line 80 of file SarsaActionSelector.h.

Definition at line 73 of file SarsaActionSelector.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