QKDLocationRegister is a class used to keep details about distant QKD nodes and their connectivity. More...
#include "qkd-location-register.h"
Inheritance diagram for ns3::QKDLocationRegister:
Collaboration diagram for ns3::QKDLocationRegister:Public Member Functions | |
| QKDLocationRegister () | |
| c-tor | |
| QKDLocationRegister (Ptr< Node > n) | |
| bool | AddEntry (QKDLocationRegisterEntry &r) |
| Add location table entry if it doesn't yet exist in location table. | |
| bool | DeleteEntry (uint32_t dst) |
| Delete location table entry with destination address dst, if it exists. | |
| Ipv4Address | GetAddress () |
| TypeId | GetInstanceTypeId () const override |
| Get the type ID for the instance. | |
| void | GetListOfAllEntries (std::map< uint32_t, QKDLocationRegisterEntry > &allRoutes) |
| Lookup list of all addresses in the location table. | |
| void | GetListOfDestinationWithNextHop (uint32_t nxtHp, std::map< uint32_t, QKDLocationRegisterEntry > &dstList) |
| Lookup list of addresses for which nxtHp is the next Hop address. | |
| Ptr< Node > | GetNode () |
| uint32_t | GetSize () |
| Provides the number of routes present in that nodes location table. | |
| bool | Lookup (uint32_t dstSaeId, QKDLocationRegisterEntry &rt) |
| Lookup location table entry with destination address dst. | |
| bool | LookupByKms (Ipv4Address dstKmsId, QKDLocationRegisterEntry &rt) |
| Lookup location table entry with destination address dst KMS Id @Ipv4Address destination KMS Ipv4Address. | |
| void | Print (Ptr< OutputStreamWrapper > stream) const |
| Print location table. | |
| void | SetAddress (Ipv4Address addr) |
| void | SetNode (Ptr< Node > n) |
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. | |
| 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 Member Functions | |
| std::vector< std::pair< uint32_t, uint32_t > > | DijkstraSP (uint32_t start) |
| void | PopulateRoutingTables () |
Private Attributes | |
| Ipv4Address | m_address |
| std::vector< std::pair< uint32_t, uint32_t > > | m_adjList |
| std::map< uint32_t, Ptr< QKDControl > > | m_controllers |
| uint32_t | m_id |
| std::map< uint32_t, QKDLocationRegisterEntry > | m_locationEntites |
| Ptr< Node > | m_node |
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. | |
QKDLocationRegister is a class used to keep details about distant QKD nodes and their connectivity.
Introspection did not find any typical Config paths.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Group: QKDLocationRegister
Size of this type is 200 bytes (on a 64-bit architecture).
Definition at line 51 of file qkd-location-register.h.
| ns3::QKDLocationRegister::QKDLocationRegister | ( | ) |
c-tor
Definition at line 48 of file qkd-location-register.cc.
Definition at line 51 of file qkd-location-register.cc.
References ns3::Create(), ns3::Node::GetApplication(), ns3::Node::GetNApplications(), m_node, NS_ASSERT, SetAddress(), and SetNode().
Here is the call graph for this function:| bool ns3::QKDLocationRegister::AddEntry | ( | QKDLocationRegisterEntry & | r | ) |
Add location table entry if it doesn't yet exist in location table.
| r | location table entry |
Definition at line 67 of file qkd-location-register.cc.
References ns3::Create(), m_id, m_locationEntites, and NS_LOG_FUNCTION.
Referenced by PopulateRoutingTables().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ns3::QKDLocationRegister::DeleteEntry | ( | uint32_t | dst | ) |
Delete location table entry with destination address dst, if it exists.
| dst | destination address |
Definition at line 81 of file qkd-location-register.cc.
References m_locationEntites, and NS_LOG_FUNCTION.
|
private |
Definition at line 155 of file qkd-location-register.cc.
References ns3::Create(), m_adjList, m_id, and NS_LOG_FUNCTION.
Referenced by PopulateRoutingTables().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 130 of file qkd-location-register.h.
References m_address.
|
overridevirtual |
Get the type ID for the instance.
Reimplemented from ns3::Object.
Definition at line 43 of file qkd-location-register.cc.
References GetTypeId().
Here is the call graph for this function:| void ns3::QKDLocationRegister::GetListOfAllEntries | ( | std::map< uint32_t, QKDLocationRegisterEntry > & | allRoutes | ) |
Lookup list of all addresses in the location table.
| allRoutes | is the list that will hold all these addresses present in the nodes location table |
Definition at line 123 of file qkd-location-register.cc.
References ns3::Create(), and m_locationEntites.
Here is the call graph for this function:| void ns3::QKDLocationRegister::GetListOfDestinationWithNextHop | ( | uint32_t | nxtHp, |
| std::map< uint32_t, QKDLocationRegisterEntry > & | dstList | ||
| ) |
Lookup list of addresses for which nxtHp is the next Hop address.
| nxtHp | nexthop's address for which we want the list of destinations |
| dstList | is the list that will hold all these destination addresses |
Definition at line 132 of file qkd-location-register.cc.
References ns3::Create(), and m_locationEntites.
Here is the call graph for this function:Definition at line 126 of file qkd-location-register.h.
References m_node.
| uint32_t ns3::QKDLocationRegister::GetSize | ( | ) |
Provides the number of routes present in that nodes location table.
Definition at line 147 of file qkd-location-register.cc.
References m_locationEntites.
|
static |
Get the type ID.
Definition at line 32 of file qkd-location-register.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ns3::QKDLocationRegister::Lookup | ( | uint32_t | dstSaeId, |
| QKDLocationRegisterEntry & | rt | ||
| ) |
Lookup location table entry with destination address dst.
| dst | destination application ID |
| rt | entry with destination address dst, if exists |
Definition at line 88 of file qkd-location-register.cc.
References ns3::Create(), m_id, m_locationEntites, and NS_LOG_FUNCTION.
Here is the call graph for this function:| bool ns3::QKDLocationRegister::LookupByKms | ( | Ipv4Address | dstKmsId, |
| QKDLocationRegisterEntry & | rt | ||
| ) |
Lookup location table entry with destination address dst KMS Id @Ipv4Address destination KMS Ipv4Address.
| rt | entry with destination address dst, if exists |
Definition at line 108 of file qkd-location-register.cc.
References ns3::Create(), m_locationEntites, and NS_LOG_FUNCTION.
Here is the call graph for this function:
|
private |
Definition at line 268 of file qkd-location-register.cc.
References AddEntry(), ns3::Create(), DijkstraSP(), m_controllers, m_id, and NS_LOG_FUNCTION.
Here is the call graph for this function:| void ns3::QKDLocationRegister::Print | ( | Ptr< OutputStreamWrapper > | stream | ) | const |
Print location table.
| stream | the output stream |
|
inline |
Definition at line 132 of file qkd-location-register.h.
References m_address.
Referenced by QKDLocationRegister().
Here is the caller graph for this function:Definition at line 128 of file qkd-location-register.h.
Referenced by QKDLocationRegister().
Here is the caller graph for this function:
|
private |
Definition at line 150 of file qkd-location-register.h.
Referenced by GetAddress(), and SetAddress().
Definition at line 146 of file qkd-location-register.h.
Referenced by DijkstraSP().
|
private |
Definition at line 148 of file qkd-location-register.h.
Referenced by PopulateRoutingTables().
|
private |
Definition at line 144 of file qkd-location-register.h.
Referenced by AddEntry(), DijkstraSP(), Lookup(), PopulateRoutingTables(), and SetNode().
|
private |
Definition at line 142 of file qkd-location-register.h.
Referenced by AddEntry(), DeleteEntry(), GetListOfAllEntries(), GetListOfDestinationWithNextHop(), GetSize(), Lookup(), and LookupByKms().
Definition at line 152 of file qkd-location-register.h.
Referenced by QKDLocationRegister(), GetNode(), and SetNode().