23 #include "../utils/satellite-env-variables.h"
33 NS_LOG_COMPONENT_DEFINE(
"SatPositionInputTraceContainer");
38 NS_OBJECT_ENSURE_REGISTERED(SatPositionInputTraceContainer);
43 static TypeId tid = TypeId(
"ns3::SatPositionInputTraceContainer")
45 .AddConstructor<SatPositionInputTraceContainer>();
52 NS_LOG_FUNCTION(
this);
59 NS_LOG_FUNCTION(
this);
64 NS_LOG_FUNCTION(
this);
72 NS_LOG_FUNCTION(
this);
76 SatBaseTraceContainer::DoDispose();
82 NS_LOG_FUNCTION(
this);
90 Ptr<SatInputFileStreamTimeDoubleContainer>
93 NS_LOG_FUNCTION(
this << filename);
95 std::pair<container_t::iterator, bool> result =
m_container.insert(
96 std::make_pair(filename,
97 CreateObject<SatInputFileStreamTimeDoubleContainer>(
102 if (result.second ==
false)
104 NS_FATAL_ERROR(
"SatPositionInputTraceContainer::AddNode failed");
107 return result.first->second;
110 Ptr<SatInputFileStreamTimeDoubleContainer>
113 NS_LOG_FUNCTION(
this);
115 container_t::iterator iter =
m_container.find(key);
129 NS_LOG_FUNCTION(
this);
131 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.