From e7628205a19c1061b29ce2fdb0b5f673f2ef8c3d Mon Sep 17 00:00:00 2001 From: Josh Pelkey Date: Fri, 13 May 2011 15:02:36 -0400 Subject: [PATCH] wimax coding style changes --- src/wimax/model/bs-scheduler-simple.cc | 2 +- src/wimax/model/bs-uplink-scheduler-mbqos.cc | 2 +- src/wimax/model/simple-ofdm-wimax-phy.cc | 2 +- src/wimax/model/ss-net-device.cc | 2 +- src/wimax/model/wimax-mac-queue.cc | 2 +- src/wimax/model/wimax-net-device.cc | 2 +- src/wimax/test/phy-test.cc | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wimax/model/bs-scheduler-simple.cc b/src/wimax/model/bs-scheduler-simple.cc index fafa4b7ac..ab6f0e73e 100644 --- a/src/wimax/model/bs-scheduler-simple.cc +++ b/src/wimax/model/bs-scheduler-simple.cc @@ -267,7 +267,7 @@ bool BSSchedulerSimple::SelectConnection (Ptr &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 ())) diff --git a/src/wimax/model/bs-uplink-scheduler-mbqos.cc b/src/wimax/model/bs-uplink-scheduler-mbqos.cc index efb8b4c25..bda166057 100644 --- a/src/wimax/model/bs-uplink-scheduler-mbqos.cc +++ b/src/wimax/model/bs-uplink-scheduler-mbqos.cc @@ -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 ()); diff --git a/src/wimax/model/simple-ofdm-wimax-phy.cc b/src/wimax/model/simple-ofdm-wimax-phy.cc index f98136e7e..f4bbece22 100644 --- a/src/wimax/model/simple-ofdm-wimax-phy.cc +++ b/src/wimax/model/simple-ofdm-wimax-phy.cc @@ -43,7 +43,7 @@ NS_OBJECT_ENSURE_REGISTERED (SimpleOfdmWimaxPhy); TypeId SimpleOfdmWimaxPhy::GetTypeId (void) { static TypeId - tid = + tid = TypeId ("ns3::SimpleOfdmWimaxPhy").SetParent () .AddAttribute ("NoiseFigure", diff --git a/src/wimax/model/ss-net-device.cc b/src/wimax/model/ss-net-device.cc index 3f4b0fd0e..5bd4ca971 100644 --- a/src/wimax/model/ss-net-device.cc +++ b/src/wimax/model/ss-net-device.cc @@ -57,7 +57,7 @@ TypeId SubscriberStationNetDevice::GetTypeId (void) { static TypeId - tid = + tid = TypeId ("ns3::SubscriberStationNetDevice") .SetParent () diff --git a/src/wimax/model/wimax-mac-queue.cc b/src/wimax/model/wimax-mac-queue.cc index b537505e4..4dc14f326 100644 --- a/src/wimax/model/wimax-mac-queue.cc +++ b/src/wimax/model/wimax-mac-queue.cc @@ -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 fragment = packet->CreateFragment (fragmentOffset, maxFragmentSize); m_bytes -= maxFragmentSize; diff --git a/src/wimax/model/wimax-net-device.cc b/src/wimax/model/wimax-net-device.cc index d140e9610..082069b1e 100644 --- a/src/wimax/model/wimax-net-device.cc +++ b/src/wimax/model/wimax-net-device.cc @@ -52,7 +52,7 @@ Time WimaxNetDevice::m_frameStartTime = Seconds (0); TypeId WimaxNetDevice::GetTypeId (void) { static TypeId - tid = + tid = TypeId ("ns3::WimaxNetDevice") .SetParent () diff --git a/src/wimax/test/phy-test.cc b/src/wimax/test/phy-test.cc index 1872355a5..4dcd4f74e 100644 --- a/src/wimax/test/phy-test.cc +++ b/src/wimax/test/phy-test.cc @@ -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]);