A Discrete-Event Network Simulator
API
ns3::CsParameters Class Reference

CsParameters class. More...

#include "cs-parameters.h"

+ Collaboration diagram for ns3::CsParameters:

Public Types

enum  Action { ADD = 0 , REPLACE = 1 , DELETE = 2 }
 Action enumeration. More...
 

Public Member Functions

 CsParameters ()
 
 CsParameters (Action classifierDscAction, IpcsClassifierRecord classifier)
 creates a convergence sub-layer parameters from an ipcs classifier record More...
 
 CsParameters (Tlv tlv)
 creates a convergence sub-layer parameters from a tlv More...
 
 ~CsParameters ()
 
Action GetClassifierDscAction () const
 
IpcsClassifierRecord GetPacketClassifierRule () const
 
void SetClassifierDscAction (Action action)
 sets the dynamic service classifier action to ADD, Change or delete. More...
 
void SetPacketClassifierRule (IpcsClassifierRecord packetClassifierRule)
 sets the packet classifier rules More...
 
Tlv ToTlv () const
 creates a tlv from the classifier record More...
 

Private Attributes

Action m_classifierDscAction
 classifier DSC action More...
 
IpcsClassifierRecord m_packetClassifierRule
 packet classifier rule More...
 

Detailed Description

CsParameters class.

Definition at line 35 of file cs-parameters.h.

Member Enumeration Documentation

◆ Action

Action enumeration.

Enumerator
ADD 
REPLACE 
DELETE 

Definition at line 39 of file cs-parameters.h.

Constructor & Destructor Documentation

◆ CsParameters() [1/3]

ns3::CsParameters::CsParameters ( )

Definition at line 26 of file cs-parameters.cc.

References ADD, and m_classifierDscAction.

◆ ~CsParameters()

ns3::CsParameters::~CsParameters ( )

Definition at line 31 of file cs-parameters.cc.

◆ CsParameters() [2/3]

ns3::CsParameters::CsParameters ( Tlv  tlv)

◆ CsParameters() [3/3]

ns3::CsParameters::CsParameters ( CsParameters::Action  classifierDscAction,
IpcsClassifierRecord  classifier 
)

creates a convergence sub-layer parameters from an ipcs classifier record

Parameters
classifierDscActionthe DCS action type
classifierthe IPCS classifier record

Definition at line 57 of file cs-parameters.cc.

References m_classifierDscAction, and m_packetClassifierRule.

Member Function Documentation

◆ GetClassifierDscAction()

CsParameters::Action ns3::CsParameters::GetClassifierDscAction ( ) const
Returns
the dynamic service classifier action

Definition at line 77 of file cs-parameters.cc.

References m_classifierDscAction.

◆ GetPacketClassifierRule()

IpcsClassifierRecord ns3::CsParameters::GetPacketClassifierRule ( ) const
Returns
the the packet classifier rules

Definition at line 83 of file cs-parameters.cc.

References m_packetClassifierRule.

Referenced by ns3::ServiceFlow::CheckClassifierMatch(), and Ns3WimaxCsParamTlvTestCase::DoRun().

+ Here is the caller graph for this function:

◆ SetClassifierDscAction()

void ns3::CsParameters::SetClassifierDscAction ( CsParameters::Action  action)

sets the dynamic service classifier action to ADD, Change or delete.

Only ADD is supported

Parameters
actionthe action enumeration

Definition at line 65 of file cs-parameters.cc.

References check-style-clang-format::action, and m_classifierDscAction.

◆ SetPacketClassifierRule()

void ns3::CsParameters::SetPacketClassifierRule ( IpcsClassifierRecord  packetClassifierRule)

sets the packet classifier rules

Parameters
packetClassifierRulethe IPCS classifier record

Definition at line 71 of file cs-parameters.cc.

References m_packetClassifierRule.

◆ ToTlv()

Tlv ns3::CsParameters::ToTlv ( ) const

creates a tlv from the classifier record

Returns
the created tlv

Definition at line 89 of file cs-parameters.cc.

References ns3::VectorTlvValue::Add(), ns3::CsParamVectorTlvValue::Classifier_DSC_Action, ns3::VectorTlvValue::GetSerializedSize(), ns3::SfVectorTlvValue::IPV4_CS_Parameters, m_classifierDscAction, m_packetClassifierRule, and ns3::IpcsClassifierRecord::ToTlv().

Referenced by Ns3WimaxCsParamTlvTestCase::DoRun(), and ns3::ServiceFlow::ToTlv().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_classifierDscAction

Action ns3::CsParameters::m_classifierDscAction
private

classifier DSC action

Definition at line 85 of file cs-parameters.h.

Referenced by CsParameters(), GetClassifierDscAction(), SetClassifierDscAction(), and ToTlv().

◆ m_packetClassifierRule

IpcsClassifierRecord ns3::CsParameters::m_packetClassifierRule
private

packet classifier rule

Definition at line 86 of file cs-parameters.h.

Referenced by CsParameters(), GetPacketClassifierRule(), SetPacketClassifierRule(), and ToTlv().


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