22 #ifndef __SATELLITE_TRAFFIC_HELPER_H__
23 #define __SATELLITE_TRAFFIC_HELPER_H__
25 #include <ns3/application-container.h>
26 #include <ns3/cbr-application.h>
27 #include <ns3/config.h>
28 #include <ns3/object.h>
29 #include <ns3/satellite-helper.h>
30 #include <ns3/satellite-stats-helper-container.h>
31 #include <ns3/string.h>
92 Ptr<SatStatsHelperContainer> satStatsHelperContainer);
113 std::string interval,
206 std::string interval,
239 Ptr<SatStatsHelperContainer>
251 std::string interval,
252 uint32_t packetSize);
Creates pre-defined trafics.
SatTrafficHelper()
Default constructor.
void ChangeCustomTraffic(Time delay, std::string interval, uint32_t packetSize)
Change the parameters of the last custom traffic created.
CustomTrafficInfo_s m_last_custom_application
bool HasSinkInstalled(Ptr< Node > node, uint16_t port)
Check if node has a PacketSink installed at certain port.
void AddNrtvTraffic(TrafficDirection_t direction, NodeContainer gws, NodeContainer uts, Time startTime, Time stopTime, Time startDelay)
Add a new TCP/NRTV traffic between chosen GWs and UTs.
void AddHttpTraffic(TrafficDirection_t direction, NodeContainer gws, NodeContainer uts, Time startTime, Time stopTime, Time startDelay)
Add a new TCP/HTTP traffic between chosen GWs and UTs.
Ptr< SatHelper > m_satHelper
virtual ~SatTrafficHelper()
Destructor for SatTrafficHelper.
static TypeId GetTypeId(void)
Get the type ID.
void AddCustomTraffic(TrafficDirection_t direction, std::string interval, uint32_t packetSize, NodeContainer gws, NodeContainer uts, Time startTime, Time stopTime, Time startDelay)
Add a new CBR traffic between chosen GWs and UTs that can be customized.
void AddCbrTraffic(TrafficDirection_t direction, std::string interval, uint32_t packetSize, NodeContainer gws, NodeContainer uts, Time startTime, Time stopTime, Time startDelay)
Add a new UDP/CBR traffic between chosen GWs and UTs.
void AddVoipTraffic(TrafficDirection_t direction, VoipCodec_t codec, NodeContainer gws, NodeContainer uts, Time startTime, Time stopTime, Time startDelay)
Add a new Poisson traffic between chosen GWs and UTs.
TypeId GetInstanceTypeId(void) const
Get the type ID of object instance.
TrafficType_t
List of available traffics.
void AddPoissonTraffic(TrafficDirection_t direction, Time onTime, Time offTimeExpMean, std::string rate, uint32_t packetSize, NodeContainer gws, NodeContainer uts, Time startTime, Time stopTime, Time startDelay)
Add a new Poisson traffic between chosen GWs and UTs.
Ptr< SatStatsHelperContainer > m_satStatsHelperContainer
void UpdateAttribute(Ptr< CbrApplication > application, std::string interval, uint32_t packetSize)
Update the chosen attribute of a custom traffic.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.
Struct for info on last custom trafic created.
ApplicationContainer application