21 #ifndef SATELLITE_MOBILITY_OBSERVER_H
22 #define SATELLITE_MOBILITY_OBSERVER_H
28 #include <ns3/object.h>
68 Ptr<SatMobilityModel> geoSatMobility,
69 bool isRegenerative =
false);
89 Ptr<PropagationDelayModel> anotherDelayModel,
90 Ptr<SatMobilityModel> anotherMobility);
148 void PositionChanged(std::string context, Ptr<const SatMobilityModel> position);
Observes given mobilities and keeps track of certain wanted properties.
void(* PropertyChangedCallback)(Ptr< const SatMobilityObserver > mobilityObserver)
Callback signature for PropertyChanged trace source.
Ptr< SatMobilityModel > m_geoSatMobility
virtual ~SatMobilityObserver()
Destructor of the mobility observer.
virtual void DoDispose(void)
Dispose of this class instance.
void UpdateElevationAngle()
Update elevation angle.
SatMobilityObserver()
Default constructor of the mobility observer (should not be called)
void ObserveTimingAdvance(Ptr< PropagationDelayModel > ownDelayModel, Ptr< PropagationDelayModel > anotherDelayModel, Ptr< SatMobilityModel > anotherMobility)
Enable observing of the timing advance.
Time GetTimingAdvance(void)
Get timing advance.
void PositionChanged(std::string context, Ptr< const SatMobilityModel > position)
Listener (callback) for mobility position changes.
void SatelliteStatusChanged()
Do actions needed when satellite position is changed.
void UpdateTimingAdvance()
Update timing advance.
double m_maxDistanceToSatellite
double GetVelocity(void)
Get velocity of own movement (speed).
static TypeId GetTypeId(void)
Get the type ID.
Ptr< SatMobilityModel > m_anotherMobility
bool m_updateTimingAdvance
void NotifyPropertyChange(void) const
Notify listeners about some property is changed.
double GetElevationAngle(void)
Get elevation angle.
TracedCallback< Ptr< const SatMobilityObserver > > m_propertyChangeTrace
Used to alert subscribers that a change in some observed property has occurred.
Ptr< PropagationDelayModel > m_anotherProgDelayModel
Ptr< PropagationDelayModel > m_ownProgDelayModel
Ptr< SatMobilityModel > m_ownMobility
bool m_updateElevationAngle
TypeId GetInstanceTypeId(void) const
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.