A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
openflow-switch-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 Blake Hurd
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: Blake Hurd <naimorai@gmail.com>
19
*/
20
#ifndef OPENFLOW_SWITCH_HELPER_H
21
#define OPENFLOW_SWITCH_HELPER_H
22
23
#include "ns3/openflow-interface.h"
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
class
Controller;
33
37
class
OpenFlowSwitchHelper
38
{
39
public
:
40
/*
41
* Construct a OpenFlowSwitchHelper
42
*/
43
OpenFlowSwitchHelper
();
44
52
void
53
SetDeviceAttribute
(std::string n1,
const
AttributeValue
&v1);
54
67
NetDeviceContainer
68
Install
(
Ptr<Node>
node,
NetDeviceContainer
c,
Ptr<ns3::ofi::Controller>
controller);
69
80
NetDeviceContainer
81
Install
(
Ptr<Node>
node,
NetDeviceContainer
c);
82
93
NetDeviceContainer
94
Install
(std::string nodeName,
NetDeviceContainer
c);
95
96
private
:
97
ObjectFactory
m_deviceFactory
;
98
};
99
100
}
// namespace ns3
101
102
#endif
/* OPENFLOW_SWITCH_HELPER_H */
ns3::AttributeValue
Hold a value for an Attribute.
Definition:
attribute.h:69
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:42
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:38
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...
ns3::OpenFlowSwitchHelper::Install
NetDeviceContainer Install(std::string nodeName, NetDeviceContainer c)
This method creates an ns3::OpenFlowSwitchNetDevice with the attributes configured by OpenFlowSwitchH...
ns3::OpenFlowSwitchHelper::m_deviceFactory
ObjectFactory m_deviceFactory
Object factory.
Definition:
openflow-switch-helper.h:97
ns3::OpenFlowSwitchHelper::OpenFlowSwitchHelper
OpenFlowSwitchHelper()
ns3::OpenFlowSwitchHelper::Install
NetDeviceContainer Install(Ptr< Node > node, NetDeviceContainer c)
This method creates an ns3::OpenFlowSwitchNetDevice with the attributes configured by OpenFlowSwitchH...
ns3::OpenFlowSwitchHelper::SetDeviceAttribute
void SetDeviceAttribute(std::string n1, const AttributeValue &v1)
Set an attribute on each ns3::OpenFlowSwitchNetDevice created by OpenFlowSwitchHelper::Install.
ns3::Ptr< Node >
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
openflow
helper
openflow-switch-helper.h
Generated on Tue Feb 6 2024 19:21:26 for ns-3 by
1.9.1