Virtual base for Transducer objects. More...
#include <uan-transducer.h>
Public Types | |
typedef std::list < UanPacketArrival > | ArrivalList |
Arrival list is a standard template library list of UanPacketArrivals objects. | |
enum | State { TX, RX } |
Transducer state (receiving or transmitting) More... | |
typedef std::list< Ptr< UanPhy > > | UanPhyList |
UanPhyList is a standard template library list of UanPhy objects. |
Public Member Functions | |
virtual void | AddPhy (Ptr< UanPhy > phy)=0 |
virtual void | Clear (void)=0 |
virtual const ArrivalList & | GetArrivalList (void) const =0 |
virtual Ptr< UanChannel > | GetChannel (void) const =0 |
virtual const UanPhyList & | GetPhyList (void) const =0 |
virtual State | GetState (void) const =0 |
virtual bool | IsRx (void) const =0 |
virtual bool | IsTx (void) const =0 |
virtual void | Receive (Ptr< Packet > packet, double rxPowerDb, UanTxMode txMode, UanPdp pdp)=0 |
Receive Notify this object that a new packet has arrived at this nodes location. | |
virtual void | SetChannel (Ptr< UanChannel > chan)=0 |
virtual void | Transmit (Ptr< UanPhy > src, Ptr< Packet > packet, double txPowerDb, UanTxMode txMode)=0 |
Transmit a packet from this transducer. | |
![]() | |
Object () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
AggregateIterator | GetAggregateIterator (void) const |
virtual TypeId | GetInstanceTypeId (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Start (void) |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
![]() | |
virtual | ~ObjectBase () |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Additional Inherited Members | |
![]() | |
Object (const Object &o) | |
virtual void | DoDispose (void) |
virtual void | DoStart (void) |
virtual void | NotifyNewAggregate (void) |
Virtual base for Transducer objects.
ns3::UanTransducer is accessible through the following paths with Config::Set and Config::Connect:
No Attributes are defined for this type.
No TraceSources are defined for this type.
The Transducer was added to support classes such as UanPhyDual. In a generic Phy setting, this class functions to hold information about all possibly interfering packets.
Definition at line 123 of file uan-transducer.h.
Arrival list is a standard template library list of UanPacketArrivals objects.
Definition at line 138 of file uan-transducer.h.
typedef std::list<Ptr<UanPhy> > ns3::UanTransducer::UanPhyList |
UanPhyList is a standard template library list of UanPhy objects.
Definition at line 142 of file uan-transducer.h.
Transducer state (receiving or transmitting)
Definition at line 131 of file uan-transducer.h.
phy | Add phy above this transducer (may connect > 1 Phy to a transducer) |
Implemented in ns3::UanTransducerHd.
Referenced by ns3::UanPhyGen::SetTransducer().
|
pure virtual |
Clears all pointer references
Implemented in ns3::UanTransducerHd.
Referenced by ns3::UanNetDevice::Clear(), and ns3::UanPhyGen::Clear().
|
pure virtual |
Implemented in ns3::UanTransducerHd.
Referenced by ns3::UanPhyGen::CalculateSinrDb(), ns3::UanMacCw::Enqueue(), and ns3::UanPhyGen::GetInterferenceDb().
|
pure virtual |
Implemented in ns3::UanTransducerHd.
|
pure virtual |
Implemented in ns3::UanTransducerHd.
|
pure virtual |
Implemented in ns3::UanTransducerHd.
|
static |
Reimplemented from ns3::Object.
Reimplemented in ns3::UanTransducerHd.
Definition at line 27 of file uan-transducer.cc.
References ns3::TypeId::SetParent().
|
pure virtual |
Implemented in ns3::UanTransducerHd.
|
pure virtual |
Implemented in ns3::UanTransducerHd.
|
pure virtual |
Receive Notify this object that a new packet has arrived at this nodes location.
packet | Packet arriving |
rxPowerDb | Signal power in dB of arriving packet |
txMode | Mode arriving packet is using |
pdp | PDP of arriving signal |
Implemented in ns3::UanTransducerHd.
|
pure virtual |
chan | Channel this transducer is attached to |
Implemented in ns3::UanTransducerHd.
Referenced by ns3::UanNetDevice::SetChannel(), and ns3::UanNetDevice::SetTransducer().
|
pure virtual |
Transmit a packet from this transducer.
src | Source PHY |
packet | Packet to transmit |
txPowerDb | Outgoing Tx power of packet |
txMode | Mode to transmit packet with. |
Implemented in ns3::UanTransducerHd.
Referenced by ns3::UanPhyGen::SendPacket().