21 #ifndef DATA_COLLECTOR_H 22 #define DATA_COLLECTOR_H 27 #include "ns3/object.h" 42 typedef std::list<std::pair<std::string, std::string> >
MetadataList;
72 std::string description =
"");
105 void AddMetadata (std::string key, std::string value);
117 void AddMetadata (std::string key, uint32_t value);
std::string m_strategyLabel
Strategy label.
DataCalculatorList::iterator DataCalculatorEnd()
Returns an iterator to the past-the-end of the DataCalculator list.
std::list< Ptr< DataCalculator > > DataCalculatorList
List of Ptrs to DataCalculator objects.
std::string m_description
Description label.
std::string GetInputLabel() const
Return the input label.
std::string GetStrategyLabel() const
Return the strategy label.
MetadataList::iterator MetadataBegin()
Returns an iterator to the beginning of the metadata list.
std::string GetExperimentLabel() const
Return the experiment label.
void AddDataCalculator(Ptr< DataCalculator > datac)
Add a DataCalculator object to the DataCollector.
static TypeId GetTypeId(void)
Register this type.
std::string GetDescription() const
Return the description label.
void AddMetadata(std::string key, std::string value)
Add the key and the value as a pair of strings to the metadata list.
std::string m_experimentLabel
Experiment label.
std::string GetRunLabel() const
Return the runID label.
std::string m_runLabel
Run label.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
DataCalculatorList m_calcList
List of data calculators.
std::string m_inputLabel
Input label.
Calculates data during a simulation.
DataCalculatorList::iterator DataCalculatorBegin()
Returns an iterator to the beginning of the DataCalculator list.
void DescribeRun(std::string experiment, std::string strategy, std::string input, std::string runID, std::string description="")
Provide specific parameters to the DataCollector.
virtual void DoDispose()
Destructor implementation.
A base class which provides memory management and object aggregation.
MetadataList m_metadata
List of experiment metadata.
a unique identifier for an interface.
MetadataList::iterator MetadataEnd()
Returns an iterator to the past-the-end of the metadata list.
std::list< std::pair< std::string, std::string > > MetadataList
List of pairs of strings representing metadata.
void experiment(bool enableCtsRts, std::string wifiManager)
Run single 10 seconds experiment.