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
lr-wpan-helper.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 The Boeing Company
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
* Authors:
19
* Gary Pei <guangyu.pei@boeing.com>
20
* Tom Henderson <thomas.r.henderson@boeing.com>
21
*/
22
#ifndef LR_WPAN_HELPER_H
23
#define LR_WPAN_HELPER_H
24
25
#include <ns3/node-container.h>
26
#include <ns3/lr-wpan-phy.h>
27
#include <ns3/lr-wpan-mac.h>
28
#include <ns3/trace-helper.h>
29
30
namespace
ns3 {
31
32
class
SingleModelSpectrumChannel;
33
class
MobilityModel;
34
45
class
LrWpanHelper
:
public
PcapHelperForDevice
,
46
public
AsciiTraceHelperForDevice
47
{
48
public
:
52
LrWpanHelper
(
void
);
53
virtual
~LrWpanHelper
(
void
);
54
60
void
AddMobility
(
Ptr<LrWpanPhy>
phy,
Ptr<MobilityModel>
m);
61
65
NetDeviceContainer
Install
(
NodeContainer
c);
66
73
void
AssociateToPan
(
NetDeviceContainer
c, uint16_t panId);
74
78
void
EnableLogComponents
(
void
);
79
80
static
std::string
LrWpanPhyEnumerationPrinter
(
LrWpanPhyEnumeration
);
81
static
std::string
LrWpanMacStatePrinter
(
LrWpanMacState
e);
82
94
int64_t
AssignStreams
(
NetDeviceContainer
c, int64_t stream);
95
96
private
:
97
// Disable implicit constructors
98
LrWpanHelper
(
LrWpanHelper
const
&);
99
LrWpanHelper
&
operator=
(
LrWpanHelper
const
&);
114
virtual
void
EnablePcapInternal
(std::string prefix,
Ptr<NetDevice>
nd,
bool
promiscuous,
bool
explicitFilename);
115
127
virtual
void
EnableAsciiInternal
(
Ptr<OutputStreamWrapper>
stream,
128
std::string prefix,
129
Ptr<NetDevice>
nd,
130
bool
explicitFilename);
131
132
private
:
133
Ptr<SingleModelSpectrumChannel>
m_channel
;
134
135
};
136
137
}
138
139
#endif
/* LR_WPAN_HELPER_H */
ns3::AsciiTraceHelperForDevice
Base class providing common user-level ascii trace operations for helpers representing net devices...
Definition:
trace-helper.h:622
ns3::LrWpanHelper::Install
NetDeviceContainer Install(NodeContainer c)
Definition:
lr-wpan-helper.cc:141
ns3::LrWpanMacState
LrWpanMacState
Definition:
lr-wpan-mac.h:55
ns3::Ptr
smart pointer class similar to boost::intrusive_ptr
Definition:
ptr.h:60
ns3::PcapHelperForDevice
Base class providing common user-level pcap operations for helpers representing net devices...
Definition:
trace-helper.h:532
ns3::LrWpanHelper::LrWpanMacStatePrinter
static std::string LrWpanMacStatePrinter(LrWpanMacState e)
Definition:
lr-wpan-helper.cc:117
ns3::LrWpanHelper::operator=
LrWpanHelper & operator=(LrWpanHelper const &)
ns3::LrWpanHelper::AssociateToPan
void AssociateToPan(NetDeviceContainer c, uint16_t panId)
Associate the nodes to the same PAN.
Definition:
lr-wpan-helper.cc:177
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:41
ns3::LrWpanHelper::AssignStreams
int64_t AssignStreams(NetDeviceContainer c, int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model...
Definition:
lr-wpan-helper.cc:160
ns3::LrWpanHelper::EnablePcapInternal
virtual void EnablePcapInternal(std::string prefix, Ptr< NetDevice > nd, bool promiscuous, bool explicitFilename)
Enable pcap output on the indicated net device.
Definition:
lr-wpan-helper.cc:208
ns3::NodeContainer
keep track of a set of node pointers.
Definition:
node-container.h:38
ns3::LrWpanHelper::LrWpanHelper
LrWpanHelper(void)
Create a LrWpan helper in an empty state.
Definition:
lr-wpan-helper.cc:52
ns3::LrWpanHelper::EnableAsciiInternal
virtual void EnableAsciiInternal(Ptr< OutputStreamWrapper > stream, std::string prefix, Ptr< NetDevice > nd, bool explicitFilename)
Enable ascii trace output on the indicated net device.
Definition:
lr-wpan-helper.cc:255
ns3::LrWpanHelper::m_channel
Ptr< SingleModelSpectrumChannel > m_channel
Definition:
lr-wpan-helper.h:133
ns3::LrWpanHelper::AddMobility
void AddMobility(Ptr< LrWpanPhy > phy, Ptr< MobilityModel > m)
Add mobility model to a physical device.
Definition:
lr-wpan-helper.cc:135
ns3::LrWpanHelper
helps to manage and create IEEE 802.15.4 NetDevice objects
Definition:
lr-wpan-helper.h:45
ns3::LrWpanHelper::~LrWpanHelper
virtual ~LrWpanHelper(void)
Definition:
lr-wpan-helper.cc:59
ns3::LrWpanHelper::EnableLogComponents
void EnableLogComponents(void)
Helper to enable all LrWpan log components with one statement.
Definition:
lr-wpan-helper.cc:66
ns3::LrWpanHelper::LrWpanPhyEnumerationPrinter
static std::string LrWpanPhyEnumerationPrinter(LrWpanPhyEnumeration)
Definition:
lr-wpan-helper.cc:81
ns3::LrWpanPhyEnumeration
LrWpanPhyEnumeration
IEEE802.15.4-2006 PHY Emumerations Table 18 in section 6.2.3.
Definition:
lr-wpan-phy.h:93
src
lr-wpan
helper
lr-wpan-helper.h
Generated on Tue Jun 17 2014 01:12:55 for ns-3 by
1.8.6