25 #include "ns3/object.h"
26 #include "ns3/gnuplot.h"
27 #include "ns3/core-module.h"
28 #include "ns3/node-list.h"
29 #include "ns3/qkd-control.h"
70 std::string graphTitle,
Class to represent a 2D points plot.
a simple class to generate gnuplot-ready plotting commands from a set of datasets.
A base class which provides memory management and object aggregation.
Smart pointer class similar to boost::intrusive_ptr.
QKD graphs are implemented to allow straightforward access to QKD buffers' state and convenient monit...
std::string m_plotFileType
Gnuplot2dDataset m_datasetWorkingState_3
Ptr< QKDBuffer > m_buffer
QKDBuffer associated with the QKDGraph.
uint32_t m_keymMax
get some boundaries for the graph
std::string m_plotFileName
output filename
virtual ~QKDGraph()
Destructor.
Ptr< Node > m_src
source node, info required for graph title
Gnuplot2dDataset m_datasetMaximum
QKDGraph(Ptr< QKDControl > control, Ptr< Node > src, Ptr< Node > dst, uint32_t bufferID, std::string graphTitle, std::string graphType)
Constructor.
Gnuplot2dDataset m_datasetWorkingState_Mthr
Gnuplot m_gnuplot
Gluplot object settings.
void ProcessMStatus(uint32_t value)
The status of the QKDBuffer changed, so plot it on the graph.
void ProcessMStatusHelpFunction(double time, uint32_t newValue)
Help function for detection of status change value.
uint32_t m_keymCurrent
get some boundaries for the graph
Gnuplot2dDataset m_datasetThreshold
uint32_t m_keymMin
get some boundaries for the graph
Gnuplot2dDataset m_datasetWorkingState_0
void InitTotalGraph() const
Initialized function for total graph.
uint32_t m_keymThreshold
get some boundaries for the graph
static TypeId GetTypeId(void)
Get the type ID.
Ptr< Node > m_dst
destination node, info required for graph title
void PrintGraph()
Print the graph.
uint32_t m_graphStatusEntry
temp variable
Gnuplot2dDataset m_datasetWorkingState_1
void ProcessMCurrent(uint32_t value)
MCurrent value of the QKDBuffer changed, so plot it on the graph.
double m_simulationTime
time value, x-axis
void ProcessMThrStatus(uint32_t value)
The Mthr value of the QKDBuffer changed, so plot it on the graph.
Gnuplot2dDataset m_dataset
uint32_t m_tempMax
get some boundaries for the graph
Gnuplot2dDataset m_datasetWorkingState_2
Gnuplot2dDataset m_datasetMinimum
a unique identifier for an interface.
Every class exported by the ns3 library is enclosed in the ns3 namespace.