src/helper/point-to-point-helper.h
author Craig Dowell <craigdo@ee.washington.edu>
Wed, 27 Jan 2010 18:41:38 -0800
changeset 6026 38a97b815052
parent 6017 050fa2b861df
child 6028 96fb92f73f3d
permissions -rw-r--r--
some words about mixins in helpers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2833
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
     2
/*
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
     3
 * Copyright (c) 2008 INRIA
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
     4
 *
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
     6
 * it under the terms of the GNU General Public License version 2 as
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
     7
 * published by the Free Software Foundation;
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
     8
 *
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
    12
 * GNU General Public License for more details.
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
    13
 *
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
    14
 * You should have received a copy of the GNU General Public License
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
    15
 * along with this program; if not, write to the Free Software
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
    16
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
    17
 *
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
    18
 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
f3474fd850b2 add missing license headers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2805
diff changeset
    19
 */
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    20
#ifndef POINT_TO_POINT_HELPER_H
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    21
#define POINT_TO_POINT_HELPER_H
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    22
6013
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
    23
#include <string>
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
    24
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    25
#include "ns3/object-factory.h"
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    26
#include "ns3/net-device-container.h"
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    27
#include "ns3/node-container.h"
3403
ac82ff1f6736 use NS_DEPRECATED for bug 232.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3381
diff changeset
    28
#include "ns3/deprecated.h"
6013
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
    29
6017
050fa2b861df merge trace helper files
Craig Dowell <craigdo@ee.washington.edu>
parents: 6013
diff changeset
    30
#include "pcap-helper.h"
050fa2b861df merge trace helper files
Craig Dowell <craigdo@ee.washington.edu>
parents: 6013
diff changeset
    31
