GAMS  1.4.0
Self.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_VARIABLES_SELF_H_
55 #define _GAMS_VARIABLES_SELF_H_
56 
57 #include "gams/GamsExport.h"
58 #include "madara/knowledge/containers/Integer.h"
59 #include "madara/knowledge/KnowledgeBase.h"
60 #include "Agent.h"
61 
62 namespace gams
63 {
64  namespace variables
65  {
70  {
71  public:
75  Self();
76 
80  ~Self();
81 
86  void operator=(const Self & agent);
87 
93  void init_vars(madara::knowledge::KnowledgeBase & knowledge,
94  const madara::knowledge::KnowledgeRecord::Integer & id);
95 
101  void init_vars(madara::knowledge::KnowledgeBase & knowledge,
102  const std::string & self_prefix);
103 
109  void init_vars(madara::knowledge::Variables & knowledge,
110  const madara::knowledge::KnowledgeRecord::Integer & id);
111 
113  madara::knowledge::containers::Integer id;
114 
116  madara::knowledge::containers::String prefix;
117 
120  };
121 
128  GAMS_EXPORT void init_vars(Self & container,
129  madara::knowledge::KnowledgeBase & knowledge,
130  const madara::knowledge::KnowledgeRecord::Integer & id);
131 
138  GAMS_EXPORT void init_vars(Self & container,
139  madara::knowledge::KnowledgeBase & knowledge,
140  const std::string & self_prefix);
141  }
142 }
143 
144 #endif // _GAMS_VARIABLES_SWARM_H_
Copyright(c) 2014-2018 Carnegie Mellon University.
#define GAMS_EXPORT
Definition: GamsExport.h:20
A container for agent information.
Definition: Agent.h:80
A container for self referencing information.
Definition: Self.h:70
madara::knowledge::containers::Integer id
the id of this agent
Definition: Self.h:113
Self()
Constructor.
Agent agent
the agent-specific variables
Definition: Self.h:119
void init_vars(madara::knowledge::KnowledgeBase &knowledge, const std::string &self_prefix)
Initializes variable containers.
void operator=(const Self &agent)
Assignment operator.
void init_vars(madara::knowledge::KnowledgeBase &knowledge, const madara::knowledge::KnowledgeRecord::Integer &id)
Initializes variable containers.
madara::knowledge::containers::String prefix
the id of this agent
Definition: Self.h:116
void init_vars(madara::knowledge::Variables &knowledge, const madara::knowledge::KnowledgeRecord::Integer &id)
Initializes variable containers.
GAMS_EXPORT void init_vars(AccentStatuses &variables, madara::knowledge::KnowledgeBase &knowledge, const std::string &prefix)
Initializes accent status containers.
Contains all GAMS-related tools, classes and code.