ns3::SatIslArbiter Class Referenceabstract

#include "satellite-isl-arbiter.h"

+ Inheritance diagram for ns3::SatIslArbiter:
+ Collaboration diagram for ns3::SatIslArbiter:

Public Member Functions

 SatIslArbiter ()
 Default constructor. More...
 
 SatIslArbiter (Ptr< Node > node)
 Constructor. More...
 
int32_t BaseDecide (Ptr< Packet > pkt, Mac48Address destination)
 Base decide how to forward. More...
 
virtual int32_t Decide (int32_t sourceSatId, int32_t targetSatId, Ptr< Packet > pkt)=0
 Decide how to forward. More...
 
virtual std::string StringReprOfForwardingState ()=0
 Convert the forwarding state (i.e., routing table) to a string representation. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 

Protected Attributes

uint32_t m_nodeId
 

Detailed Description

Definition at line 37 of file satellite-isl-arbiter.h.

Constructor & Destructor Documentation

◆ SatIslArbiter() [1/2]

ns3::SatIslArbiter::SatIslArbiter ( )

Default constructor.

Definition at line 43 of file satellite-isl-arbiter.cc.

◆ SatIslArbiter() [2/2]

ns3::SatIslArbiter::SatIslArbiter ( Ptr< Node >  node)

Constructor.

Parameters
nodeThe satellite node this arbiter is attached

Definition at line 50 of file satellite-isl-arbiter.cc.

References m_nodeId.

Member Function Documentation

◆ BaseDecide()

int32_t ns3::SatIslArbiter::BaseDecide ( Ptr< Packet >  pkt,
Mac48Address  destination 
)

Base decide how to forward.

Parameters
pktPacket
destinationIP header of the packet
Returns
ISL interface index, or -1 if routing failed

Definition at line 58 of file satellite-isl-arbiter.cc.

References Decide(), and m_nodeId.

+ Here is the call graph for this function:

◆ Decide()

virtual int32_t ns3::SatIslArbiter::Decide ( int32_t  sourceSatId,
int32_t  targetSatId,
Ptr< Packet >  pkt 
)
pure virtual

Decide how to forward.

Implemented in subclasses

Parameters
sourceSatIdSatellite ID where the packet originated from
targetSatIdSatellite ID where the packet has to go to
pktPacket
Returns
ISL interface index, or -1 if routing failed

Implemented in ns3::SatIslArbiterUnicast.

Referenced by BaseDecide().

+ Here is the caller graph for this function:

◆ GetTypeId()

TypeId ns3::SatIslArbiter::GetTypeId ( void  )
static

Definition at line 37 of file satellite-isl-arbiter.cc.

◆ StringReprOfForwardingState()

virtual std::string ns3::SatIslArbiter::StringReprOfForwardingState ( )
pure virtual

Convert the forwarding state (i.e., routing table) to a string representation.

Returns
String representation

Implemented in ns3::SatIslArbiterUnicast.

Member Data Documentation

◆ m_nodeId

uint32_t ns3::SatIslArbiter::m_nodeId
protected

The documentation for this class was generated from the following files: