STAMINA/STORM 0.1
Infinite state-space truncator which generates a probability within a window
|
#include <BaseThread.h>
Public Member Functions | |
BaseThread (StaminaModelBuilder< ValueType, RewardModelType, StateType > *parent) | |
virtual void | mainLoop ()=0 |
void | startThread () |
const StaminaModelBuilder< ValueType, RewardModelType, StateType > * | getParent () |
void | join () |
void | terminate () |
Protected Attributes | |
bool | finished |
Base class for all threads. Automatically constructs a thread which runs the mainLoop function.
stamina::builder::threads::BaseThread< StateType, RewardModelType, ValueType >::BaseThread | ( | StaminaModelBuilder< ValueType, RewardModelType, StateType > * | parent | ) |
Constructs a BaseThread
parent | The model builder who owns this thread |
const StaminaModelBuilder< ValueType, RewardModelType, StateType > * stamina::builder::threads::BaseThread< StateType, RewardModelType, ValueType >::getParent |
Gets the pointer to the model builder owning this thread
void stamina::builder::threads::BaseThread< StateType, RewardModelType, ValueType >::join | ( | ) |
Joins the
|
pure virtual |
Pure virtual function for the main loop. When this function returns, the thread dies.
Implemented in stamina::builder::threads::ControlThread< StateType, RewardModelType, ValueType >, and stamina::builder::threads::ExplorationThread< StateType, RewardModelType, ValueType >.
void stamina::builder::threads::BaseThread< StateType, RewardModelType, ValueType >::startThread |
Creates and starts this thread in the background