Class sdm::VarNaming
Class List > sdm > VarNaming
#include <variable_naming.hpp>
Inherited by the following classes: sdm::ActionVFMaxplanWCSP, sdm::ActionVFSawtoothWCSP, sdm::DecentralizedLP
Public Functions
Type | Name |
---|---|
number | getNumber (const std::string &) Get the identifier associated with a given name. |
std::string | getVarNameIndividualHistory (const std::shared_ptr< HistoryInterface > & ihistory, const number agent) |
std::string | getVarNameIndividualHistoryDecisionRule (const std::shared_ptr< Action > &, const std::shared_ptr< HistoryInterface > &, const number &) Get the name associated with a pair of action and individual history. |
std::string | getVarNameJointHistoryDecisionRule (const std::shared_ptr< Action > &, const std::shared_ptr< JointHistoryInterface > &) Get the name associated with a pair of action and joint history. |
std::string | getVarNameWeight (number) Get the name of a free variable. |
std::string | getVarNameWeightedStateJointHistory (const std::shared_ptr< State > &, const std::shared_ptr< State > &, const std::shared_ptr< JointHistoryInterface > &) Get the Var Name Weighted State __Joint History object. |
void | setNumber (const std::string &, number) Set pair name identifier for a given variable. |
Protected Attributes
Type | Name |
---|---|
RecursiveMap< std::string, number > | variables mapping from variable names to variable identifiers |
Public Functions Documentation
function getNumber
number sdm::VarNaming::getNumber (
const std::string &
)
Parameters:
const
std::string& name
Returns:
number identifier
function getVarNameIndividualHistory
std::string sdm::VarNaming::getVarNameIndividualHistory (
const std::shared_ptr< HistoryInterface > & ihistory,
const number agent
)
function getVarNameIndividualHistoryDecisionRule
std::string sdm::VarNaming::getVarNameIndividualHistoryDecisionRule (
const std::shared_ptr< Action > &,
const std::shared_ptr< HistoryInterface > &,
const number &
)
Parameters:
action
typename
TVector::jhistory_type::element_type::ihistory_typeagent
Returns:
std::string name
function getVarNameJointHistoryDecisionRule
std::string sdm::VarNaming::getVarNameJointHistoryDecisionRule (
const std::shared_ptr< Action > &,
const std::shared_ptr< JointHistoryInterface > &
)
Parameters:
action
const
typename TVector::jhistory_type&
Returns:
std::string name
function getVarNameWeight
std::string sdm::VarNaming::getVarNameWeight (
number
)
Parameters:
number
identifier of a variable
Returns:
std::string name
function getVarNameWeightedStateJointHistory
std::string sdm::VarNaming::getVarNameWeightedStateJointHistory (
const std::shared_ptr< State > &,
const std::shared_ptr< State > &,
const std::shared_ptr< JointHistoryInterface > &
)
Warning:
const TVector& should be something like const std::shared_ptr<TVector>& or const TVector*&
Returns:
std::string
function setNumber
void sdm::VarNaming::setNumber (
const std::string &,
number
)
Parameters:
const
std::string& namenumber
identifier
Protected Attributes Documentation
variable variables
RecursiveMap<std::string, number> sdm::VarNaming::variables;
The documentation for this class was generated from the following file src/sdm/utils/linear_programming/variable_naming.hpp