MachineIntelligenceCore:Visualization
mic::opengl::application::OpenGLEpisodicApplication Class Referenceabstract

Parent class for all applications basing on episodes, without distinguising learning and training phases. Each episode will end when step will return false. More...

#include <OpenGLEpisodicApplication.hpp>

Inheritance diagram for mic::opengl::application::OpenGLEpisodicApplication:
Collaboration diagram for mic::opengl::application::OpenGLEpisodicApplication:

Public Member Functions

 OpenGLEpisodicApplication (std::string node_name_)
 
virtual ~OpenGLEpisodicApplication ()
 
virtual void processingThread (void)
 Function realizing the processing thread. Implements basic quit/pause/single step functionality. In each step it calls the performSingleStep() method. Can be overridden by derived classes. More...
 
- Public Member Functions inherited from mic::opengl::application::OpenGLApplication
 OpenGLApplication (std::string node_name_)
 
virtual ~OpenGLApplication ()
 
virtual void initialize (int argc, char *argv[])=0
 
virtual void run ()
 

Protected Member Functions

virtual void startNewEpisode ()=0
 
virtual void finishCurrentEpisode ()=0
 
- Protected Member Functions inherited from mic::opengl::application::OpenGLApplication
virtual void performInitialStep (void)
 The initial step - empty, to be overridden. More...
 
virtual void performFinalStep (void)
 The initial step - empty, to be overridden. More...
 

Protected Attributes

unsigned long episode
 Episode counter. More...
 
mic::configuration::Property
< long > 
number_of_episodes
 

Detailed Description

Parent class for all applications basing on episodes, without distinguising learning and training phases. Each episode will end when step will return false.

Author
tkornuta
Date
Feb 19, 2016

Definition at line 39 of file OpenGLEpisodicApplication.hpp.

Constructor & Destructor Documentation

mic::opengl::application::OpenGLEpisodicApplication::OpenGLEpisodicApplication ( std::string  node_name_)

Default constructor. Sets the application/node name and registers properties.

Parameters
node_name_Name of the application/node (in configuration file).

Definition at line 29 of file OpenGLEpisodicApplication.cpp.

References number_of_episodes.

virtual mic::opengl::application::OpenGLEpisodicApplication::~OpenGLEpisodicApplication ( )
inlinevirtual

Default destructor - empty.

Definition at line 50 of file OpenGLEpisodicApplication.hpp.

Member Function Documentation

virtual void mic::opengl::application::OpenGLEpisodicApplication::finishCurrentEpisode ( )
protectedpure virtual

Method called when given episode ends (goal: export collected statistics to file etc.) - abstract, to be overridden.

Referenced by processingThread().

void mic::opengl::application::OpenGLEpisodicApplication::processingThread ( void  )
virtual

Function realizing the processing thread. Implements basic quit/pause/single step functionality. In each step it calls the performSingleStep() method. Can be overridden by derived classes.

Author
tkornuta

Reimplemented from mic::opengl::application::OpenGLApplication.

Definition at line 39 of file OpenGLEpisodicApplication.cpp.

References episode, finishCurrentEpisode(), number_of_episodes, and startNewEpisode().

Here is the call graph for this function:

virtual void mic::opengl::application::OpenGLEpisodicApplication::startNewEpisode ( )
protectedpure virtual

Method called at the beginning of new episode (goal: to reset the statistics etc.) - abstract, to be overridden.

Referenced by processingThread().

Member Data Documentation

unsigned long mic::opengl::application::OpenGLEpisodicApplication::episode
protected

Episode counter.

Definition at line 72 of file OpenGLEpisodicApplication.hpp.

Referenced by processingThread().

mic::configuration::Property<long> mic::opengl::application::OpenGLEpisodicApplication::number_of_episodes
protected

Property: number of episodes, after which the application will end. 0 (default value) deactivates terminal condition (unlimited number of episodes).

Definition at line 77 of file OpenGLEpisodicApplication.hpp.

Referenced by OpenGLEpisodicApplication(), and processingThread().


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