20 #include "ns3/mac-messages.h"
21 #include "ns3/service-flow.h"
44 void DoRun()
override;
48 :
TestCase(
"Test the DSA request messages")
84 ServiceFlow::SF_DIRECTION_DOWN,
85 "The sfRecv had the wrong direction.");
89 "The sfRecv had the wrong cs specification.");
91 ServiceFlow::SF_TYPE_UGS,
92 "The sfRecv had the wrong service scheduling type.");
95 "The sfRecv had the wrong maximum sustained traffic rate.");
98 "The sfRecv had the wrong minimum reserved traffic rate.");
101 "The sfRecv had the wrong minimum tolerable traffic rate.");
104 "The sfRecv had the wrong maximum latency.");
107 "The sfRecv had the wrong maximum traffic burst.");
110 "The sfRecv had the wrong traffic priority.");
Test the DSA request message.
void DoRun() override
Implementation to actually run this TestCase.
~DsaRequestTestCase() override
Ns3 Wimax Mac Messages Test Suite.
Ns3WimaxMacMessagesTestSuite()
This class implements the DSA-REQ message described by "IEEE Standard for Local and metropolitan area...
ServiceFlow GetServiceFlow() const
IpcsClassifierRecord class.
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer.
void AddHeader(const Header &header)
Add header to this packet.
This class implements service flows as described by the IEEE-802.16 standard.
void SetSfid(uint32_t sfid)
Set SFID.
void SetCsSpecification(CsSpecification spec)
Set CS specification.
ServiceFlow::SchedulingType GetServiceSchedulingType() const
Get service scheduling type.
uint32_t GetMaxSustainedTrafficRate() const
Get max sustained traffic rate.
uint32_t GetMaxTrafficBurst() const
Get max traffic burst.
uint32_t GetSfid() const
Get SFID.
uint32_t GetMaximumLatency() const
Get maximum latency.
void SetMaxTrafficBurst(uint32_t maxTrafficBurst)
Set maximum traffic burst.
void SetServiceSchedulingType(ServiceFlow::SchedulingType schedType)
Set service scheduling type.
void SetMaximumLatency(uint32_t MaximumLatency)
Set maximum latency.
void SetConvergenceSublayerParam(CsParameters csparam)
Set convergence sublayer parameters.
uint8_t GetTrafficPriority() const
Get traffic priority.
uint32_t GetMinReservedTrafficRate() const
Get minimum reserved traffic rate.
void SetTrafficPriority(uint8_t priority)
Set traffic priority.
CsSpecification GetCsSpecification() const
Get CS specification.
void SetMinTolerableTrafficRate(uint32_t minJitter)
Set minimum tolerable traffic rate.
uint32_t GetMinTolerableTrafficRate() const
Get minimum tolerable traffic rate.
void SetMinReservedTrafficRate(uint32_t minResvRate)
Set minimum reserved traffic rate.
Direction GetDirection() const
Get direction.
void SetMaxSustainedTrafficRate(uint32_t maxSustainedRate)
Set max sustained traffic rate.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not.
static Ns3WimaxMacMessagesTestSuite ns3WimaxMacMessagesTestSuite
the test suite
Every class exported by the ns3 library is enclosed in the ns3 namespace.