54 #ifndef _GAMS_VARIABLES_ALGORITHM_H_ 55 #define _GAMS_VARIABLES_ALGORITHM_H_ 62 #include "madara/knowledge/containers/Integer.h" 63 #include "madara/knowledge/KnowledgeBase.h" 99 void init_vars (madara::knowledge::KnowledgeBase & knowledge,
100 const std::string & new_name,
const std::string & agent_prefix);
108 void init_vars (madara::knowledge::Variables & knowledge,
109 const std::string & new_name,
const std::string & agent_prefix);
117 void init_vars (madara::knowledge::KnowledgeBase & knowledge,
118 const std::string & new_name,
int i);
126 void init_vars (madara::knowledge::Variables & knowledge,
127 const std::string & new_name,
int i);
132 void init_variable_values ();
147 madara::knowledge::containers::Integer
failed;
150 madara::knowledge::containers::Integer
ok;
153 madara::knowledge::containers::Integer
paused;
156 madara::knowledge::containers::Integer
unknown;
159 madara::knowledge::containers::Integer
waiting;
168 std::string make_variable_prefix ()
const;
185 #endif // _GAMS_VARIABLES_ALGORITHM_H_ std::string name
the name of the algorithm
A container for algorithm status information.
madara::knowledge::containers::Integer deadlocked
the agent-specific variables
madara::knowledge::containers::Integer failed
status flag for failed
std::map< std::string, AlgorithmStatus > Algorithms
a map of sensor names to the sensor information
AlgorithmStatus Algorithm
deprecated typedef. Please use AlgorithmStatus instead.
GAMS_EXPORT void init_vars(AccentStatuses &variables, madara::knowledge::KnowledgeBase &knowledge, const std::string &prefix)
Initializes accent status containers.
madara::knowledge::containers::Integer ok
status flag for ok
std::vector< std::string > AlgorithmNames
a list of sensor names
madara::knowledge::containers::Integer finished
status flag for finished
Contains all GAMS-related tools, classes and code.
madara::knowledge::containers::Integer paused
status flag for ok
madara::knowledge::containers::Integer waiting
status flag for waiting
Copyright (c) 2014-2018 Carnegie Mellon University.
madara::knowledge::containers::Integer unknown
status flag for unknown
Algorithms AlgorithmStatuses
a typedef for convenience and legibility