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
rocketfuel-topology-reader.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2010 Hajime Tazaki
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: Hajime Tazaki (tazaki@sfc.wide.ad.jp)
19
*/
20
21
#ifndef ROCKETFUEL_TOPOLOGY_READER_H
22
#define ROCKETFUEL_TOPOLOGY_READER_H
23
24
#include "ns3/nstime.h"
25
#include "
topology-reader.h
"
26
27
namespace
ns3 {
28
29
30
// ------------------------------------------------------------
31
// --------------------------------------------
43
class
RocketfuelTopologyReader
:
public
TopologyReader
44
{
45
public
:
46
static
TypeId
GetTypeId
(
void
);
47
48
RocketfuelTopologyReader
();
49
virtual
~RocketfuelTopologyReader
();
50
61
virtual
NodeContainer
Read
(
void
);
62
63
private
:
64
RocketfuelTopologyReader
(
const
RocketfuelTopologyReader
&);
65
RocketfuelTopologyReader
&
operator=
(
const
RocketfuelTopologyReader
&);
66
// Parser for the *.cch file available at:
67
// http://www.cs.washington.edu/research/networking/rocketfuel/maps/rocketfuel_maps_cch.tar.gz
68
NodeContainer
GenerateFromMapsFile
(
int
argc,
char
*argv[]);
69
// Parser for the weights.* file available at:
70
// http://www.cs.washington.edu/research/networking/rocketfuel/maps/weights-dist.tar.gz
71
NodeContainer
GenerateFromWeightsFile
(
int
argc,
char
*argv[]);
72
73
enum
RF_FileType
74
{
75
RF_MAPS
,
76
RF_WEIGHTS
,
77
RF_UNKNOWN
78
};
79
enum
RF_FileType
GetFileType
(
const
char
*);
80
81
// end class RocketfuelTopologyReader
82
};
83
84
// end namespace ns3
85
};
86
87
88
#endif
/* ROCKETFUEL_TOPOLOGY_READER_H */
89
90
src
topology-read
model
rocketfuel-topology-reader.h
Generated on Tue May 14 2013 11:08:33 for ns-3 by
1.8.1.2