A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
sixlowpan
helper
sixlowpan-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 Universita' di Firenze, Italy
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: Tommaso Pecorella <tommaso.pecorella@unifi.it>
19
*/
20
21
#ifndef SIXLOWPAN_HELPER_H
22
#define SIXLOWPAN_HELPER_H
23
24
#include "ns3/net-device-container.h"
25
#include "ns3/object-factory.h"
26
#include <string>
27
28
namespace
ns3
{
29
30
class
Node;
31
class
AttributeValue;
32
38
class
SixLowPanHelper
39
{
40
public
:
41
/*
42
* Construct a SixlowpanHelper
43
*/
44
SixLowPanHelper
();
52
void
SetDeviceAttribute
(std::string n1,
53
const
AttributeValue
&v1);
54
80
NetDeviceContainer
Install
(
NetDeviceContainer
c);
81
93
int64_t
AssignStreams
(
NetDeviceContainer
c, int64_t stream);
94
95
private
:
96
ObjectFactory
m_deviceFactory
;
97
};
98
99
}
// namespace ns3
100
101
102
#endif
/* SIXLOWPAN_HELPER_H */
ns3::AttributeValue
Hold a value for an Attribute.
Definition:
attribute.h:68
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:41
ns3::SixLowPanHelper::m_deviceFactory
ObjectFactory m_deviceFactory
Object factory.
Definition:
sixlowpan-helper.h:96
ns3::SixLowPanHelper::Install
NetDeviceContainer Install(NetDeviceContainer c)
Install the SixLoWPAN stack on top of an existing NetDevice.
Definition:
sixlowpan-helper.cc:44
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition:
object-factory.h:47
ns3::SixLowPanHelper::SetDeviceAttribute
void SetDeviceAttribute(std::string n1, const AttributeValue &v1)
Set an attribute on each ns3::SixlowpanNetDevice created by SixlowpanHelper::Install.
Definition:
sixlowpan-helper.cc:37
ns3::SixLowPanHelper::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:
sixlowpan-helper.cc:66
ns3::SixLowPanHelper
Setup a sixlowpan stack to be used as a shim between IPv6 and a generic NetDevice.
Definition:
sixlowpan-helper.h:38
ns3::SixLowPanHelper::SixLowPanHelper
SixLowPanHelper()
Definition:
sixlowpan-helper.cc:31
Generated on Wed Nov 7 2018 10:02:09 for ns-3 by
1.8.14