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
point-to-point-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
*/
20
#ifndef POINT_TO_POINT_HELPER_H
21
#define POINT_TO_POINT_HELPER_H
22
23
#include <string>
24
25
#include "ns3/object-factory.h"
26
#include "ns3/net-device-container.h"
27
#include "ns3/node-container.h"
28
#include "ns3/deprecated.h"
29
30
#include "ns3/trace-helper.h"
31
32
namespace
ns3 {
33
34
class
Queue;
35
class
NetDevice;
36
class
Node;
37
45
class
PointToPointHelper
:
public
PcapHelperForDevice
,
public
AsciiTraceHelperForDevice
46
{
47
public
:
52
PointToPointHelper
();
53
virtual
~PointToPointHelper
() {}
54
73
void
SetQueue
(std::string type,
74
std::string n1 =
""
,
const
AttributeValue
&v1 =
EmptyAttributeValue
(),
75
std::string n2 =
""
,
const
AttributeValue
&v2 =
EmptyAttributeValue
(),
76
std::string n3 =
""
,
const
AttributeValue
&v3 =
EmptyAttributeValue
(),
77
std::string n4 =
""
,
const
AttributeValue
&v4 =
EmptyAttributeValue
());
78
89
void
SetDeviceAttribute
(std::string name,
const
AttributeValue
&value);
90
101
void
SetChannelAttribute
(std::string name,
const
AttributeValue
&value);
102
113
NetDeviceContainer
Install
(
NodeContainer
c);
114
123
NetDeviceContainer
Install
(
Ptr<Node>
a,
Ptr<Node>
b);
124
131
NetDeviceContainer
Install
(
Ptr<Node>
a, std::string bName);
132
139
NetDeviceContainer
Install
(std::string aName,
Ptr<Node>
b);
140
147
NetDeviceContainer
Install
(std::string aNode, std::string bNode);
148
149
private
:
161
virtual
void
EnablePcapInternal
(std::string prefix,
Ptr<NetDevice>
nd,
bool
promiscuous,
bool
explicitFilename);
162
175
virtual
void
EnableAsciiInternal
(
176
Ptr<OutputStreamWrapper>
stream,
177
std::string prefix,
178
Ptr<NetDevice>
nd,
179
bool
explicitFilename);
180
181
ObjectFactory
m_queueFactory
;
182
ObjectFactory
m_channelFactory
;
183
ObjectFactory
m_remoteChannelFactory
;
184
ObjectFactory
m_deviceFactory
;
185
};
186
187
}
// namespace ns3
188
189
#endif
/* POINT_TO_POINT_HELPER_H */
ns3::AsciiTraceHelperForDevice
Base class providing common user-level ascii trace operations for helpers representing net devices...
Definition:
trace-helper.h:413
ns3::PointToPointHelper::EnablePcapInternal
virtual void EnablePcapInternal(std::string prefix, Ptr< NetDevice > nd, bool promiscuous, bool explicitFilename)
Enable pcap output the indicated net device.
Definition:
point-to-point-helper.cc:77
ns3::Ptr< Node >
ns3::PointToPointHelper::Install
NetDeviceContainer Install(NodeContainer c)
Definition:
point-to-point-helper.cc:218
ns3::AttributeValue
Hold a value for an Attribute.
Definition:
attribute.h:56
ns3::PointToPointHelper::SetQueue
void SetQueue(std::string type, std::string n1="", const AttributeValue &v1=EmptyAttributeValue(), std::string n2="", const AttributeValue &v2=EmptyAttributeValue(), std::string n3="", const AttributeValue &v3=EmptyAttributeValue(), std::string n4="", const AttributeValue &v4=EmptyAttributeValue())
Definition:
point-to-point-helper.cc:50
ns3::PcapHelperForDevice
Base class providing common user-level pcap operations for helpers representing net devices...
Definition:
trace-helper.h:323
ns3::PointToPointHelper
Build a set of PointToPointNetDevice objects.
Definition:
point-to-point-helper.h:45
ns3::PointToPointHelper::m_channelFactory
ObjectFactory m_channelFactory
Definition:
point-to-point-helper.h:182
ns3::PointToPointHelper::SetDeviceAttribute
void SetDeviceAttribute(std::string name, const AttributeValue &value)
Definition:
point-to-point-helper.cc:64
ns3::PointToPointHelper::PointToPointHelper
PointToPointHelper()
Definition:
point-to-point-helper.cc:41
ns3::EmptyAttributeValue
A class for an empty attribute value.
Definition:
attribute.h:222
ns3::PointToPointHelper::EnableAsciiInternal
virtual void EnableAsciiInternal(Ptr< OutputStreamWrapper > stream, std::string prefix, Ptr< NetDevice > nd, bool explicitFilename)
Enable ascii trace output on the indicated net device.
Definition:
point-to-point-helper.cc:109
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:41
ns3::PointToPointHelper::m_deviceFactory
ObjectFactory m_deviceFactory
Definition:
point-to-point-helper.h:184
ns3::NodeContainer
keep track of a set of node pointers.
Definition:
node-container.h:38
ns3::PointToPointHelper::m_remoteChannelFactory
ObjectFactory m_remoteChannelFactory
Definition:
point-to-point-helper.h:183
ns3::PointToPointHelper::SetChannelAttribute
void SetChannelAttribute(std::string name, const AttributeValue &value)
Definition:
point-to-point-helper.cc:70
ns3::ObjectFactory
instantiate subclasses of ns3::Object.
Definition:
object-factory.h:39
ns3::PointToPointHelper::~PointToPointHelper
virtual ~PointToPointHelper()
Definition:
point-to-point-helper.h:53
ns3::PointToPointHelper::m_queueFactory
ObjectFactory m_queueFactory
Definition:
point-to-point-helper.h:181
src
point-to-point
helper
point-to-point-helper.h
Generated on Sat Nov 16 2013 12:55:37 for ns-3 by
1.8.5