perkun  0.0.9
ExperimentalAIlanguage
Protected Member Functions | Protected Attributes | List of all members
perkun::action_iteration_controller Class Reference

#include <perkun.h>

Inheritance diagram for perkun::action_iteration_controller:
perkun::class_with_tracking perkun::dump_controller perkun::optimizer perkun::optimizer_with_all_data

Protected Member Functions

virtual std::list< action * >::const_iterator get_action_iteration_begin ()
 
virtual void action_iteration_increment (std::list< action * >::const_iterator &target)
 
virtual bool get_action_iteration_terminated (const std::list< action * >::const_iterator &i)
 
 action_iteration_controller (collection_of_actions &a)
 
- Protected Member Functions inherited from perkun::class_with_tracking
virtual decision make_decision (const std::list< tracker * > &s)
 
- Protected Member Functions inherited from perkun::dump_controller
virtual void dump_belief (std::ostream &s) const =0
 
virtual void dump_belief_XML (std::ostream &s) const =0
 
virtual std::string get_stack_file_prefix () const
 
virtual std::string get_iteration_report_file_prefix () const
 
virtual std::string get_belief_file_prefix () const
 
void dump_stack_to_target_stream ()
 
void dump_belief_to_target_stream ()
 
void dump_iteration_report_to_target_stream ()
 

Protected Attributes

collection_of_actionsmy_actions
 
- Protected Attributes inherited from perkun::class_with_tracking
std::list< tracker * > stack_of_trackers
 
- Protected Attributes inherited from perkun::dump_controller
dump_stack_mode_type dump_stack_mode
 
dump_belief_mode_type dump_belief_mode
 
dump_iteration_report_mode_type dump_iteration_report_mode
 
target_type dump_stack_target
 
target_type dump_belief_target
 
target_type dump_iteration_report_target
 
int min_report_depth
 
int max_report_depth
 
int stack_file_counter
 
int belief_file_counter
 
int iteration_report_file_counter
 

Additional Inherited Members

- Public Member Functions inherited from perkun::class_with_tracking
virtual void dump_stack (std::ostream &s) const
 
virtual void dump_stack_XML (std::ostream &s) const
 
virtual void dump_iteration_report (std::ostream &s) const
 
virtual void dump_iteration_report_XML (std::ostream &s) const
 
- Public Member Functions inherited from perkun::dump_controller
void set_min_report_depth (int d)
 
void set_max_report_depth (int d)
 
- Protected Types inherited from perkun::class_with_tracking
enum  decision { BREAK, CONTINUE, NONE }
 
- Protected Types inherited from perkun::dump_controller
enum  target_type { COUT = 0x1, CERR = 0x2, SINGLE_FILE = 0x4, ITERATED_FILES = 0x8 }
 
enum  dump_stack_mode_type { dump_stack_as_XML, dump_stack_as_text }
 
enum  dump_belief_mode_type { dump_belief_as_XML, dump_belief_as_text }
 
enum  dump_iteration_report_mode_type { dump_iteration_report_as_XML, dump_iteration_report_as_text }
 

Detailed Description

The action iteration controller is used by the optimizer to iterate over the actions. By redefining its virtual functions we can control the order of the actions to be considered. It is inherited from class_with_tracking and so is allowed to use its stack of trackers. This allows using heuristics.

Member Function Documentation

void action_iteration_controller::action_iteration_increment ( std::list< action * >::const_iterator &  target)
protectedvirtual

Incrementation of the iterator.

std::list< action * >::const_iterator action_iteration_controller::get_action_iteration_begin ( )
protectedvirtual

The iterator pointing at the first value. It can be overriden to use a different permutation of actions. By default it returns begin() of the list of actions.

bool action_iteration_controller::get_action_iteration_terminated ( const std::list< action * >::const_iterator &  i)
protectedvirtual

Returns true if the iteration is terminated.


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