A Discrete-Event Network Simulator
API
simple-ofdm-wimax-channel.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, 2009 INRIA, UDcast
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: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
19 * <amine.ismail@udcast.com>
20 */
21
22#ifndef SIMPLE_OFDM_WIMAX_CHANNEL_H
23#define SIMPLE_OFDM_WIMAX_CHANNEL_H
24
25#include <list>
26#include "wimax-channel.h"
27#include "bvec.h"
28#include "wimax-phy.h"
29#include "ns3/propagation-loss-model.h"
31
32namespace ns3 {
33
34class Packet;
35class PacketBurst;
36class SimpleOfdmWimaxPhy;
37
43{
44public:
47
50 {
55 };
56
61 static TypeId GetTypeId (void);
62
68
82 void Send (Time BlockTime,
83 uint32_t burstSize, Ptr<WimaxPhy> phy, bool isFirstBlock,
84 bool isLastBlock,
85 uint64_t frequency, WimaxPhy::ModulationType modulationType,
86 uint8_t direction, double txPowerDbm, Ptr<PacketBurst> burst);
91 void SetPropagationModel (PropModel propModel);
92
101 int64_t AssignStreams (int64_t stream);
102
103private:
109 std::list<Ptr<SimpleOfdmWimaxPhy> > m_phyList;
114 std::size_t DoGetNDevices (void) const;
126 Ptr<NetDevice> DoGetDevice (std::size_t i) const;
128};
129
130} // namespace ns3
131
132#endif /* SIMPLE_OFDM_WIMAX_CHANNEL_H */
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:74
SimpleOfdmWimaxChannel class.
Ptr< PropagationLossModel > m_loss
loss
void SetPropagationModel(PropModel propModel)
sets the propagation model
std::size_t DoGetNDevices(void) const
Get number of devices function.
void EndSendDummyBlock(Ptr< SimpleOfdmWimaxPhy > rxphy, simpleOfdmSendParam *param)
End send dummy block function.
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
void DoAttach(Ptr< WimaxPhy > phy)
Attach functiion.
Ptr< NetDevice > DoGetDevice(std::size_t i) const
Get device function.
std::list< Ptr< SimpleOfdmWimaxPhy > > m_phyList
phy list
static TypeId GetTypeId(void)
Register this type.
void Send(Time BlockTime, uint32_t burstSize, Ptr< WimaxPhy > phy, bool isFirstBlock, bool isLastBlock, uint64_t frequency, WimaxPhy::ModulationType modulationType, uint8_t direction, double txPowerDbm, Ptr< PacketBurst > burst)
Sends a dummy fec block to all connected physical devices.
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:103
a unique identifier for an interface.
Definition: type-id.h:59
The channel object to attach Wimax NetDevices.
Definition: wimax-channel.h:41
ModulationType
ModulationType enumeration.
Definition: wimax-phy.h:52
simpleOfdmSendParam class
Every class exported by the ns3 library is enclosed in the ns3 namespace.
phy
Definition: third.py:93