wimax coding style changes

This commit is contained in:
Josh Pelkey committed 2011-05-13 15:02:36 -04:00
1 parent 52f0be9152
commit e7628205a1
7 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -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 ()))
+1 -1
View File
@@ -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 ());
+1 -1
View File
@@ -43,7 +43,7 @@ NS_OBJECT_ENSURE_REGISTERED (SimpleOfdmWimaxPhy);
TypeId SimpleOfdmWimaxPhy::GetTypeId (void)
{
static TypeId
tid =
tid =
TypeId ("ns3::SimpleOfdmWimaxPhy").SetParent<WimaxPhy> ()
.AddAttribute ("NoiseFigure",
+1 -1
View File
@@ -57,7 +57,7 @@ TypeId
SubscriberStationNetDevice::GetTypeId (void)
{
static TypeId
tid =
tid =
TypeId ("ns3::SubscriberStationNetDevice")
.SetParent<WimaxNetDevice> ()
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -52,7 +52,7 @@ Time WimaxNetDevice::m_frameStartTime = Seconds (0);
TypeId WimaxNetDevice::GetTypeId (void)
{
static TypeId
tid =
tid =
TypeId ("ns3::WimaxNetDevice")
.SetParent<NetDevice> ()
+1 -1
View File
@@ -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]);