91 m_gnuplot.
AppendExtra(
"set arrow from graph 1,0 to graph 1.03,0 size screen 0.025,15,60 filled ls 3");
92 m_gnuplot.
AppendExtra(
"set arrow from graph 0,1 to graph 0,1.03 size screen 0.025,15,60 filled ls 3");
108 plotTitle =
"QKD Keys in the Whole Network";
131 std::ostringstream
yrange;
void SetStyle(Style style)
void Add(double x, double y)
void SetExtra(const std::string &extra)
Add extra formatting parameters to this dataset.
void SetTitle(const std::string &title)
Change line title.
void AddDataset(const GnuplotDataset &dataset)
void SetLegend(const std::string &xLegend, const std::string &yLegend)
void AppendExtra(const std::string &extra)
void GenerateOutput(std::ostream &os)
Writes gnuplot commands and data values to a single output stream.
void SetTitle(const std::string &title)
void SetOutputFilename(const std::string &outputFilename)
A base class which provides memory management and object aggregation.
double m_simulationTime
time value, x-axis
~QKDTotalGraph() override
Destructor.
Gnuplot2dDataset m_dataset
void PrintGraph()
Print the graph.
std::string m_plotFileName
output filename
static TypeId GetTypeId()
Get the type ID.
uint32_t m_keymCurrent
get some boundaries for the graph
void ProcessMCurrent(uint32_t value, char sign)
MCurrent value of the QBuffer changed, so plot it on the graph.
void Init(std::string graphName, std::string graphType)
Initialized function used in constructor.
uint32_t m_keymThreshold
get some boundaries for the graph
uint32_t m_keymMax
get some boundaries for the graph
QKDTotalGraph()
Constructor.
std::string m_plotFileType
static Time Now()
Return the current simulation virtual time.
double GetSeconds() const
Get an approximation of the time stored in this instance in the indicated unit.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Every class exported by the ns3 library is enclosed in the ns3 namespace.