ns3::SatSliceSubscriptionMessage Class Reference

This control message is used to inform the UT it has to subscribe to a new slice. More...

#include "satellite-control-message.h"

+ Inheritance diagram for ns3::SatSliceSubscriptionMessage:
+ Collaboration diagram for ns3::SatSliceSubscriptionMessage:

Public Member Functions

 SatSliceSubscriptionMessage ()
 Constructor for SatRaMessage. More...
 
 ~SatSliceSubscriptionMessage ()
 Destructor for SatRaMessage. More...
 
Mac48Address GetAddress () const
 Get the ddress associated to this slice. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Get the type ID of instance. More...
 
SatControlMsgTag::SatControlMsgType_t GetMsgType () const
 Get type of the message. More...
 
virtual uint32_t GetSizeInBytes () const
 Get real size of the message. More...
 
uint32_t GetSliceId () const
 Get the new slice to subscribe. More...
 
void SetAddress (Mac48Address address)
 Set the address associated to this slice. More...
 
void SetSliceId (uint8_t sliceId)
 Set the new slice to subscribe. More...
 
- Public Member Functions inherited from ns3::SatControlMessage
 SatControlMessage ()
 Default constructor for SatControlMessage. More...
 
 ~SatControlMessage ()
 Destructor. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 methods derived from base classes More...
 
- Static Public Member Functions inherited from ns3::SatControlMessage
static TypeId GetTypeId (void)
 methods derived from base classes More...
 

Private Attributes

Mac48Address m_address
 Address associated to this slice. More...
 
uint8_t m_sliceId
 New slice to subscribe. More...
 

Detailed Description

This control message is used to inform the UT it has to subscribe to a new slice.

(Tagged by SatControlMsgTag with type value SAT_SLICE_CTRL_MSG)

Definition at line 915 of file satellite-control-message.h.

Constructor & Destructor Documentation

◆ SatSliceSubscriptionMessage()

ns3::SatSliceSubscriptionMessage::SatSliceSubscriptionMessage ( )

Constructor for SatRaMessage.

Definition at line 812 of file satellite-control-message.cc.

◆ ~SatSliceSubscriptionMessage()

ns3::SatSliceSubscriptionMessage::~SatSliceSubscriptionMessage ( )

Destructor for SatRaMessage.

Definition at line 818 of file satellite-control-message.cc.

Member Function Documentation

◆ GetAddress()

Mac48Address ns3::SatSliceSubscriptionMessage::GetAddress ( void  ) const

Get the ddress associated to this slice.

Returns
The MAC address

Definition at line 837 of file satellite-control-message.cc.

References m_address.

◆ GetInstanceTypeId()

TypeId ns3::SatSliceSubscriptionMessage::GetInstanceTypeId ( void  ) const
virtual

Get the type ID of instance.

Returns
the object TypeId

Definition at line 805 of file satellite-control-message.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetMsgType()

SatControlMsgTag::SatControlMsgType_t ns3::SatSliceSubscriptionMessage::GetMsgType ( void  ) const
inlinevirtual

Get type of the message.

Returns
SatControlMsgTag::SAT_SLICE_CTRL_MSG

Implements ns3::SatControlMessage.

Definition at line 944 of file satellite-control-message.h.

References ns3::SatControlMsgTag::SAT_SLICE_CTRL_MSG.

◆ GetSizeInBytes()

uint32_t ns3::SatSliceSubscriptionMessage::GetSizeInBytes ( ) const
virtual

Get real size of the message.

Returns
Real size of the message.

Implements ns3::SatControlMessage.

Definition at line 849 of file satellite-control-message.cc.

◆ GetSliceId()

uint32_t ns3::SatSliceSubscriptionMessage::GetSliceId ( ) const

Get the new slice to subscribe.

Zero means reset the slices already subscribed.

Returns
The new slice id

Definition at line 831 of file satellite-control-message.cc.

References m_sliceId.

◆ GetTypeId()

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

methods derived from base classes

Definition at line 796 of file satellite-control-message.cc.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

◆ SetAddress()

void ns3::SatSliceSubscriptionMessage::SetAddress ( Mac48Address  address)

Set the address associated to this slice.

Parameters
addressThe MAC address

Definition at line 843 of file satellite-control-message.cc.

References m_address.

◆ SetSliceId()

void ns3::SatSliceSubscriptionMessage::SetSliceId ( uint8_t  sliceId)

Set the new slice to subscribe.

Zero means reset the slices already subscribed.

Parameters
sliceIdThe new slice id

Definition at line 824 of file satellite-control-message.cc.

References m_sliceId.

Member Data Documentation

◆ m_address

Mac48Address ns3::SatSliceSubscriptionMessage::m_address
private

Address associated to this slice.

Definition at line 988 of file satellite-control-message.h.

Referenced by GetAddress(), and SetAddress().

◆ m_sliceId

uint8_t ns3::SatSliceSubscriptionMessage::m_sliceId
private

New slice to subscribe.

Zero means reset the slices already subscribed.

Definition at line 983 of file satellite-control-message.h.

Referenced by GetSliceId(), and SetSliceId().


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