A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
ss-scheduler.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2007,2008 INRIA
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
19
*/
20
21
/* SS outbound scheduler as per in Section 6.3.5.1 */
22
23
#ifndef SS_SCHEDULER_H
24
#define SS_SCHEDULER_H
25
26
#include <stdint.h>
27
#include "ns3/packet.h"
28
#include "ns3/packet-burst.h"
29
#include "
wimax-phy.h
"
30
#include "
wimax-mac-header.h
"
31
32
namespace
ns3 {
33
34
class
SubscriberStationNetDevice;
35
class
WimaxConnection;
36
40
class
SSScheduler
:
public
Object
41
{
42
43
public
:
44
static
TypeId
GetTypeId
(
void
);
45
SSScheduler
(
Ptr<SubscriberStationNetDevice>
ss);
46
~SSScheduler
(
void
);
47
48
void
SetPollMe
(
bool
pollMe);
49
bool
GetPollMe
(
void
)
const
;
57
Ptr<PacketBurst>
Schedule
(uint16_t availableSymbols,
58
WimaxPhy::ModulationType
modulationType,
59
MacHeaderType::HeaderType
packetType,
Ptr<WimaxConnection>
&connection);
60
61
62
void
DoDispose
(
void
);
63
protected
:
64
private
:
65
SSScheduler
(
const
SSScheduler
&);
66
SSScheduler
&
operator=
(
const
SSScheduler
&);
67
68
Ptr<WimaxConnection>
SelectConnection
(
void
);
69
Ptr<SubscriberStationNetDevice>
m_ss
;
70
bool
m_pollMe
;
71
72
};
73
74
}
// namespace ns3
75
76
#endif
/* SS_SCHEDULER_H */
ns3::MacHeaderType::HeaderType
HeaderType
this class implements the mac header type field.
Definition:
wimax-mac-header.h:42
ns3::SSScheduler::DoDispose
void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
Definition:
ss-scheduler.cc:58
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:59
ns3::SSScheduler::Schedule
Ptr< PacketBurst > Schedule(uint16_t availableSymbols, WimaxPhy::ModulationType modulationType, MacHeaderType::HeaderType packetType, Ptr< WimaxConnection > &connection)
Definition:
ss-scheduler.cc:76
ns3::SSScheduler::SetPollMe
void SetPollMe(bool pollMe)
Definition:
ss-scheduler.cc:64
ns3::SSScheduler::GetPollMe
bool GetPollMe(void) const
Definition:
ss-scheduler.cc:70
ns3::SSScheduler::m_pollMe
bool m_pollMe
Definition:
ss-scheduler.h:70
ns3::SSScheduler::~SSScheduler
~SSScheduler(void)
Definition:
ss-scheduler.cc:53
ns3::SSScheduler::m_ss
Ptr< SubscriberStationNetDevice > m_ss
Definition:
ss-scheduler.h:69
ns3::SSScheduler::SSScheduler
SSScheduler(Ptr< SubscriberStationNetDevice > ss)
Definition:
ss-scheduler.cc:47
ns3::SSScheduler
Definition:
ss-scheduler.h:40
wimax-mac-header.h
ns3::SSScheduler::GetTypeId
static TypeId GetTypeId(void)
Definition:
ss-scheduler.cc:40
ns3::WimaxPhy::ModulationType
ModulationType
Definition:
wimax-phy.h:48
wimax-phy.h
ns3::Object
a base class which provides memory management and object aggregation
Definition:
object.h:63
ns3::SSScheduler::SelectConnection
Ptr< WimaxConnection > SelectConnection(void)
Definition:
ss-scheduler.cc:166
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::SSScheduler::operator=
SSScheduler & operator=(const SSScheduler &)
src
wimax
model
ss-scheduler.h
Generated on Sat Apr 19 2014 14:07:13 for ns-3 by
1.8.6