WiMAX module suports several uplink schedulers
authorFlavio Kubota <flaviokubota@gmail.com>
Tue Aug 11 15:03:05 2009 -0300 (6 months ago)
changeset 4534d83c8c86b46b
parent 4533 e47d6551e51a
child 4535 a256721e6d19
WiMAX module suports several uplink schedulers
src/devices/wimax/uplink-scheduler-qos-h
src/devices/wimax/uplink-scheduler-qos.cc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/devices/wimax/uplink-scheduler-qos.cc	Tue Aug 11 15:03:05 2009 -0300
     1.3 @@ -0,0 +1,61 @@
     1.4 +#include "uplink-scheduler-qos.h"
     1.5 +#include "wimax-bs-net-device.h"
     1.6 +#include "ns3/simulator.h"
     1.7 +#include "connection-identifier.h"
     1.8 +#include "burst-profile-manager.h"
     1.9 +#include "ss-manager.h"
    1.10 +#include "ns3/log.h"
    1.11 +#include "ns3/uinteger.h"
    1.12 +#include "ss-record.h"
    1.13 +#include "qos-parameter-set.h"
    1.14 +#include "service-flow.h"
    1.15 +#include "service-flow-record.h"
    1.16 +#include "bs-link-manager.h"
    1.17 +#include "bandwidth-manager.h"
    1.18 +
    1.19 +NS_LOG_COMPONENT_DEFINE ("UplinkSchedulerQoS");
    1.20 +
    1.21 +namespace ns3
    1.22 +{
    1.23 +
    1.24 +  NS_OBJECT_ENSURE_REGISTERED (UplinkSchedulerQoS);
    1.25 +
    1.26 +  UplinkSchedulerQoS::UplinkSchedulerQoS()
    1.27 +  {
    1.28 +  }
    1.29 +/*
    1.30 +  UplinkSchedulerQoS::UplinkSchedulerQoS(Ptr<WimaxBaseStationNetDevice> bs) :
    1.31 +    m_bs(bs), m_timeStampIrInterval(Seconds(0)), m_nrIrOppsAllocated(0),
    1.32 +        m_isIrIntrvlAllocated(false), m_isInvIrIntrvlAllocated(false),
    1.33 +        m_dcdTimeStamp(Simulator::Now()), m_ucdTimeStamp(Simulator::Now())
    1.34 +  {
    1.35 +  }*/
    1.36 +
    1.37 +  UplinkSchedulerQoS::~UplinkSchedulerQoS(void)
    1.38 +  {
    1.39 +    //m_bs = 0;
    1.40 +    //m_uplinkAllocations.clear();
    1.41 +
    1.42 +  }
    1.43 +
    1.44 +  void
    1.45 +  UplinkSchedulerQoS::Schedule (void)
    1.46 +  {
    1.47 +
    1.48 +   // UplinkScheduler::Schedule();
    1.49 +    fprintf(stderr,"NEW Scheduler!!!!\n");
    1.50 +
    1.51 +  }
    1.52 +
    1.53 +  void
    1.54 +  UplinkSchedulerQoS::EnqueueJob (UlJob::JobPriority priority, UlJob job)
    1.55 +  {
    1.56 +    exit(1);
    1.57 +  }
    1.58 +
    1.59 +  void
    1.60 +  UplinkSchedulerQoS::Test ()
    1.61 +  {
    1.62 +    fprintf(stderr,"New\n");
    1.63 +  }
    1.64 +}