Loading...
Searching...
No Matches
satellite-traffic-helper.h File Reference
#include "satellite-helper.h"
#include "ns3/application-container.h"
#include "ns3/cbr-application.h"
#include "ns3/config.h"
#include "ns3/object.h"
#include "ns3/satellite-stats-helper-container.h"
#include "ns3/string.h"
#include <map>
#include <stdint.h>
#include <string>
Include dependency graph for satellite-traffic-helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ns3::SatTrafficHelper::CustomTrafficInfo_s
 Struct for info on last custom trafic created. More...
class  ns3::SatTrafficHelper
 Creates pre-defined trafics. More...
class  ns3::SatTrafficHelperConf
struct  TrafficConfiguration_t

Namespaces

namespace  ns3
 SatArqSequenceNumber is handling the sequence numbers for the ARQ process.

Macros

#define STRINGIFY(x)
#define TOSTRING(x)
#define TRAFFIC_MODEL_CODEC_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_DATA_RATE_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_DIRECTION_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_INTERVAL_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_OFF_TIME_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_OFF_TIME_PATTERN_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_ON_TIME_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_ON_TIME_PATTERN_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_PACKET_SIZE_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_PERCENTAGE_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_PROTOCOL_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_START_DELAY_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_START_TIME_ATTRIBUTE_ACCESSOR_DEFINE(index)
#define TRAFFIC_MODEL_STOP_TIME_ATTRIBUTE_ACCESSOR_DEFINE(index)

Macro Definition Documentation

◆ STRINGIFY

#define STRINGIFY ( x)
Value:
#x

Definition at line 38 of file satellite-traffic-helper.h.

◆ TOSTRING

#define TOSTRING ( x)
Value:
#define STRINGIFY(x)

Definition at line 39 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_CODEC_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_CODEC_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##Codec(SatTrafficHelper::VoipCodec_t value) \
{ \
return SetTrafficCodec(TOSTRING(index), value); \
} \
inline SatTrafficHelper::VoipCodec_t GetTraffic##index##Codec() const \
{ \
return GetTrafficCodec(TOSTRING(index)); \
}
#define TOSTRING(x)

Definition at line 1067 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_DATA_RATE_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_DATA_RATE_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##DataRate(DataRate value) \
{ \
return SetTrafficDataRate(TOSTRING(index), value); \
} \
inline DataRate GetTraffic##index##DataRate() const \
{ \
return GetTrafficDataRate(TOSTRING(index)); \
}

Definition at line 1007 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_DIRECTION_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_DIRECTION_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##Direction(TrafficDirection_t value) \
{ \
return SetTrafficDirection(TOSTRING(index), value); \
} \
inline TrafficDirection_t GetTraffic##index##Direction() const \
{ \
return GetTrafficDirection(TOSTRING(index)); \
}

Definition at line 987 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_INTERVAL_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_INTERVAL_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##Interval(Time value) \
{ \
return SetTrafficInterval(TOSTRING(index), value); \
} \
inline Time GetTraffic##index##Interval() const \
{ \
return GetTrafficInterval(TOSTRING(index)); \
}

Definition at line 997 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_OFF_TIME_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_OFF_TIME_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##OffTime(Time value) \
{ \
return SetTrafficOffTime(TOSTRING(index), value); \
} \
inline Time GetTraffic##index##OffTime() const \
{ \
return GetTrafficOffTime(TOSTRING(index)); \
}

Definition at line 1057 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_OFF_TIME_PATTERN_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_OFF_TIME_PATTERN_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##OffTimePattern(std::string value) \
{ \
return SetTrafficOffTimePattern(TOSTRING(index), value); \
} \
inline std::string GetTraffic##index##OffTimePattern() const \
{ \
return GetTrafficOffTimePattern(TOSTRING(index)); \
}

Definition at line 1037 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_ON_TIME_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_ON_TIME_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##OnTime(Time value) \
{ \
return SetTrafficOnTime(TOSTRING(index), value); \
} \
inline Time GetTraffic##index##OnTime() const \
{ \
return GetTrafficOnTime(TOSTRING(index)); \
}

Definition at line 1047 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_ON_TIME_PATTERN_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_ON_TIME_PATTERN_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##OnTimePattern(std::string value) \
{ \
return SetTrafficOnTimePattern(TOSTRING(index), value); \
} \
inline std::string GetTraffic##index##OnTimePattern() const \
{ \
return GetTrafficOnTimePattern(TOSTRING(index)); \
}

Definition at line 1027 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_PACKET_SIZE_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_PACKET_SIZE_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##PacketSize(uint32_t value) \
{ \
return SetTrafficPacketSize(TOSTRING(index), value); \
} \
inline uint32_t GetTraffic##index##PacketSize() const \
{ \
return GetTrafficPacketSize(TOSTRING(index)); \
}

Definition at line 1017 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_PERCENTAGE_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_PERCENTAGE_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##Percentage(double value) \
{ \
return SetTrafficPercentage(TOSTRING(index), value); \
} \
inline double GetTraffic##index##Percentage() const \
{ \
return GetTrafficPercentage(TOSTRING(index)); \
}

Definition at line 1107 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_PROTOCOL_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_PROTOCOL_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##Protocol(TransportLayerProtocol_t value) \
{ \
return SetTrafficProtocol(TOSTRING(index), value); \
} \
inline TransportLayerProtocol_t GetTraffic##index##Protocol() const \
{ \
return GetTrafficProtocol(TOSTRING(index)); \
}

Definition at line 977 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_START_DELAY_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_START_DELAY_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##StartDelay(Time value) \
{ \
return SetTrafficStartDelay(TOSTRING(index), value); \
} \
inline Time GetTraffic##index##StartDelay() const \
{ \
return GetTrafficStartDelay(TOSTRING(index)); \
}

Definition at line 1097 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_START_TIME_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_START_TIME_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##StartTime(Time value) \
{ \
return SetTrafficStartTime(TOSTRING(index), value); \
} \
inline Time GetTraffic##index##StartTime() const \
{ \
return GetTrafficStartTime(TOSTRING(index)); \
}

Definition at line 1077 of file satellite-traffic-helper.h.

◆ TRAFFIC_MODEL_STOP_TIME_ATTRIBUTE_ACCESSOR_DEFINE

#define TRAFFIC_MODEL_STOP_TIME_ATTRIBUTE_ACCESSOR_DEFINE ( index)
Value:
inline void SetTraffic##index##StopTime(Time value) \
{ \
return SetTrafficStopTime(TOSTRING(index), value); \
} \
inline Time GetTraffic##index##StopTime() const \
{ \
return GetTrafficStopTime(TOSTRING(index)); \
}

Definition at line 1087 of file satellite-traffic-helper.h.