23 #include "../utils/satellite-env-variables.h"
27 NS_LOG_COMPONENT_DEFINE(
"SatPositionInputTraceContainer");
32 NS_OBJECT_ENSURE_REGISTERED(SatPositionInputTraceContainer);
37 static TypeId tid = TypeId(
"ns3::SatPositionInputTraceContainer")
39 .AddConstructor<SatPositionInputTraceContainer>();
46 NS_LOG_FUNCTION(
this);
53 NS_LOG_FUNCTION(
this);
58 NS_LOG_FUNCTION(
this);
66 NS_LOG_FUNCTION(
this);
70 SatBaseTraceContainer::DoDispose();
76 NS_LOG_FUNCTION(
this);
84 Ptr<SatInputFileStreamTimeDoubleContainer>
87 NS_LOG_FUNCTION(
this << filename);
89 std::pair<container_t::iterator, bool> result =
m_container.insert(
90 std::make_pair(filename,
91 CreateObject<SatInputFileStreamTimeDoubleContainer>(
96 if (result.second ==
false)
98 NS_FATAL_ERROR(
"SatPositionInputTraceContainer::AddNode failed");
101 return result.first->second;
104 Ptr<SatInputFileStreamTimeDoubleContainer>
107 NS_LOG_FUNCTION(
this);
109 container_t::iterator iter =
m_container.find(key);
123 NS_LOG_FUNCTION(
this);
125 std::vector<double> row =
FindNode(key)->InterpolateBetweenClosestTimeSamples();
GeoCoordinate class is used to store and operate with geodetic coordinates.
Base class for trace containers such as interference or fading traces.
static const uint32_t POSITION_TRACE_DEFAULT_ALTITUDE_INDEX
Default altitude value index for positions traces.
static const uint32_t POSITION_TRACE_DEFAULT_LATITUDE_INDEX
Default latitude value index for positions traces.
static const uint32_t POSITION_TRACE_DEFAULT_LONGITUDE_INDEX
Default longitude value index for positions traces.
static const uint32_t POSITION_TRACE_DEFAULT_NUMBER_OF_COLUMNS
Default number of columns for position traces.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.