21#include "ns3/boolean.h"
22#include "ns3/channel-condition-model.h"
23#include "ns3/double.h"
25#include "ns3/mobility-model.h"
27#include "ns3/pointer.h"
28#include "ns3/simulator.h"
37static const double M_C = 3.0e8;
47 TypeId(
"ns3::ThreeGppPropagationLossModel")
49 .SetGroupName(
"Propagation")
50 .AddAttribute(
"Frequency",
51 "The centre frequency in Hz.",
55 MakeDoubleChecker<double>())
56 .AddAttribute(
"ShadowingEnabled",
57 "Enable/disable shadowing.",
62 "ChannelConditionModel",
63 "Pointer to the channel condition model.",
67 MakePointerChecker<ChannelConditionModel>())
68 .AddAttribute(
"EnforceParameterRanges",
69 "Whether to strictly enforce TR38.901 applicability ranges",
74 "BuildingPenetrationLossesEnabled",
75 "Enable/disable Building Penetration Losses.",
136 "Frequency should be between 0.5 and 100 GHz but is " <<
f);
174 std::pair<double, double> heights =
GetUtAndBsHeights(a->GetPosition().z, b->GetPosition().z);
176 double rxPow = txPowerDbm;
177 rxPow -=
GetLoss(cond, distance2d, distance3d, heights.first, heights.second);
226 loss =
GetLossLos(distance2d, distance3d, hUt, hBs);
234 loss =
GetLossNlos(distance2d, distance3d, hUt, hBs);
252 double o2iLossValue = 0;
253 double lowLossTw = 0;
255 double lowlossNormalVariate = 0;
257 double lConcrete = 0;
262 bool notFound =
false;
263 bool newCondition =
false;
270 newCondition = (it->second.m_condition != cond);
277 it =
m_o2iLossMap.insert(it, std::make_pair(key, newItem));
280 if (notFound || newCondition)
292 5 - 10 * log10(0.3 * std::pow(10, -lGlass / 10) + 0.7 * std::pow(10, -lConcrete / 10));
295 lossIn = 0.5 * distance2dIn;
300 o2iLossValue = lowLossTw + lossIn + lowlossNormalVariate;
304 o2iLossValue = it->second.m_o2iLoss;
308 it->second.m_o2iLoss = o2iLossValue;
309 it->second.m_condition = cond;
322 double o2iLossValue = 0;
323 double highLossTw = 0;
325 double highlossNormalVariate = 0;
326 double lIIRGlass = 0;
327 double lConcrete = 0;
332 bool notFound =
false;
333 bool newCondition =
false;
340 newCondition = (it->second.m_condition != cond);
347 it =
m_o2iLossMap.insert(it, std::make_pair(key, newItem));
350 if (notFound || newCondition)
363 highLossTw = 5 - 10 * log10(0.7 * std::pow(10, -lIIRGlass / 10) +
364 0.3 * std::pow(10, -lConcrete / 10));
367 lossIn = 0.5 * distance2dIn;
372 o2iLossValue = highLossTw + lossIn + highlossNormalVariate;
376 o2iLossValue = it->second.m_o2iLoss;
380 it->second.m_o2iLoss = o2iLossValue;
381 it->second.m_condition = cond;
399 NS_ABORT_MSG(
"If we have set the O2I condition, we shouldn't be here");
421 double shadowingValue;
426 bool notFound =
false;
427 bool newCondition =
false;
435 newCondition = (it->second.m_condition != cond);
446 if (notFound || newCondition)
454 Vector2D displacement(newDistance.x - it->second.m_distance.x,
455 newDistance.y - it->second.m_distance.y);
457 shadowingValue = R * it->second.m_shadowing + sqrt(1 - R * R) *
463 it->second.m_shadowing = shadowingValue;
464 it->second.m_distance = newDistance;
466 it->second.m_condition = cond;
468 return shadowingValue;
471std::pair<double, double>
476 double hUt = std::min(za, zb);
477 double hBs = std::max(za, zb);
479 return std::pair<double, double>(hUt, hBs);
499 double x = a.x - b.x;
500 double y = a.y - b.y;
501 double distance2D = sqrt(x * x + y * y);
515 uint32_t key = (((x1 + x2) * (x1 + x2 + 1)) / 2) + x2;
528 return b->GetPosition() - a->GetPosition();
532 return a->GetPosition() - b->GetPosition();
543 static TypeId tid =
TypeId(
"ns3::ThreeGppRmaPropagationLossModel")
545 .SetGroupName(
"Propagation")
547 .AddAttribute(
"AvgBuildingHeight",
548 "The average building height in meters.",
551 MakeDoubleChecker<double>(5.0, 50.0))
552 .AddAttribute(
"AvgStreetWidth",
553 "The average street width in meters.",
556 MakeDoubleChecker<double>(5.0, 50.0));
584 [[maybe_unused]])
const
599 "RMa scenario is valid for frequencies between 0.5 and 30 GHz.");
602 if (hUt < 1.0 || hUt > 10.0)
606 "The height of the UT should be between 1 and 10 m (see TR 38.901, Table 7.4.1-1)");
609 if (hBs < 10.0 || hBs > 150.0)
613 "The height of the BS should be between 10 and 150 m (see TR 38.901, Table 7.4.1-1)");
627 "Breakpoint distance is zero (divide-by-zero below); are either hBs or hUt = 0?");
630 if (distance2D < 10.0 || distance2D > 10.0e3)
633 NS_LOG_WARN(
"The 2D distance is outside the validity range, the pathloss value may not be "
639 if (distance2D <= distanceBp)
663 "RMa scenario is valid for frequencies between 0.5 and 30 GHz.");
666 if (hUt < 1.0 || hUt > 10.0)
670 "The height of the UT should be between 1 and 10 m (see TR 38.901, Table 7.4.1-1)");
673 if (hBs < 10.0 || hBs > 150.0)
677 "The height of the BS should be between 10 and 150 m (see TR 38.901, Table 7.4.1-1)");
688 if (distance2D < 10.0 || distance2D > 5.0e3)
691 NS_LOG_WARN(
"The 2D distance is outside the validity range, the pathloss value may not be "
696 double plNlos = 161.04 - 7.1 * log10(
m_w) + 7.5 * log10(
m_h) -
697 (24.37 - 3.7 * pow((
m_h / hBs), 2)) * log10(hBs) +
698 (43.42 - 3.1 * log10(hBs)) * (log10(distance3D) - 3.0) +
699 20.0 * log10(
m_frequency / 1e9) - (3.2 * pow(log10(11.75 * hUt), 2) - 4.97);
701 double loss = std::max(
GetLossLos(distance2D, distance3D, hUt, hBs), plNlos);
724 if (distance2d <= distanceBp)
750 double correlationDistance;
755 correlationDistance = 37;
759 correlationDistance = 120;
766 return correlationDistance;
772 double loss = 20.0 * log10(40.0 * M_PI * distance3D * frequency / 1e9 / 3.0) +
773 std::min(0.03 * pow(h, 1.72), 10.0) * log10(distance3D) -
774 std::min(0.044 * pow(h, 1.72), 14.77) + 0.002 * log10(h) * distance3D;
781 double distanceBp = 2.0 * M_PI * hA * hB * frequency /
M_C;
792 static TypeId tid =
TypeId(
"ns3::ThreeGppUmaPropagationLossModel")
794 .SetGroupName(
"Propagation")
820 if (distance2D > 18.0)
822 g = 5.0 / 4.0 * pow(distance2D / 100.0, 3) * exp(-distance2D / 150.0);
829 c = pow((hUt - 13.0) / 10.0, 1.5) * g;
833 double prob = 1.0 / (1.0 + c);
842 hE = (
double)floor(random / 3.0) * 3.0;
846 double distanceBp = 4 * (hBs - hE) * (hUt - hE) *
m_frequency /
M_C;
860 if (hUt < 1.5 || hUt > 22.5)
864 "The height of the UT should be between 1.5 and 22.5 m (see TR 38.901, Table 7.4.1-1)");
870 NS_LOG_WARN(
"The height of the BS should be equal to 25 m (see TR 38.901, Table 7.4.1-1)");
885 if (distance2D < 10.0 || distance2D > 5.0e3)
888 NS_LOG_WARN(
"The 2D distance is outside the validity range, the pathloss value may not be "
894 if (distance2D <= distanceBp)
897 loss = 28.0 + 22.0 * log10(distance3D) + 20.0 * log10(
m_frequency / 1e9);
902 loss = 28.0 + 40.0 * log10(distance3D) + 20.0 * log10(
m_frequency / 1e9) -
903 9.0 * log10(pow(distanceBp, 2) + pow(hBs - hUt, 2));
928 if (hUt < 1.5 || hUt > 22.5)
932 "The height of the UT should be between 1.5 and 22.5 m (see TR 38.901, Table 7.4.1-1)");
938 NS_LOG_WARN(
"The height of the BS should be equal to 25 m (see TR 38.901, Table 7.4.1-1)");
949 if (distance2D < 10.0 || distance2D > 5.0e3)
952 NS_LOG_WARN(
"The 2D distance is outside the validity range, the pathloss value may not be "
958 13.54 + 39.08 * log10(distance3D) + 20.0 * log10(
m_frequency / 1e9) - 0.6 * (hUt - 1.5);
959 double loss = std::max(
GetLossLos(distance2D, distance3D, hUt, hBs), plNlos);
994 double correlationDistance;
999 correlationDistance = 37;
1003 correlationDistance = 50;
1010 return correlationDistance;
1030 static TypeId tid =
TypeId(
"ns3::ThreeGppUmiStreetCanyonPropagationLossModel")
1032 .SetGroupName(
"Propagation")
1062 double distanceBp = 4 * (hBs - hE) * (hUt - hE) *
m_frequency /
M_C;
1084 if (hUt < 1.5 || hUt >= 10.0)
1088 "The height of the UT should be between 1.5 and 22.5 m (see TR 38.901, Table 7.4.1-1). "
1089 "We further assume hUT < hBS, then hUT is upper bounded by hBS, which should be 10 m");
1095 NS_LOG_WARN(
"The height of the BS should be equal to 10 m (see TR 38.901, Table 7.4.1-1)");
1110 if (distance2D < 10.0 || distance2D > 5.0e3)
1113 NS_LOG_WARN(
"The 2D distance is outside the validity range, the pathloss value may not be "
1119 if (distance2D <= distanceBp)
1122 loss = 32.4 + 21.0 * log10(distance3D) + 20.0 * log10(
m_frequency / 1e9);
1127 loss = 32.4 + 40.0 * log10(distance3D) + 20.0 * log10(
m_frequency / 1e9) -
1128 9.5 * log10(pow(distanceBp, 2) + pow(hBs - hUt, 2));
1145 if (hUt < 1.5 || hUt >= 10.0)
1149 "The height of the UT should be between 1.5 and 22.5 m (see TR 38.901, Table 7.4.1-1). "
1150 "We further assume hUT < hBS, then hUT is upper bounded by hBS, which should be 10 m");
1156 NS_LOG_WARN(
"The height of the BS should be equal to 10 m (see TR 38.901, Table 7.4.1-1)");
1167 if (distance2D < 10.0 || distance2D > 5.0e3)
1170 NS_LOG_WARN(
"The 2D distance is outside the validity range, the pathloss value may not be "
1176 22.4 + 35.3 * log10(distance3D) + 21.3 * log10(
m_frequency / 1e9) - 0.3 * (hUt - 1.5);
1177 double loss = std::max(
GetLossLos(distance2D, distance3D, hUt, hBs), plNlos);
1183std::pair<double, double>
1196 else if (zb == 10.0)
1206 hBs = std::max(za, zb);
1207 hUt = std::min(za, zb);
1210 return std::pair<double, double>(hUt, hBs);
1220 double shadowingStd;
1228 shadowingStd = 7.82;
1235 return shadowingStd;
1243 double correlationDistance;
1248 correlationDistance = 10;
1252 correlationDistance = 13;
1259 return correlationDistance;
1269 static TypeId tid =
TypeId(
"ns3::ThreeGppIndoorOfficePropagationLossModel")
1271 .SetGroupName(
"Propagation")
1305 if (distance3D < 1.0 || distance3D > 150.0)
1308 NS_LOG_WARN(
"The 3D distance is outside the validity range, the pathloss value may not be "
1313 double loss = 32.4 + 17.3 * log10(distance3D) + 20.0 * log10(
m_frequency / 1e9);
1329 if (distance3D < 1.0 || distance3D > 150.0)
1332 NS_LOG_WARN(
"The 3D distance is outside the validity range, the pathloss value may not be "
1337 double plNlos = 17.3 + 38.3 * log10(distance3D) + 24.9 * log10(
m_frequency / 1e9);
1338 double loss = std::max(
GetLossLos(distance2D, distance3D, hUt, hBs), plNlos);
1352 double shadowingStd;
1360 shadowingStd = 8.03;
1367 return shadowingStd;
1377 double correlationDistance;
1381 correlationDistance = 10;
1385 correlationDistance = 6;
1392 return correlationDistance;
double f(double x, void *params)
AttributeValue implementation for Boolean.
@ LOW
Low Penetration Losses.
@ HIGH
High Penetration Losses.
LosConditionValue
Possible values for Line-of-Sight condition.
@ NLOSv
Non Line of Sight due to a vehicle.
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Hold objects of type Ptr<T>.
Models the propagation loss through a transmission medium.
Smart pointer class similar to boost::intrusive_ptr.
void SetStream(int64_t stream)
Specifies the stream number for the RngStream.
Implements the pathloss model defined in 3GPP TR 38.901, Table 7.4.1-1 for the Indoor Office scenario...
static TypeId GetTypeId()
Get the type ID.
double GetShadowingCorrelationDistance(ChannelCondition::LosConditionValue cond) const override
Returns the shadow fading correlation distance.
double GetShadowingStd(Ptr< MobilityModel > a, Ptr< MobilityModel > b, ChannelCondition::LosConditionValue cond) const override
Returns the shadow fading standard deviation.
double GetO2iDistance2dIn() const override
Returns the minimum of the two independently generated distances according to the uniform distributio...
~ThreeGppIndoorOfficePropagationLossModel() override
Destructor.
double GetLossNlos(double distance2D, double distance3D, double hUt, double hBs) const override
Computes the pathloss between a and b considering that the line of sight is obstructed.
ThreeGppIndoorOfficePropagationLossModel()
Constructor.
double GetLossLos(double distance2D, double distance3D, double hUt, double hBs) const override
Computes the pathloss between a and b considering that the line of sight is not obstructed.
Base class for the 3GPP propagation models.
Ptr< ChannelConditionModel > GetChannelConditionModel() const
Returns the associated channel condition model.
virtual double GetO2iLowPenetrationLoss(Ptr< MobilityModel > a, Ptr< MobilityModel > b, ChannelCondition::LosConditionValue cond) const
Retrieves the o2i building penetration loss value by looking at m_o2iLossMap.
double GetLoss(Ptr< ChannelCondition > cond, double distance2D, double distance3D, double hUt, double hBs) const
Computes the pathloss between a and b.
Ptr< UniformRandomVariable > m_randomO2iVar2
a uniform random variable for the calculation of the indoor loss, see TR38.901 Table 7....
double GetFrequency() const
Return the current central frequency.
Ptr< UniformRandomVariable > m_randomO2iVar1
a uniform random variable for the calculation of the indoor loss, see TR38.901 Table 7....
virtual double GetLossNlos(double distance2D, double distance3D, double hUt, double hBs) const =0
Computes the pathloss between a and b considering that the line of sight is obstructed.
double GetShadowing(Ptr< MobilityModel > a, Ptr< MobilityModel > b, ChannelCondition::LosConditionValue cond) const
Retrieves the shadowing value by looking at m_shadowingMap.
static double Calculate2dDistance(Vector a, Vector b)
Computes the 2D distance between two 3D vectors.
void SetChannelConditionModel(Ptr< ChannelConditionModel > model)
Set the channel condition model used to determine the channel state (e.g., the LOS/NLOS condition)
std::unordered_map< uint32_t, ShadowingMapItem > m_shadowingMap
map to store the shadowing values
virtual double GetLossLos(double distance2D, double distance3D, double hUt, double hBs) const =0
Computes the pathloss between a and b considering that the line of sight is not obstructed.
virtual bool DoIsO2iLowPenetrationLoss(Ptr< const ChannelCondition > cond) const
Indicates the condition of the o2i building penetration loss (defined in 3GPP TR 38....
int64_t DoAssignStreams(int64_t stream) override
Assign a fixed random variable stream number to the random variables used by this model.
virtual double GetShadowingCorrelationDistance(ChannelCondition::LosConditionValue cond) const =0
Returns the shadow fading correlation distance.
ThreeGppPropagationLossModel()
Constructor.
Ptr< NormalRandomVariable > m_normRandomVariable
normal random variable
static TypeId GetTypeId()
Get the type ID.
Ptr< ChannelConditionModel > m_channelConditionModel
pointer to the channel condition model
~ThreeGppPropagationLossModel() override
Destructor.
std::unordered_map< uint32_t, O2iLossMapItem > m_o2iLossMap
map to store the o2i Loss values
virtual double GetO2iDistance2dIn() const =0
Returns the minimum of the two independently generated distances according to the uniform distributio...
virtual double GetO2iHighPenetrationLoss(Ptr< MobilityModel > a, Ptr< MobilityModel > b, ChannelCondition::LosConditionValue cond) const
Retrieves the o2i building penetration loss value by looking at m_o2iLossMap.
bool IsO2iLowPenetrationLoss(Ptr< const ChannelCondition > cond) const
Return true if the O2I Building Penetration loss corresponds to a low loss condition.
void SetFrequency(double f)
Set the central frequency of the model.
void DoDispose() override
Destructor implementation.
static uint32_t GetKey(Ptr< MobilityModel > a, Ptr< MobilityModel > b)
Returns an unique key for the channel between a and b.
Ptr< NormalRandomVariable > m_normalO2iLowLossVar
a normal random variable for the calculation of 02i low loss, see TR38.901 Table 7....
double m_frequency
operating frequency in Hz
bool m_enforceRanges
strictly enforce TR 38.901 parameter ranges
virtual double GetShadowingStd(Ptr< MobilityModel > a, Ptr< MobilityModel > b, ChannelCondition::LosConditionValue cond) const =0
Returns the shadow fading standard deviation.
virtual double GetLossNlosv(double distance2D, double distance3D, double hUt, double hBs) const
Computes the pathloss between a and b considering that the line of sight is obstructed by a vehicle.
Ptr< NormalRandomVariable > m_normalO2iHighLossVar
a normal random variable for the calculation of 02i high loss, see TR38.901 Table 7....
virtual std::pair< double, double > GetUtAndBsHeights(double za, double zb) const
Determines hUT and hBS.
double DoCalcRxPower(double txPowerDbm, Ptr< MobilityModel > a, Ptr< MobilityModel > b) const override
Computes the received power by applying the pathloss model described in 3GPP TR 38....
bool m_shadowingEnabled
enable/disable shadowing
static Vector GetVectorDifference(Ptr< MobilityModel > a, Ptr< MobilityModel > b)
Get the difference between the node position.
bool m_buildingPenLossesEnabled
enable/disable building penetration losses
Implements the pathloss model defined in 3GPP TR 38.901, Table 7.4.1-1 for the RMa scenario.
double GetShadowingStd(Ptr< MobilityModel > a, Ptr< MobilityModel > b, ChannelCondition::LosConditionValue cond) const override
Returns the shadow fading standard deviation.
static double Pl1(double frequency, double distance3D, double h, double w)
Computes the PL1 formula for the RMa scenario.
double GetO2iDistance2dIn() const override
Returns the minimum of the two independently generated distances according to the uniform distributio...
ThreeGppRmaPropagationLossModel()
Constructor.
double GetLossLos(double distance2D, double distance3D, double hUt, double hBs) const override
Computes the pathloss between a and b considering that the line of sight is not obstructed.
double GetLossNlos(double distance2D, double distance3D, double hUt, double hBs) const override
Computes the pathloss between a and b considering that the line of sight is obstructed.
~ThreeGppRmaPropagationLossModel() override
Destructor.
double GetShadowingCorrelationDistance(ChannelCondition::LosConditionValue cond) const override
Returns the shadow fading correlation distance.
double m_h
average building height in meters
static TypeId GetTypeId()
Get the type ID.
static double GetBpDistance(double frequency, double hA, double hB)
Computes the breakpoint distance for the RMa scenario.
double m_w
average street width in meters
bool DoIsO2iLowPenetrationLoss(Ptr< const ChannelCondition > cond) const override
Indicates the condition of the o2i building penetration loss (defined in 3GPP TR 38....
Implements the pathloss model defined in 3GPP TR 38.901, Table 7.4.1-1 for the UMa scenario.
static TypeId GetTypeId()
Get the type ID.
double GetLossLos(double distance2D, double distance3D, double hUt, double hBs) const override
Computes the pathloss between a and b considering that the line of sight is not obstructed.
double GetBpDistance(double hUt, double hBs, double distance2D) const
Computes the breakpoint distance.
~ThreeGppUmaPropagationLossModel() override
Destructor.
ThreeGppUmaPropagationLossModel()
Constructor.
int64_t DoAssignStreams(int64_t stream) override
Assign a fixed random variable stream number to the random variables used by this model.
double GetLossNlos(double distance2D, double distance3D, double hUt, double hBs) const override
Computes the pathloss between a and b considering that the line of sight is obstructed.
double GetO2iDistance2dIn() const override
Returns the minimum of the two independently generated distances according to the uniform distributio...
Ptr< UniformRandomVariable > m_uniformVar
a uniform random variable used for the computation of the breakpoint distance
double GetShadowingStd(Ptr< MobilityModel > a, Ptr< MobilityModel > b, ChannelCondition::LosConditionValue cond) const override
Returns the shadow fading standard deviation.
double GetShadowingCorrelationDistance(ChannelCondition::LosConditionValue cond) const override
Returns the shadow fading correlation distance.
Implements the pathloss model defined in 3GPP TR 38.901, Table 7.4.1-1 for the UMi-Street Canyon scen...
std::pair< double, double > GetUtAndBsHeights(double za, double zb) const override
Determines hUT and hBS.
~ThreeGppUmiStreetCanyonPropagationLossModel() override
Destructor.
double GetLossNlos(double distance2D, double distance3D, double hUt, double hBs) const override
Computes the pathloss between a and b considering that the line of sight is obstructed.
double GetShadowingStd(Ptr< MobilityModel > a, Ptr< MobilityModel > b, ChannelCondition::LosConditionValue cond) const override
Returns the shadow fading standard deviation.
double GetBpDistance(double hUt, double hBs, double distance2D) const
Computes the breakpoint distance.
double GetO2iDistance2dIn() const override
Returns the minimum of the two independently generated distances according to the uniform distributio...
ThreeGppUmiStreetCanyonPropagationLossModel()
Constructor.
double GetLossLos(double distance2D, double distance3D, double hUt, double hBs) const override
Computes the pathloss between a and b considering that the line of sight is not obstructed.
static TypeId GetTypeId()
Get the type ID.
double GetShadowingCorrelationDistance(ChannelCondition::LosConditionValue cond) const override
Returns the shadow fading correlation distance.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
double GetLength() const
Compute the length (magnitude) of the vector.
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Ptr< const AttributeChecker > MakeBooleanChecker()
Ptr< const AttributeAccessor > MakeDoubleAccessor(T1 a1)
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
#define NS_ABORT_MSG_UNLESS(cond, msg)
Abnormal program termination if a condition is false, with a message.
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
#define NS_ABORT_MSG(msg)
Unconditional abnormal program termination with a message.
#define NS_ABORT_MSG_IF(cond, msg)
Abnormal program termination if a condition is true, with a message.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_LOG_WARN(msg)
Use NS_LOG to output a message of level LOG_WARN.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static const double M_C
propagation velocity in free space
double CalculateDistance(const Vector3D &a, const Vector3D &b)
Define a struct for the m_o2iLossMap entries.
Define a struct for the m_shadowingMap entries.