Class sdm::InitializerFactory

Class List > sdm > InitializerFactory

The InitializerFactor class facilitates users to interact and instanciate value function initializers. Some of the available initializers are : MinInitializer ,MaxInitializer ,BlindInitializer ,ZeroInitializer . For a complete list of initializer, you can use : std::cout <<InitializerFactory::available() << std::endl;.

  • #include <initializers.hpp>

Public Static Functions

Type Name
void addToRegistry (std::string name)
std::vector< std::string > available ()
map_type & getRegistry ()
std::shared_ptr< Initializer > make (std::string name, std::shared_ptr< SolvableByHSVI > world)

Protected Types

Type Name
typedef std::map< std::string, std::shared_ptr< Initializer > std::shared_ptr map_type

Protected Static Attributes

Type Name
map_type registry_ = = {
        {"Min", &createInstance&lt;[**MinInitializer**](classsdm_1_1MinInitializer.md)&gt;},
        {"Max", &createInstance&lt;[**MaxInitializer**](classsdm_1_1MaxInitializer.md)&gt;},
        {"Blind", &createInstance&lt;[**BlindInitializer**](classsdm_1_1BlindInitializer.md)&gt;},
        {"Zero", &createInstance&lt;[**ZeroInitializer**](classsdm_1_1ZeroInitializer.md)&lt;&gt;&gt;},
        
        {"MdpHsvi", &createInstanceTabMDPInit},
        {"MdpValueIteration", &createInstanceMDPValueIterationInit},
        {"PomdpHsvi", &createInstanceTabPOMDPInit},
    }<br> |

Public Static Functions Documentation

function addToRegistry

template<class TInitializer class TInitializer>
static inline void sdm::InitializerFactory::addToRegistry (
    std::string name
) 

function available

static inline std::vector< std::string > sdm::InitializerFactory::available () 

function getRegistry

static inline map_type & sdm::InitializerFactory::getRegistry () 

function make

static inline std::shared_ptr< Initializer > sdm::InitializerFactory::make (
    std::string name,
    std::shared_ptr< SolvableByHSVI > world
) 

Protected Types Documentation

typedef map_type

typedef std::map<std::string, std::shared_ptr<Initializer> std::shared_ptr sdm::InitializerFactory::map_type;

Protected Static Attributes Documentation

variable registry_

map_type sdm::InitializerFactory::registry_;

The documentation for this class was generated from the following file src/sdm/utils/value_function/initializer/initializers.hpp