wimax coding style changes
This commit is contained in:
1 parent
52f0be9152
commit
e7628205a1
7 files changed
+7
-7
No files matched your search
@@ -267,7 +267,7 @@ bool BSSchedulerSimple::SelectConnection (Ptr<WimaxConnection> &connection)
|
||||
serviceFlowRecord = (*iter2)->GetRecord ();
|
||||
NS_LOG_INFO ("processing UGS: HAS PACKET=" << (*iter2)->HasPackets () << "max Latency = "
|
||||
<< MilliSeconds ((*iter2)->GetMaximumLatency ()) << "Delay = " << ((currentTime
|
||||
- serviceFlowRecord->GetDlTimeStamp ()) + GetBs ()->GetPhy ()->GetFrameDuration ()));
|
||||
- serviceFlowRecord->GetDlTimeStamp ()) + GetBs ()->GetPhy ()->GetFrameDuration ()));
|
||||
// if latency would exceed in case grant is allocated in next frame then allocate in current frame
|
||||
if ((*iter2)->HasPackets () && ((currentTime - serviceFlowRecord->GetDlTimeStamp ())
|
||||
+ GetBs ()->GetPhy ()->GetFrameDuration ()) > MilliSeconds ((*iter2)->GetMaximumLatency ()))
|
||||
|
||||
@@ -307,7 +307,7 @@ UplinkSchedulerMBQoS::Schedule (void)
|
||||
// Recover period interval information for UGS flow
|
||||
Time frame_duration = GetBs ()->GetPhy ()->GetFrameDuration ();
|
||||
Time
|
||||
timestamp =
|
||||
timestamp =
|
||||
(*(ssRecord->GetServiceFlows (ServiceFlow::SF_TYPE_UGS).begin ()))->GetRecord ()->GetLastGrantTime ()
|
||||
+ MilliSeconds ((*(ssRecord->GetServiceFlows (ServiceFlow::SF_TYPE_UGS).begin ()))->GetUnsolicitedGrantInterval ());
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ NS_OBJECT_ENSURE_REGISTERED (SimpleOfdmWimaxPhy);
|
||||
TypeId SimpleOfdmWimaxPhy::GetTypeId (void)
|
||||
{
|
||||
static TypeId
|
||||
tid =
|
||||
tid =
|
||||
TypeId ("ns3::SimpleOfdmWimaxPhy").SetParent<WimaxPhy> ()
|
||||
|
||||
.AddAttribute ("NoiseFigure",
|
||||
|
||||
@@ -57,7 +57,7 @@ TypeId
|
||||
SubscriberStationNetDevice::GetTypeId (void)
|
||||
{
|
||||
static TypeId
|
||||
tid =
|
||||
tid =
|
||||
TypeId ("ns3::SubscriberStationNetDevice")
|
||||
|
||||
.SetParent<WimaxNetDevice> ()
|
||||
|
||||
@@ -275,7 +275,7 @@ WimaxMacQueue::Dequeue (MacHeaderType::HeaderType packetType, uint32_t available
|
||||
"\n\t\t maxFragmentSize=" << maxFragmentSize << ""
|
||||
"\n\t\t fragmentOffset=" << fragmentOffset <<
|
||||
"\n\t\t payloadSize=" << packet->GetSize ()
|
||||
<< std::endl);
|
||||
<< std::endl);
|
||||
Ptr<Packet> fragment = packet->CreateFragment (fragmentOffset,
|
||||
maxFragmentSize);
|
||||
m_bytes -= maxFragmentSize;
|
||||
|
||||
@@ -52,7 +52,7 @@ Time WimaxNetDevice::m_frameStartTime = Seconds (0);
|
||||
TypeId WimaxNetDevice::GetTypeId (void)
|
||||
{
|
||||
static TypeId
|
||||
tid =
|
||||
tid =
|
||||
TypeId ("ns3::WimaxNetDevice")
|
||||
|
||||
.SetParent<NetDevice> ()
|
||||
|
||||
@@ -108,7 +108,7 @@ Ns3WimaxSimpleOFDMTestCase::DoRun (void)
|
||||
{
|
||||
|
||||
double
|
||||
frameDuratioTab[7] = { 0.0025, 0.004, 0.005, 0.008, 0.01, 0.0125, 0.02 };
|
||||
frameDuratioTab[7] = { 0.0025, 0.004, 0.005, 0.008, 0.01, 0.0125, 0.02 };
|
||||
for (int i = 0; i < 7; i++)
|
||||
{
|
||||
NS_LOG_DEBUG ("Frame Duration = " << frameDuratioTab[i]);
|
||||
|
||||
Reference in new issue
Block a user