55 #ifndef _GAMS_ALGORITHMS_MESSAGE_PROFILING_H_ 56 #define _GAMS_ALGORITHMS_MESSAGE_PROFILING_H_ 71 #include "madara/filters/AggregateFilter.h" 72 #include "madara/transport/QoSTransportSettings.h" 93 const madara::knowledge::KnowledgeRecord& send,
94 madara::knowledge::KnowledgeBase * knowledge = 0,
107 void init_filtered_transport (madara::transport::QoSTransportSettings
120 virtual int analyze (
void);
126 virtual int execute (
void);
132 virtual int plan (
void);
146 madara::knowledge::containers::String
data_;
165 void filter (madara::knowledge::KnowledgeMap& records,
166 const madara::transport::TransportContext& transport_context,
167 madara::knowledge::Variables& var);
169 std::string missing_messages_string ()
const;
221 const madara::knowledge::KnowledgeMap & args,
222 madara::knowledge::KnowledgeBase * knowledge,
231 #endif // _GAMS_ALGORITHMS_MESSAGE_PROFILING_H_ Base class for algorithm factories that classes derived from.
std::vector< bool > present
An algorithm for profiling message generation and receipt.
size_t send_size_
size of message to send
Copyright (c) 2014 Carnegie Mellon University.
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Copyright (c) 2014 Carnegie Mellon University.
std::vector< Agent > Agents
An array of agent knowledge.
Copyright (c) 2014 Carnegie Mellon University.
A factory class for creating MessageProfiling Algorithms.
Contains all GAMS-related tools, classes and code.
madara::knowledge::KnowledgeBase * local_knowledge_
provides access to the knowledge base
A container for self referencing information.
std::map< std::string, size_t > msg_map
Keep a MessageData struct for each peer.
The base class that algorithms in GAMS use.
Copyright (c) 2014 Carnegie Mellon University.
static const std::string key_prefix_
Prefix for message keys.
madara::knowledge::containers::String data_
Container for storing data to be sent to other controllers.
MessageFilter filter_
Message Filter object.