NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ns3 Namespace Reference

Copyright (c) 2011-2015 Regents of the University of California. More...

Namespaces

 ndn
 

Classes

class  AnnotatedTopologyReader
 This class reads annotated topology and apply settings to the corresponding nodes and links. More...
 
class  Batches
 Class representing sets of (time, number) tuples with support of reading writing to streams. More...
 
class  BatchesChecker
 
class  BatchesValue
 
class  L2RateTracer
 Tracer to collect link-layer rate information about links. More...
 
class  L2Tracer
 Link-layer tracer. More...
 
class  RocketfuelMapReader
 Topology file reader and topology estimator (extension of Rocketfuel-format type). More...
 
struct  RocketfuelParams
 
class  RocketfuelWeightsReader
 Topology file reader (extension of Rocketfuel-format type). More...
 

Functions

std::ostream & operator<< (std::ostream &os, const Batches &batch)
 Output contents of the Batches to the std::ostream. More...
 
std::istream & operator>> (std::istream &is, Batches &batch)
 Read components from input and add them to components. More...
 
template<typename T1 >
Ptr< const AttributeAccessor > MakeBatchesAccessor (T1 a1)
 
template<typename T1 , typename T2 >
Ptr< const AttributeAccessor > MakeBatchesAccessor (T1 a1, T2 a2)
 
Ptr< const AttributeChecker > MakeBatchesChecker (void)
 
static void nodeWriter (std::ostream &os, NodeContainer &m)
 
std::ostream & operator<< (std::ostream &os, const L2Tracer &tracer)
 

Variables

 Batches
 
 AnnotatedTopologyReader
 
static std::list< std::tuple< std::shared_ptr< std::ostream >, std::list< Ptr< L2RateTracer > > > > g_tracers
 
const double alpha = 0.8
 

Detailed Description

Copyright (c) 2011-2015 Regents of the University of California.

Copyright (c) 2011-2015 Tsinghua University, P.R.China.

Copyright (c) 2011-2016 Regents of the University of California.

Copyright (c) 2011-2019 Regents of the University of California.

Copyright (c) 2019 Klaus Schneider, The University of Arizona.

This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and contributors.

ndnSIM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ndnSIM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ndnSIM, e.g., in COPYING.md file. If not, see http://www.gnu.org/licenses/.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation;

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Author: Klaus Schneider klaus.nosp@m.@cs..nosp@m.arizo.nosp@m.na.e.nosp@m.du

This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and contributors.

ndnSIM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ndnSIM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ndnSIM, e.g., in COPYING.md file. If not, see http://www.gnu.org/licenses/.

Author
Xiaoke Jiang shock.nosp@m..jia.nosp@m.ng@gm.nosp@m.ail..nosp@m.com

Function Documentation

◆ operator<<() [1/2]

std::ostream & ns3::operator<< ( std::ostream &  os,
const Batches batch 
)

Output contents of the Batches to the std::ostream.

Parameters
osreference to std::ostream
batchconstant reference to Batch object

Definition at line 26 of file batches.cpp.

◆ operator>>()

std::istream & ns3::operator>> ( std::istream &  is,
Batches batch 
)

Read components from input and add them to components.

Will read input stream till eof Substrings separated by slashes will become separate components

Definition at line 40 of file batches.cpp.

References ns3::Batches::Add().

◆ MakeBatchesAccessor() [1/2]

template<typename T1 >
Ptr<const AttributeAccessor> ns3::MakeBatchesAccessor ( T1  a1)

Definition at line 55 of file batches.hpp.

Referenced by ns3::ndn::ConsumerBatches::GetTypeId().

◆ MakeBatchesAccessor() [2/2]

template<typename T1 , typename T2 >
Ptr<const AttributeAccessor> ns3::MakeBatchesAccessor ( T1  a1,
T2  a2 
)

Definition at line 55 of file batches.hpp.

◆ MakeBatchesChecker()

Ptr<const AttributeChecker> ns3::MakeBatchesChecker ( void  )

◆ nodeWriter()

static void ns3::nodeWriter ( std::ostream &  os,
NodeContainer &  m 
)
static

Definition at line 484 of file rocketfuel-map-reader.cpp.

Referenced by ns3::RocketfuelMapReader::SaveTopology().

◆ operator<<() [2/2]

std::ostream& ns3::operator<< ( std::ostream &  os,
const L2Tracer tracer 
)
inline

Definition at line 78 of file l2-tracer.hpp.

References ns3::L2Tracer::Print(), and ns3::L2Tracer::PrintHeader().

Variable Documentation

◆ Batches

Definition at line 24 of file batches.cpp.

◆ AnnotatedTopologyReader

◆ g_tracers

std::list<std::tuple<std::shared_ptr<std::ostream>, std::list<Ptr<L2RateTracer> > > > ns3::g_tracers
static

Definition at line 39 of file l2-rate-tracer.cpp.

Referenced by ns3::L2RateTracer::Destroy(), and ns3::L2RateTracer::InstallAll().

◆ alpha

const double ns3::alpha = 0.8

Definition at line 142 of file l2-rate-tracer.cpp.

Referenced by ndn::util::RttEstimator::addMeasurement().