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;
 
   66                     std::string description = 
"");
 
   99   void AddMetadata (std::string key, std::string value);
 
  111   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. 
 
void experiment(bool enableCtsRts)
Run single 10 seconds experiment with enabled or disabled RTS/CTS mechanism. 
 
std::list< Ptr< DataCalculator > > DataCalculatorList
List of Ptrs to DataCalculator objects. 
 
std::string GetRunLabel() const 
Return the runID label. 
 
std::string m_description
Description label. 
 
MetadataList::iterator MetadataBegin()
Returns an iterator to the beginning of the metadata list. 
 
void AddDataCalculator(Ptr< DataCalculator > datac)
Add a DataCalculator object to the DataCollector. 
 
std::string GetStrategyLabel() const 
Return the strategy 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 m_runLabel
Run label. 
 
std::string GetExperimentLabel() const 
Return the experiment label. 
 
DataCalculatorList m_calcList
List of data calculators. 
 
std::string m_inputLabel
Input label. 
 
Calculates data during a simulation. 
 
std::string GetDescription() const 
Return the description label. 
 
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()
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
 
std::string GetInputLabel() const 
Return the input label. 
 
a base class which provides memory management and object aggregation 
 
MetadataList m_metadata
List of experiment metadata. 
 
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.