A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
openflow-switch-helper.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Blake Hurd
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: Blake Hurd <naimorai@gmail.com>
18
*/
19
#ifndef OPENFLOW_SWITCH_HELPER_H
20
#define OPENFLOW_SWITCH_HELPER_H
21
22
#include "ns3/net-device-container.h"
23
#include "ns3/object-factory.h"
24
#include "ns3/openflow-interface.h"
25
26
#include <string>
27
28
namespace
ns3
29
{
30
31
class
Node;
32
class
AttributeValue;
33
class
Controller;
34
38
class
OpenFlowSwitchHelper
39
{
40
public
:
41
/*
42
* Construct a OpenFlowSwitchHelper
43
*/
44
OpenFlowSwitchHelper
();
45
53
void
SetDeviceAttribute
(std::string n1,
const
AttributeValue
& v1);
54
67
NetDeviceContainer
Install
(
Ptr<Node>
node,
68
NetDeviceContainer
c,
69
Ptr<ns3::ofi::Controller>
controller
);
70
81
NetDeviceContainer
Install
(
Ptr<Node>
node,
NetDeviceContainer
c);
82
93
NetDeviceContainer
Install
(std::string nodeName,
NetDeviceContainer
c);
94
95
private
:
96
ObjectFactory
m_deviceFactory
;
97
};
98
99
}
// namespace ns3
100
101
#endif
/* OPENFLOW_SWITCH_HELPER_H */
ns3::AttributeValue
Hold a value for an Attribute.
Definition:
attribute.h:70
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::OpenFlowSwitchHelper
Add capability to switch multiple LAN segments (IEEE 802.1D bridging)
Definition:
openflow-switch-helper.h:39
ns3::OpenFlowSwitchHelper::Install
NetDeviceContainer Install(Ptr< Node > node, NetDeviceContainer c, Ptr< ns3::ofi::Controller > controller)
This method creates an ns3::OpenFlowSwitchNetDevice with the attributes configured by OpenFlowSwitchH...
Definition:
openflow-switch-helper.cc:47
ns3::OpenFlowSwitchHelper::m_deviceFactory
ObjectFactory m_deviceFactory
Object factory.
Definition:
openflow-switch-helper.h:96
ns3::OpenFlowSwitchHelper::OpenFlowSwitchHelper
OpenFlowSwitchHelper()
Definition:
openflow-switch-helper.cc:33
ns3::OpenFlowSwitchHelper::SetDeviceAttribute
void SetDeviceAttribute(std::string n1, const AttributeValue &v1)
Set an attribute on each ns3::OpenFlowSwitchNetDevice created by OpenFlowSwitchHelper::Install.
Definition:
openflow-switch-helper.cc:40
ns3::Ptr< Node >
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
openflow-switch.controller
controller
Definition:
openflow-switch.py:55
src
openflow
helper
openflow-switch-helper.h
Generated on Sun Mar 3 2024 17:11:07 for ns-3 by
1.9.1