A container for swarm information.
More...
#include <Swarm.h>
|
| Swarm () |
| Constructor. More...
|
|
| ~Swarm () |
| Destructor. More...
|
|
void | init_vars (madara::knowledge::KnowledgeBase &knowledge, const madara::knowledge::KnowledgeRecord::Integer &swarm_size=1) |
| Initializes variable containers. More...
|
|
void | init_vars (madara::knowledge::Variables &knowledge, const madara::knowledge::KnowledgeRecord::Integer &swarm_size=1) |
| Initializes variable containers. More...
|
|
void | operator= (const Swarm &agent) |
| Assignment operator. More...
|
|
|
void | init_vars (const madara::knowledge::KnowledgeRecord::Integer &swarm_size) |
| Variable setup. More...
|
|
A container for swarm information.
Definition at line 75 of file Swarm.h.
◆ Swarm()
gams::variables::Swarm::Swarm |
( |
| ) |
|
◆ ~Swarm()
gams::variables::Swarm::~Swarm |
( |
| ) |
|
◆ init_vars() [1/3]
void gams::variables::Swarm::init_vars |
( |
const madara::knowledge::KnowledgeRecord::Integer & |
swarm_size | ) |
|
|
protected |
Variable setup.
- Parameters
-
swarm_size | number of participating agents |
◆ init_vars() [2/3]
void gams::variables::Swarm::init_vars |
( |
madara::knowledge::KnowledgeBase & |
knowledge, |
|
|
const madara::knowledge::KnowledgeRecord::Integer & |
swarm_size = 1 |
|
) |
| |
Initializes variable containers.
- Parameters
-
knowledge | the variable context |
swarm_size | size of the swarm |
◆ init_vars() [3/3]
void gams::variables::Swarm::init_vars |
( |
madara::knowledge::Variables & |
knowledge, |
|
|
const madara::knowledge::KnowledgeRecord::Integer & |
swarm_size = 1 |
|
) |
| |
Initializes variable containers.
- Parameters
-
knowledge | the variable context |
swarm_size | size of the swarm |
◆ operator=()
void gams::variables::Swarm::operator= |
( |
const Swarm & |
agent | ) |
|
Assignment operator.
- Parameters
-
◆ accents
container for accents
Definition at line 126 of file Swarm.h.
◆ algorithm
madara::knowledge::containers::String gams::variables::Swarm::algorithm |
the current command given to the swarm
Definition at line 111 of file Swarm.h.
◆ algorithm_args
madara::knowledge::containers::Map gams::variables::Swarm::algorithm_args |
number of arguments for command
Definition at line 117 of file Swarm.h.
◆ algorithm_id
madara::knowledge::containers::Integer gams::variables::Swarm::algorithm_id |
the current command given to the swarm
Definition at line 114 of file Swarm.h.
◆ min_alt
madara::knowledge::containers::Double gams::variables::Swarm::min_alt |
minimum altitude for swarm to use
Definition at line 120 of file Swarm.h.
◆ size
madara::knowledge::containers::Integer gams::variables::Swarm::size |
the number of agents participating in the swarm
Definition at line 123 of file Swarm.h.
The documentation for this class was generated from the following file: