ns-3
ns3::WifiPhyStateHelper Class Reference

#include <wifi-phy-state-helper.h>

Inheritance diagram for ns3::WifiPhyStateHelper:
Collaboration diagram for ns3::WifiPhyStateHelper:

List of all members.

Public Member Functions

void SetReceiveOkCallback (WifiPhy::RxOkCallback callback)
void SetReceiveErrorCallback (WifiPhy::RxErrorCallback callback)
void RegisterListener (WifiPhyListener *listener)
enum WifiPhy::State GetState (void)
bool IsStateCcaBusy (void)
bool IsStateIdle (void)
bool IsStateBusy (void)
bool IsStateRx (void)
bool IsStateTx (void)
bool IsStateSwitching (void)
Time GetStateDuration (void)
Time GetDelayUntilIdle (void)
Time GetLastRxStartTime (void) const
void SwitchToTx (Time txDuration, Ptr< const Packet > packet, WifiMode txMode, WifiPreamble preamble, uint8_t txPower)
void SwitchToRx (Time rxDuration)
void SwitchToChannelSwitching (Time switchingDuration)
void SwitchFromRxEndOk (Ptr< Packet > packet, double snr, WifiMode mode, enum WifiPreamble preamble)
void SwitchFromRxEndError (Ptr< const Packet > packet, double snr)
void SwitchMaybeToCcaBusy (Time duration)
- Public Member Functions inherited from ns3::Object
virtual TypeId GetInstanceTypeId (void) const
template<typename T >
Ptr< T > GetObject (void) const
template<typename T >
Ptr< T > GetObject (TypeId tid) const
void Dispose (void)
void AggregateObject (Ptr< Object > other)
AggregateIterator GetAggregateIterator (void) const
void Start (void)
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount (const SimpleRefCount &o)
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
uint32_t GetReferenceCount (void) const
- Public Member Functions inherited from ns3::ObjectBase
void SetAttribute (std::string name, const AttributeValue &value)
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
void GetAttribute (std::string name, AttributeValue &value) const
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
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)
 This method returns the TypeId associated to ns3::WifiPhyStateHelper.

Public Attributes

TracedCallback< Time, Time,
enum WifiPhy::State
m_stateLogger

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
virtual void NotifyNewAggregate (void)
virtual void DoStart (void)
virtual void DoDispose (void)
 Object (const Object &o)

Detailed Description

This objects implements the PHY state machine of the Wifi device.


Member Function Documentation

TypeId ns3::WifiPhyStateHelper::GetTypeId ( void  )
static

This method returns the TypeId associated to ns3::WifiPhyStateHelper.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/State

No Attributes defined for this type.
TraceSources defined for this type:

  • State: The state of the PHY layer
  • RxOk: A packet has been received successfully.
  • RxError: A packet has been received unsuccessfully.
  • Tx: Packet transmission is starting.

Reimplemented from ns3::Object.

References ns3::MakeTraceSourceAccessor(), and ns3::TypeId::SetParent().


The documentation for this class was generated from the following files: