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
bridge-helper.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 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: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
* Author: Gustavo Carneiro <gjc@inescporto.pt>
20
*/
21
#ifndef BRIDGE_HELPER_H
22
#define BRIDGE_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
36
class
BridgeHelper
37
{
38
public
:
39
/*
40
* Construct a BridgeHelper
41
*/
42
BridgeHelper
();
50
void
SetDeviceAttribute
(std::string n1,
const
AttributeValue
&v1);
61
NetDeviceContainer
Install
(
Ptr<Node>
node,
NetDeviceContainer
c);
72
NetDeviceContainer
Install
(std::string nodeName,
NetDeviceContainer
c);
73
private
:
74
ObjectFactory
m_deviceFactory
;
75
};
76
77
}
// namespace ns3
78
79
80
#endif
/* BRIDGE_HELPER_H */
ns3::Ptr< Node >
ns3::AttributeValue
Hold a value for an Attribute.
Definition:
attribute.h:56
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:41
ns3::BridgeHelper::m_deviceFactory
ObjectFactory m_deviceFactory
Definition:
bridge-helper.h:74
ns3::BridgeHelper
Add capability to bridge multiple LAN segments (IEEE 802.1D bridging)
Definition:
bridge-helper.h:36
ns3::BridgeHelper::Install
NetDeviceContainer Install(Ptr< Node > node, NetDeviceContainer c)
This method creates an ns3::BridgeNetDevice with the attributes configured by BridgeHelper::SetDevice...
Definition:
bridge-helper.cc:43
ns3::ObjectFactory
instantiate subclasses of ns3::Object.
Definition:
object-factory.h:39
ns3::BridgeHelper::BridgeHelper
BridgeHelper()
Definition:
bridge-helper.cc:29
ns3::BridgeHelper::SetDeviceAttribute
void SetDeviceAttribute(std::string n1, const AttributeValue &v1)
Set an attribute on each ns3::BridgeNetDevice created by BridgeHelper::Install.
Definition:
bridge-helper.cc:36
src
bridge
helper
bridge-helper.h
Generated on Sat Apr 19 2014 14:06:50 for ns-3 by
1.8.6