#include "ascii-trace-helper.h"
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    32
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    33
namespace ns3 {
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    34
2786
f261e50396ac add ascii/pcap trace helpers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2706
diff changeset
    35
class Queue;
f261e50396ac add ascii/pcap trace helpers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2706
diff changeset
    36
class NetDevice;
f261e50396ac add ascii/pcap trace helpers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2706
diff changeset
    37
class Node;
f261e50396ac add ascii/pcap trace helpers
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2706
diff changeset
    38
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    39
/**
5363
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    40
 * \brief Build a set of PointToPointNetDevice objects
6026
38a97b815052 some words about mixins in helpers
Craig Dowell <craigdo@ee.washington.edu>
parents: 6017
diff changeset
    41
 *
38a97b815052 some words about mixins in helpers
Craig Dowell <craigdo@ee.washington.edu>
parents: 6017
diff changeset
    42
 * Normally we eschew multiple inheritance, however, the classes 
38a97b815052 some words about mixins in helpers
Craig Dowell <craigdo@ee.washington.edu>
parents: 6017
diff changeset
    43
 * PcapUserHelperForDevice and AsciiTraceUserHelperForDevice are
38a97b815052 some words about mixins in helpers
Craig Dowell <craigdo@ee.washington.edu>
parents: 6017
diff changeset
    44
 * treated as "mixins".  A mixin is a self-contained class that
38a97b815052 some words about mixins in helpers
Craig Dowell <craigdo@ee.washington.edu>
parents: 6017
diff changeset
    45
 * encapsulates a general attribute or a set of functionality that
38a97b815052 some words about mixins in helpers
Craig Dowell <craigdo@ee.washington.edu>
parents: 6017
diff changeset
    46
 * may be of interest to many other classes.
38a97b815052 some words about mixins in helpers
Craig Dowell <craigdo@ee.washington.edu>
parents: 6017
diff changeset
    47
 * 
38a97b815052 some words about mixins in helpers
Craig Dowell <craigdo@ee.washington.edu>
parents: 6017
diff changeset
    48
 * Since the mixins below are self-contained and are explicitly 
38a97b815052 some words about mixins in helpers
Craig Dowell <craigdo@ee.washington.edu>
parents: 6017
diff changeset
    49
 * designed to avoid naming conflicts through explicit resolution,
38a97b815052 some words about mixins in helpers
Craig Dowell <craigdo@ee.washington.edu>
parents: 6017
diff changeset
    50
 * multiple inheritance problems are avoided.
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    51
 */
6013
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
    52
class PointToPointHelper : public PcapUserHelperForDevice, public AsciiTraceUserHelperForDevice
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    53
{
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    54
public:
5363
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    55
  /**
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    56
   * Create a PointToPointHelper to make life easier when creating point to
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    57
   * point networks.
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    58
   */
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    59
  PointToPointHelper ();
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    60
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    61
  /**
5363
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    62
   * Each point to point net device must have a queue to pass packets through.
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    63
   * This method allows one to set the type of the queue that is automatically
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    64
   * created when the device is created and attached to a node.
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    65
   *
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    66
   * \param type the type of queue
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    67
   * \param n1 the name of the attribute to set on the queue
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    68
   * \param v1 the value of the attribute to set on the queue
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    69
   * \param n2 the name of the attribute to set on the queue
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    70
   * \param v2 the value of the attribute to set on the queue
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    71
   * \param n3 the name of the attribute to set on the queue
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    72
   * \param v3 the value of the attribute to set on the queue
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    73
   * \param n4 the name of the attribute to set on the queue
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    74
   * \param v4 the value of the attribute to set on the queue
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    75
   *
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    76
   * Set the type of queue to create and associated to each
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2839
diff changeset
    77
   * PointToPointNetDevice created through PointToPointHelper::Install.
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    78
   */
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    79
  void SetQueue (std::string type,
3786
9f384deadb46 replace \t with 8 spaces.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3403
diff changeset
    80
                 std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
9f384deadb46 replace \t with 8 spaces.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3403
diff changeset
    81
                 std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
9f384deadb46 replace \t with 8 spaces.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3403
diff changeset
    82
                 std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
9f384deadb46 replace \t with 8 spaces.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 3403
diff changeset
    83
                 std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue ());
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
    84
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    85
  /**
5363
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    86
   * Set an attribute value to be propagated to each NetDevice created by the
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    87
   * helper.
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    88
   *
2706
1e5771a4796c fix dox warnings.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2705
diff changeset
    89
   * \param name the name of the attribute to set
1e5771a4796c fix dox warnings.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2705
diff changeset
    90
   * \param value the value of the attribute to set
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    91
   *
3381
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 2997
diff changeset
    92
   * Set these attributes on each ns3::PointToPointNetDevice created
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2839
diff changeset
    93
   * by PointToPointHelper::Install
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    94
   */
3381
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 2997
diff changeset
    95
  void SetDeviceAttribute (std::string name, const AttributeValue &value);
5363
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    96
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
    97
  /**
5363
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    98
   * Set an attribute value to be propagated to each Channel created by the
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
    99
   * helper.
7134a7d9337a Doxygen-o-matic
Craig Dowell <craigdo@ee.washington.edu>
parents: 4712
diff changeset
   100
   *
2706
1e5771a4796c fix dox warnings.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2705
diff changeset
   101
   * \param name the name of the attribute to set
1e5771a4796c fix dox warnings.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2705
diff changeset
   102
   * \param value the value of the attribute to set
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   103
   *
3381
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 2997
diff changeset
   104
   * Set these attribute on each ns3::PointToPointChannel created
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2839
diff changeset
   105
   * by PointToPointHelper::Install
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   106
   */
3381
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 2997
diff changeset
   107
  void SetChannelAttribute (std::string name, const AttributeValue &value);
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   108
2805
cd246cf2edf3 add missing tracing helpers and doxygen
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2802
diff changeset
   109
  /**
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   110
   * \param c a set of nodes
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   111
   *
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   112
   * This method creates a ns3::PointToPointChannel with the
3381
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 2997
diff changeset
   113
   * attributes configured by PointToPointHelper::SetChannelAttribute,
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   114
   * then, for each node in the input container, we create a 
3381
3cdd9d60f7c7 bug 232, references to Parameter obsolete
Craig Dowell <craigdo@ee.washington.edu>
parents: 2997
diff changeset
   115
   * ns3::PointToPointNetDevice with the requested attributes, 
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   116
   * a queue for this ns3::NetDevice, and associate the resulting 
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   117
   * ns3::NetDevice with the ns3::Node and ns3::PointToPointChannel.
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   118
   */
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2839
diff changeset
   119
  NetDeviceContainer Install (NodeContainer c);
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3403
diff changeset
   120
2705
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   121
  /**
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   122
   * \param a first node
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   123
   * \param b second node
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   124
   *
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   125
   * Saves you from having to construct a temporary NodeContainer.
a90b71c2afae doxygen.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2603
diff changeset
   126
   */
2887
9a637e6daee0 Build -> Install
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2839
diff changeset
   127
  NetDeviceContainer Install (Ptr<Node> a, Ptr<Node> b);
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   128
3793
a5895f134543 make star topologies easier to create
Craig Dowell <craigdo@ee.washington.edu>
parents: 3403
diff changeset
   129
  /**
4140
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   130
   * \param a first node
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   131
   * \param bName name of second node
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   132
   *
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   133
   * Saves you from having to construct a temporary NodeContainer.
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   134
   */
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   135
  NetDeviceContainer Install (Ptr<Node> a, std::string bName);
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   136
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   137
  /**
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   138
   * \param aName Name of first node
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   139
   * \param b second node
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   140
   *
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   141
   * Saves you from having to construct a temporary NodeContainer.
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   142
   */
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   143
  NetDeviceContainer Install (std::string aName, Ptr<Node> b);
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   144
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   145
  /**
4481
9250a25ee683 Doxygen cleanup
Tom Henderson <tomh@tomh.org>
parents: 4448
diff changeset
   146
   * \param aNode Name of first node
9250a25ee683 Doxygen cleanup
Tom Henderson <tomh@tomh.org>
parents: 4448
diff changeset
   147
   * \param bNode Name of second node
4140
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   148
   *
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   149
   * Saves you from having to construct a temporary NodeContainer.
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   150
   */
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   151
  NetDeviceContainer Install (std::string aNode, std::string bNode);
6bbf05bf4826 Brute force all of the helpers to use object name service
Craig Dowell <craigdo@ee.washington.edu>
parents: 3794
diff changeset
   152
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   153
private:
6009
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   154
  /**
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   155
   * \brief Enable pcap output the indicated net device.
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   156
   *
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   157
   * NetDevice-specific implementation mechanism for hooking the trace and
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   158
   * writing to the trace file.
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   159
   *
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   160
   * \param prefix Filename prefix to use for pcap files.
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   161
   * \param nd Net device for which you want to enable tracing.
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   162
   * \param promiscuous If true capture all possible packets available at the device.
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   163
   */
e1b696a1ed28 redo pcap tracing
Craig Dowell <craigdo@ee.washington.edu>
parents: 5776
diff changeset
   164
  virtual void EnablePcapInternal (std::string prefix, Ptr<NetDevice> nd, bool promiscuous = false);
4263
fec2f830d015 trace consistency changes
Craig Dowell <craigdo@ee.washington.edu>
parents: 4140
diff changeset
   165
6013
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   166
  /**
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   167
   * \brief Enable ascii trace output on the indicated net device.
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   168
   * \internal
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   169
   *
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   170
   * NetDevice-specific implementation mechanism for hooking the trace and
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   171
   * writing to the trace file.
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   172
   *
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   173
   * \param stream The output stream object to use when logging ascii traces.
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   174
   * \param prefix Filename prefix to use for ascii trace files.
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   175
   * \param nd Net device for which you want to enable tracing.
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   176
   */
fa3ab7f34eb2 checkpoint
Craig Dowell <craigdo@ee.washington.edu>
parents: 6009
diff changeset
   177
  virtual void EnableAsciiInternal (Ptr<OutputStreamObject> stream, std::string prefix, Ptr<NetDevice> nd);
4263
fec2f830d015 trace consistency changes
Craig Dowell <craigdo@ee.washington.edu>
parents: 4140
diff changeset
   178
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   179
  ObjectFactory m_queueFactory;
2603
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2433
diff changeset
   180
  ObjectFactory m_channelFactory;
1308da4cb3bf move helpers to their own dir.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents: 2433
diff changeset
   181
  ObjectFactory m_deviceFactory;
2418
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   182
};
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   183
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   184
} // namespace ns3
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   185
4ff45fa08781 an initial draft of helper classes. don't work yet.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
   186
#endif /* POINT_TO_POINT_HELPER_H */