#include "satellite-isl-arbiter-unicast.h"
Public Member Functions | |
SatIslArbiterUnicast () | |
Default constructor. More... | |
SatIslArbiterUnicast (Ptr< Node > node) | |
Constructor, without initializing the map of next hops. More... | |
SatIslArbiterUnicast (Ptr< Node > node, std::map< uint32_t, uint32_t > nextHopMap) | |
Constructor. More... | |
void | AddNextHopEntry (uint32_t destinationId, uint32_t netDeviceIndex) |
Add an entry on arbiter. More... | |
int32_t | Decide (int32_t sourceSatId, int32_t targetSatId, Ptr< Packet > pkt) |
Decide how to forward. More... | |
std::string | StringReprOfForwardingState () |
Unicast routing table. More... | |
Public Member Functions inherited from ns3::SatIslArbiter | |
SatIslArbiter () | |
Default constructor. More... | |
SatIslArbiter (Ptr< Node > node) | |
Constructor. More... | |
int32_t | BaseDecide (Ptr< Packet > pkt, Mac48Address destination) |
Base decide how to forward. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::SatIslArbiter | |
static TypeId | GetTypeId (void) |
Private Attributes | |
std::map< uint32_t, uint32_t > | m_nextHopMap |
Additional Inherited Members | |
Protected Attributes inherited from ns3::SatIslArbiter | |
uint32_t | m_nodeId |
Definition at line 36 of file satellite-isl-arbiter-unicast.h.
ns3::SatIslArbiterUnicast::SatIslArbiterUnicast | ( | ) |
Default constructor.
Definition at line 49 of file satellite-isl-arbiter-unicast.cc.
ns3::SatIslArbiterUnicast::SatIslArbiterUnicast | ( | Ptr< Node > | node | ) |
Constructor, without initializing the map of next hops.
node | The satellite node this unicast arbiter is attached |
Definition at line 57 of file satellite-isl-arbiter-unicast.cc.
ns3::SatIslArbiterUnicast::SatIslArbiterUnicast | ( | Ptr< Node > | node, |
std::map< uint32_t, uint32_t > | nextHopMap | ||
) |
Constructor.
node | The satellite node this unicast arbiter is attached |
nextHop | The next hop (interface ID) for each destination possible (satellite ID) |
Definition at line 63 of file satellite-isl-arbiter-unicast.cc.
References m_nextHopMap.
void ns3::SatIslArbiterUnicast::AddNextHopEntry | ( | uint32_t | destinationId, |
uint32_t | netDeviceIndex | ||
) |
Add an entry on arbiter.
destinationId | Node ID of destination satellite |
netDeviceIndex | ISL Net Device index |
Definition at line 126 of file satellite-isl-arbiter-unicast.cc.
References m_nextHopMap.
|
virtual |
Decide how to forward.
Implemented in subclasses
sourceSatId | Satellite ID where the packet originated from |
targetSatId | Satellite ID where the packet has to go to |
pkt | Packet |
Implements ns3::SatIslArbiter.
Definition at line 71 of file satellite-isl-arbiter-unicast.cc.
References m_nextHopMap.
|
static |
Definition at line 41 of file satellite-isl-arbiter-unicast.cc.
|
virtual |
Unicast routing table.
Implements ns3::SatIslArbiter.
Definition at line 83 of file satellite-isl-arbiter-unicast.cc.
References m_nextHopMap, and ns3::SatIslArbiter::m_nodeId.
|
private |
Definition at line 86 of file satellite-isl-arbiter-unicast.h.
Referenced by SatIslArbiterUnicast(), AddNextHopEntry(), Decide(), and StringReprOfForwardingState().