QKDTotalGraph is implemented to allow easier access to the state of ALL QBuffers and easier monitoring of the overall key material consumption. More...
#include "qkd-total-graph.h"
Inheritance diagram for ns3::QKDTotalGraph:
Collaboration diagram for ns3::QKDTotalGraph:Public Member Functions | |
| QKDTotalGraph () | |
| Constructor. | |
| QKDTotalGraph (std::string graphName, std::string graphType) | |
| Constructor. | |
| ~QKDTotalGraph () override | |
| Destructor. | |
| void | Init (std::string graphName, std::string graphType) |
| Initialized function used in constructor. | |
| void | PrintGraph () |
| Print the graph. | |
| void | ProcessMCurrent (uint32_t value, char sign) |
| MCurrent value of the QBuffer changed, so plot it on the graph. | |
Public Member Functions inherited from ns3::Object | |
| Object () | |
| Constructor. | |
| ~Object () override | |
| Destructor. | |
| void | AggregateObject (Ptr< Object > other) |
| Aggregate two Objects together. | |
| void | Dispose () |
| Dispose of this Object. | |
| AggregateIterator | GetAggregateIterator () const |
| Get an iterator to the Objects aggregated to this one. | |
| TypeId | GetInstanceTypeId () const override |
| Get the most derived TypeId for this Object. | |
| template<typename T > | |
| Ptr< T > | GetObject () const |
| Get a pointer to the requested aggregated Object. | |
| template<> | |
| Ptr< Object > | GetObject () const |
| Specialization of () for objects of type ns3::Object. | |
| template<typename T > | |
| Ptr< T > | GetObject (TypeId tid) const |
| Get a pointer to the requested aggregated Object by TypeId. | |
| template<> | |
| Ptr< Object > | GetObject (TypeId tid) const |
| Specialization of (TypeId tid) for objects of type ns3::Object. | |
| void | Initialize () |
| Invoke DoInitialize on all Objects aggregated to this one. | |
| bool | IsInitialized () const |
| Check if the object has been initialized. | |
| void | UnidirectionalAggregateObject (Ptr< Object > other) |
| Aggregate an Object to another Object. | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
| SimpleRefCount () | |
| Default constructor. | |
| SimpleRefCount (const SimpleRefCount &o) | |
| Copy constructor. | |
| uint32_t | GetReferenceCount () const |
| Get the reference count of the object. | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| Assignment operator. | |
| void | Ref () const |
| Increment the reference count. | |
| void | Unref () const |
| Decrement the reference count. | |
Public Member Functions inherited from ns3::ObjectBase | |
| virtual | ~ObjectBase () |
| Virtual destructor. | |
| void | GetAttribute (std::string name, AttributeValue &value, bool permissive=false) const |
| Get the value of an attribute, raising fatal errors if unsuccessful. | |
| bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
| Get the value of an attribute without raising errors. | |
| void | SetAttribute (std::string name, const AttributeValue &value) |
| Set a single attribute, raising fatal errors if unsuccessful. | |
| bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
| Set a single attribute without raising errors. | |
| bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
| Connect a TraceSource to a Callback with a context. | |
| bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
| Connect a TraceSource to a Callback without a context. | |
| bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected with a context. | |
| bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
| Disconnect from a TraceSource a Callback previously connected without a context. | |
Static Public Member Functions | |
| static TypeId | GetTypeId () |
| Get the type ID. | |
Static Public Member Functions inherited from ns3::Object | |
| static TypeId | GetTypeId () |
| Register this type. | |
Static Public Member Functions inherited from ns3::ObjectBase | |
| static TypeId | GetTypeId () |
| Get the type ID. | |
Private Attributes | |
| Gnuplot2dDataset | m_dataset |
| Gnuplot | m_gnuplot |
| uint32_t | m_keymCurrent |
| get some boundaries for the graph | |
| uint32_t | m_keymMax |
| get some boundaries for the graph | |
| uint32_t | m_keymThreshold |
| get some boundaries for the graph | |
| std::string | m_plotFileName |
| output filename | |
| std::string | m_plotFileType |
| double | m_simulationTime |
| time value, x-axis | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
| Object (const Object &o) | |
| Copy an Object. | |
| virtual void | DoDispose () |
| Destructor implementation. | |
| virtual void | DoInitialize () |
| Initialize() implementation. | |
| virtual void | NotifyNewAggregate () |
| Notify all Objects aggregated to this one of a new Object being aggregated. | |
Protected Member Functions inherited from ns3::ObjectBase | |
| void | ConstructSelf (const AttributeConstructionList &attributes) |
| Complete construction of ObjectBase; invoked by derived classes. | |
| virtual void | NotifyConstructionCompleted () |
| Notifier called once the ObjectBase is fully constructed. | |
Related Symbols inherited from ns3::ObjectBase | |
| static TypeId | GetObjectIid () |
| Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
QKDTotalGraph is implemented to allow easier access to the state of ALL QBuffers and easier monitoring of the overall key material consumption.
Introspection did not find any typical Config paths.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 368 bytes (on a 64-bit architecture).
Definition at line 33 of file qkd-total-graph.h.
| ns3::QKDTotalGraph::QKDTotalGraph | ( | ) |
Constructor.
Definition at line 29 of file qkd-total-graph.cc.
References Init().
Here is the call graph for this function:| ns3::QKDTotalGraph::QKDTotalGraph | ( | std::string | graphName, |
| std::string | graphType | ||
| ) |
Constructor.
| std::string | graphTitle |
| std::string | graphType |
Definition at line 33 of file qkd-total-graph.cc.
References ns3::Create(), and Init().
Here is the call graph for this function:
|
override |
Destructor.
Definition at line 27 of file qkd-total-graph.cc.
|
static |
Get the type ID.
Definition at line 19 of file qkd-total-graph.cc.
References ns3::TypeId::SetParent().
Here is the call graph for this function:| void ns3::QKDTotalGraph::Init | ( | std::string | graphName, |
| std::string | graphType | ||
| ) |
Initialized function used in constructor.
Definition at line 41 of file qkd-total-graph.cc.
References ns3::Gnuplot::AppendExtra(), ns3::Create(), ns3::Gnuplot2dDataset::LINES_POINTS, m_dataset, m_gnuplot, m_keymCurrent, m_keymMax, m_keymThreshold, m_plotFileName, m_plotFileType, NS_LOG_FUNCTION, ns3::GnuplotDataset::SetExtra(), ns3::Gnuplot::SetLegend(), ns3::Gnuplot::SetOutputFilename(), ns3::Gnuplot2dDataset::SetStyle(), ns3::GnuplotDataset::SetTitle(), and ns3::Gnuplot::SetTitle().
Referenced by QKDTotalGraph(), and QKDTotalGraph().
Here is the call graph for this function:
Here is the caller graph for this function:| void ns3::QKDTotalGraph::PrintGraph | ( | ) |
Print the graph.
Definition at line 122 of file qkd-total-graph.cc.
References ns3::Gnuplot::AddDataset(), ns3::Gnuplot::AppendExtra(), ns3::Create(), ns3::Gnuplot::GenerateOutput(), m_dataset, m_gnuplot, m_keymMax, m_plotFileName, and NS_LOG_FUNCTION.
Here is the call graph for this function:MCurrent value of the QBuffer changed, so plot it on the graph.
| uint32_t | value |
| char | signToBePloted |
Definition at line 148 of file qkd-total-graph.cc.
References ns3::Gnuplot2dDataset::Add(), ns3::Create(), ns3::Time::GetSeconds(), m_dataset, m_keymCurrent, m_keymMax, m_simulationTime, ns3::Simulator::Now(), and NS_LOG_FUNCTION.
Here is the call graph for this function:
|
private |
Definition at line 94 of file qkd-total-graph.h.
Referenced by Init(), PrintGraph(), and ProcessMCurrent().
|
private |
Definition at line 93 of file qkd-total-graph.h.
Referenced by Init(), and PrintGraph().
|
private |
get some boundaries for the graph
Definition at line 85 of file qkd-total-graph.h.
Referenced by Init(), and ProcessMCurrent().
|
private |
get some boundaries for the graph
Definition at line 87 of file qkd-total-graph.h.
Referenced by Init(), PrintGraph(), and ProcessMCurrent().
|
private |
get some boundaries for the graph
Definition at line 86 of file qkd-total-graph.h.
Referenced by Init().
|
private |
output filename
Definition at line 89 of file qkd-total-graph.h.
Referenced by Init(), and PrintGraph().
|
private |
Definition at line 90 of file qkd-total-graph.h.
Referenced by Init().
|
private |
time value, x-axis
Definition at line 91 of file qkd-total-graph.h.
Referenced by ProcessMCurrent().