|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
21 #ifndef UAN_TRANSDUCER_HD_H
22 #define UAN_TRANSDUCER_HD_H
25 #include "ns3/simulator.h"
52 virtual bool IsRx (
void)
const;
53 virtual bool IsTx (
void)
const;
64 virtual void Clear (
void);
a unique identifier for an interface.
virtual void DoDispose()
Destructor implementation.
An identifier for simulation events.
The power delay profile returned by propagation models.
Time m_endTxTime
Time at which transmission will be completed.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ArrivalList m_arrivalList
List of arriving packets which overlap in time.
Half duplex implementation of transducer object.
UanTransducerHd()
Constructor.
virtual const ArrivalList & GetArrivalList(void) const
Get the list of overlapped (in time) packets at this transducer.
bool m_cleared
Flab when we've been cleared.
virtual double GetRxGainDb(void)
Get the receiver gain added to signal at receiver in dB.
virtual double ApplyRxGainDb(double rxPowerDb, UanTxMode mode)
Apply receiver gain in dB to the received power.
virtual void SetChannel(Ptr< UanChannel > chan)
Attach this transducer to a channel.
std::list< Ptr< UanPhy > > UanPhyList
List of UanPhy objects.
Class consisting of packet arrival information (Time, RxPower, mode, PDP).
virtual void Clear(void)
Clears all pointer references.
virtual void SetRxGainDb(double gainDb)
Set the receiver gain.
virtual Ptr< UanChannel > GetChannel(void) const
Get the attached channel.
virtual bool IsTx(void) const
Is the state transmitting?
Simulation virtual time values and global simulation resolution.
virtual void Receive(Ptr< Packet > packet, double rxPowerDb, UanTxMode txMode, UanPdp pdp)
Notify this object that a new packet has arrived at this nodes location.
Abstraction of packet modulation information.
virtual bool IsRx(void) const
Is the state receiving (or available for reception)?
void RemoveArrival(UanPacketArrival arrival)
Remove an entry from the arrival list.
State m_state
Transducer state.
double m_rxGainDb
Receive gain in dB.
Ptr< UanChannel > m_channel
The attached channel.
std::list< UanPacketArrival > ArrivalList
List of arriving packets overlapping in time.
virtual const UanPhyList & GetPhyList(void) const
Get the list of physical layer above this transducer.
virtual void AddPhy(Ptr< UanPhy >)
Attach a physical network layer above this transducer.
UanPhyList m_phyList
List of physical layers attached above this tranducer.
virtual ~UanTransducerHd()
Dummy destructor, see DoDispose.
virtual State GetState(void) const
Get the transducer state.
Virtual base for Transducer objects.
static TypeId GetTypeId(void)
Register this type.
void EndTx(void)
Handle end of transmission event.
virtual void Transmit(Ptr< UanPhy > src, Ptr< Packet > packet, double txPowerDb, UanTxMode txMode)
Transmit a packet from this transducer.
EventId m_endTxEvent
Event scheduled for end of transmission.