GAMS  1.4.0
StructuralFormation.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_FORMATIONS_STRUCTURAL_FORMATION_H_
55 #define _GAMS_FORMATIONS_STRUCTURAL_FORMATION_H_
56 
57 #include <vector>
58 #include <string>
59 #include <map>
60 
61 #include "madara/knowledge/KnowledgeBase.h"
62 #include "madara/knowledge/containers/StringVector.h"
63 #include "gams/groups/GroupBase.h"
65 
66 namespace gams
67 {
68  namespace formations
69  {
74  {
75  public:
80 
85 
90  virtual void from_args(madara::knowledge::FunctionArguments & args);
91 
98  virtual double goodness(
99  const std::string & id = "", double buffer = 3.0) const;
100 
107  virtual bool is_member(const std::string & id = "") const;
108 
115  virtual bool is_extra(const std::string & id = "") const;
116 
117  protected:
118  };
119  }
120 }
121 
122 #endif // _GAMS_FORMATIONS_STRUCTURAL_FORMATION_H_
Copyright(c) 2016 Carnegie Mellon University.
Copyright(c) 2016 Carnegie Mellon University.
virtual double goodness(const std::string &id="", double buffer=3.0) const
Checks the goodness of an agent in the current formation.
virtual bool is_extra(const std::string &id="") const
Checks if the agent is an extra member of the formation.
virtual void from_args(madara::knowledge::FunctionArguments &args)
Configures the formation from arguments.
virtual bool is_member(const std::string &id="") const
Checks if the agent is a member of the formation.
virtual ~StructuralFormation()
Constructor.
Contains all GAMS-related tools, classes and code.