A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
sixlowpan-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Universita' di Firenze, Italy
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Tommaso Pecorella <tommaso.pecorella@unifi.it>
18
*/
19
20
#ifndef SIXLOWPAN_HELPER_H
21
#define SIXLOWPAN_HELPER_H
22
23
#include "ns3/net-device-container.h"
24
#include "ns3/object-factory.h"
25
26
#include <string>
27
28
namespace
ns3
29
{
30
31
class
Node;
32
class
AttributeValue;
33
class
Time
;
34
40
class
SixLowPanHelper
41
{
42
public
:
43
/*
44
* Construct a SixlowpanHelper
45
*/
46
SixLowPanHelper
();
54
void
SetDeviceAttribute
(std::string n1,
const
AttributeValue
& v1);
55
81
NetDeviceContainer
Install
(
NetDeviceContainer
c);
82
94
void
AddContext
(
NetDeviceContainer
c, uint8_t contextId,
Ipv6Prefix
context,
Time
validity);
95
105
void
RenewContext
(
NetDeviceContainer
c, uint8_t contextId,
Time
validity);
106
119
void
InvalidateContext
(
NetDeviceContainer
c, uint8_t contextId);
120
129
void
RemoveContext
(
NetDeviceContainer
c, uint8_t contextId);
130
142
int64_t
AssignStreams
(
NetDeviceContainer
c, int64_t stream);
143
144
private
:
145
ObjectFactory
m_deviceFactory
;
146
};
147
148
}
// namespace ns3
149
150
#endif
/* SIXLOWPAN_HELPER_H */
ns3::AttributeValue
Hold a value for an Attribute.
Definition:
attribute.h:70
ns3::Ipv6Prefix
Describes an IPv6 prefix.
Definition:
ipv6-address.h:455
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:43
ns3::ObjectFactory
Instantiate subclasses of ns3::Object.
Definition:
object-factory.h:48
ns3::SixLowPanHelper
Setup a sixlowpan stack to be used as a shim between IPv6 and a generic NetDevice.
Definition:
sixlowpan-helper.h:41
ns3::SixLowPanHelper::m_deviceFactory
ObjectFactory m_deviceFactory
Object factory.
Definition:
sixlowpan-helper.h:145
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:42
ns3::SixLowPanHelper::SixLowPanHelper
SixLowPanHelper()
Definition:
sixlowpan-helper.cc:35
ns3::SixLowPanHelper::Install
NetDeviceContainer Install(NetDeviceContainer c)
Install the SixLoWPAN stack on top of an existing NetDevice.
Definition:
sixlowpan-helper.cc:49
ns3::SixLowPanHelper::RemoveContext
void RemoveContext(NetDeviceContainer c, uint8_t contextId)
Remove a compression Context in a set of NetDevices.
Definition:
sixlowpan-helper.cc:123
ns3::SixLowPanHelper::RenewContext
void RenewContext(NetDeviceContainer c, uint8_t contextId, Time validity)
Renew a compression Context in a set of NetDevices.
Definition:
sixlowpan-helper.cc:91
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:139
ns3::SixLowPanHelper::InvalidateContext
void InvalidateContext(NetDeviceContainer c, uint8_t contextId)
Invalidates a compression Context in a set of NetDevices.
Definition:
sixlowpan-helper.cc:107
ns3::SixLowPanHelper::AddContext
void AddContext(NetDeviceContainer c, uint8_t contextId, Ipv6Prefix context, Time validity)
Adds a compression Context to a set of NetDevices.
Definition:
sixlowpan-helper.cc:72
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::TracedValueCallback::Time
void(* Time)(Time oldValue, Time newValue)
TracedValue callback signature for Time.
Definition:
nstime.h:839
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
sixlowpan
helper
sixlowpan-helper.h
Generated on Sun Mar 3 2024 17:11:07 for ns-3 by
1.9.1