A Discrete-Event Network Simulator
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 
39 {
40  public:
41  /*
42  * Construct a OpenFlowSwitchHelper
43  */
45 
53  void SetDeviceAttribute(std::string n1, const AttributeValue& v1);
54 
70 
82 
93  NetDeviceContainer Install(std::string nodeName, NetDeviceContainer c);
94 
95  private:
97 };
98 
99 } // namespace ns3
100 
101 #endif /* OPENFLOW_SWITCH_HELPER_H */
Hold a value for an Attribute.
Definition: attribute.h:70
holds a vector of ns3::NetDevice pointers
Instantiate subclasses of ns3::Object.
Add capability to switch multiple LAN segments (IEEE 802.1D bridging)
NetDeviceContainer Install(Ptr< Node > node, NetDeviceContainer c, Ptr< ns3::ofi::Controller > controller)
This method creates an ns3::OpenFlowSwitchNetDevice with the attributes configured by OpenFlowSwitchH...
ObjectFactory m_deviceFactory
Object factory.
void SetDeviceAttribute(std::string n1, const AttributeValue &v1)
Set an attribute on each ns3::OpenFlowSwitchNetDevice created by OpenFlowSwitchHelper::Install.
Every class exported by the ns3 library is enclosed in the ns3 namespace.