NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ndn-consumer-cbr.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_CONSUMER_CBR_H
21
#define NDN_CONSUMER_CBR_H
22
23
#include "ns3/ndnSIM/model/ndn-common.hpp"
24
25
#include "
ndn-consumer.hpp
"
26
27
namespace
ns3 {
28
namespace
ndn {
29
34
class
ConsumerCbr
:
public
Consumer
{
35
public
:
36
static
TypeId
37
GetTypeId
();
38
43
ConsumerCbr
();
44
virtual
~ConsumerCbr
();
45
46
protected
:
51
virtual
void
52
ScheduleNextPacket
();
53
58
void
59
SetRandomize
(
const
std::string& value);
60
65
std::string
66
GetRandomize
()
const
;
67
68
protected
:
69
double
m_frequency
;
// Frequency of interest packets (in hertz)
70
bool
m_firstTime
;
71
RandomVariable*
m_random
;
72
std::string
m_randomType
;
73
};
74
75
}
// namespace ndn
76
}
// namespace ns3
77
78
#endif
ndn-consumer.hpp
ns3::ndn::ConsumerCbr::m_firstTime
bool m_firstTime
Definition:
ndn-consumer-cbr.hpp:70
ns3::ndn::ConsumerCbr::m_random
RandomVariable * m_random
Definition:
ndn-consumer-cbr.hpp:71
ns3::ndn::ConsumerCbr::GetTypeId
static TypeId GetTypeId()
Definition:
ndn-consumer-cbr.cpp:42
ns3::ndn::ConsumerCbr::~ConsumerCbr
virtual ~ConsumerCbr()
Definition:
ndn-consumer-cbr.cpp:77
ns3::ndn::ConsumerCbr::m_frequency
double m_frequency
Definition:
ndn-consumer-cbr.hpp:69
ns3::ndn::ConsumerCbr
Ndn application for sending out Interest packets at a "constant" rate (Poisson process) ...
Definition:
ndn-consumer-cbr.hpp:34
ns3::ndn::ConsumerCbr::GetRandomize
std::string GetRandomize() const
Get type of frequency randomization.
Definition:
ndn-consumer-cbr.cpp:118
ns3::ndn::Consumer
NDN application for sending out Interest packets.
Definition:
ndn-consumer.hpp:50
ns3::ndn::ConsumerCbr::SetRandomize
void SetRandomize(const std::string &value)
Set type of frequency randomization.
Definition:
ndn-consumer-cbr.cpp:100
ns3::ndn::ConsumerCbr::m_randomType
std::string m_randomType
Definition:
ndn-consumer-cbr.hpp:72
ns3::ndn::ConsumerCbr::ScheduleNextPacket
virtual void ScheduleNextPacket()
Constructs the Interest packet and sends it using a callback to the underlying NDN protocol...
Definition:
ndn-consumer-cbr.cpp:84
ns3::ndn::ConsumerCbr::ConsumerCbr
ConsumerCbr()
Default constructor Sets up randomizer function and packet sequence number.
Definition:
ndn-consumer-cbr.cpp:68
ndnSIM
apps
ndn-consumer-cbr.hpp
Generated on Wed Feb 18 2015 16:31:16 for ndnSIM by
1.8.7