#include <ns2ext-wifi-phy-state-helper.h>
Definition at line 31 of file ns2ext-wifi-phy-state-helper.h.
typedef std::vector<WifiPhyListener *> ns3::Ns2ExtWifiPhyStateHelper::Listeners [private] |
Definition at line 62 of file ns2ext-wifi-phy-state-helper.h.
ns3::Ns2ExtWifiPhyStateHelper::Ns2ExtWifiPhyStateHelper | ( | ) |
Definition at line 56 of file ns2ext-wifi-phy-state-helper.cc.
References NS_LOG_FUNCTION.
void ns3::Ns2ExtWifiPhyStateHelper::CallRxErrorTrace | ( | Ptr< const Packet > | packet, | |
WifiPhy::RxErrorReason | rxErrorReason | |||
) |
Definition at line 357 of file ns2ext-wifi-phy-state-helper.cc.
References m_rxErrorTrace.
void ns3::Ns2ExtWifiPhyStateHelper::CallRxStartTrace | ( | Ptr< const Packet > | packet, | |
const WifiPhyRxTag & | rxTag | |||
) |
Definition at line 351 of file ns2ext-wifi-phy-state-helper.cc.
References m_rxStartTrace.
void ns3::Ns2ExtWifiPhyStateHelper::DoSwitchFromRx | ( | void | ) | [private] |
Definition at line 315 of file ns2ext-wifi-phy-state-helper.cc.
References IsStateCcaBusy(), IsStateIdle(), IsStateRx(), m_previousStateChangeTime, m_rxing, m_startRx, m_stateLogger, ns3::Now(), NS_ASSERT, and ns3::WifiPhy::RX.
Referenced by SwitchFromRxEndError(), and SwitchFromRxEndOk().
Time ns3::Ns2ExtWifiPhyStateHelper::GetDelayUntilIdle | ( | void | ) |
Definition at line 124 of file ns2ext-wifi-phy-state-helper.cc.
References ns3::WifiPhy::CCA_BUSY, GetState(), ns3::WifiPhy::IDLE, m_endCcaBusy, m_endRx, m_endTx, ns3::Max(), ns3::Now(), NS_ASSERT, ns3::WifiPhy::RX, ns3::Seconds(), and ns3::WifiPhy::TX.
Time ns3::Ns2ExtWifiPhyStateHelper::GetLastRxStartTime | ( | void | ) | const |
Definition at line 152 of file ns2ext-wifi-phy-state-helper.cc.
References m_startRx.
enum WifiPhy::State ns3::Ns2ExtWifiPhyStateHelper::GetState | ( | void | ) |
Definition at line 158 of file ns2ext-wifi-phy-state-helper.cc.
References ns3::WifiPhy::CCA_BUSY, ns3::WifiPhy::IDLE, m_endCcaBusy, m_endTx, m_rxing, ns3::Simulator::Now(), ns3::WifiPhy::RX, and ns3::WifiPhy::TX.
Referenced by GetDelayUntilIdle(), IsStateBusy(), IsStateCcaBusy(), IsStateIdle(), IsStateRx(), IsStateSyncing(), IsStateTx(), SwitchMaybeToCcaBusy(), SwitchToRx(), and SwitchToTx().
Time ns3::Ns2ExtWifiPhyStateHelper::GetStateDuration | ( | void | ) |
Definition at line 118 of file ns2ext-wifi-phy-state-helper.cc.
References m_previousStateChangeTime, and ns3::Now().
TypeId ns3::Ns2ExtWifiPhyStateHelper::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::Ns2ExtWifiPhyStateHelper.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
TraceSources defined for this type:
Reimplemented from ns3::Object.
Definition at line 33 of file ns2ext-wifi-phy-state-helper.cc.
References ns3::TypeId::AddTraceSource(), m_rxErrorTrace, m_rxOkTrace, m_rxStartTrace, m_stateLogger, m_txTrace, ns3::MakeTraceSourceAccessor(), and ns3::TypeId::SetParent().
bool ns3::Ns2ExtWifiPhyStateHelper::IsStateBusy | ( | void | ) |
Definition at line 97 of file ns2ext-wifi-phy-state-helper.cc.
References GetState(), and ns3::WifiPhy::IDLE.
bool ns3::Ns2ExtWifiPhyStateHelper::IsStateCcaBusy | ( | void | ) |
Definition at line 86 of file ns2ext-wifi-phy-state-helper.cc.
References ns3::WifiPhy::CCA_BUSY, and GetState().
Referenced by DoSwitchFromRx(), and SwitchToRx().
bool ns3::Ns2ExtWifiPhyStateHelper::IsStateIdle | ( | void | ) |
Definition at line 92 of file ns2ext-wifi-phy-state-helper.cc.
References GetState(), and ns3::WifiPhy::IDLE.
Referenced by DoSwitchFromRx(), and SwitchToRx().
bool ns3::Ns2ExtWifiPhyStateHelper::IsStateRx | ( | void | ) |
Definition at line 107 of file ns2ext-wifi-phy-state-helper.cc.
References GetState(), and ns3::WifiPhy::RX.
Referenced by DoSwitchFromRx(), and SwitchToRx().
bool ns3::Ns2ExtWifiPhyStateHelper::IsStateSyncing | ( | void | ) |
Definition at line 102 of file ns2ext-wifi-phy-state-helper.cc.
References GetState(), and ns3::WifiPhy::SYNCING.
bool ns3::Ns2ExtWifiPhyStateHelper::IsStateTx | ( | void | ) |
Definition at line 112 of file ns2ext-wifi-phy-state-helper.cc.
References GetState(), and ns3::WifiPhy::TX.
void ns3::Ns2ExtWifiPhyStateHelper::LogPreviousIdleAndCcaBusyStates | ( | void | ) | [private] |
Definition at line 216 of file ns2ext-wifi-phy-state-helper.cc.
References ns3::WifiPhy::CCA_BUSY, ns3::WifiPhy::IDLE, m_endCcaBusy, m_endRx, m_endTx, m_startCcaBusy, m_stateLogger, ns3::Max(), ns3::Now(), and NS_ASSERT.
Referenced by SwitchMaybeToCcaBusy(), SwitchToRx(), and SwitchToTx().
void ns3::Ns2ExtWifiPhyStateHelper::NotifyMaybeCcaBusyStart | ( | Time | duration | ) | [private] |
Definition at line 208 of file ns2ext-wifi-phy-state-helper.cc.
References m_listeners.
Referenced by SwitchMaybeToCcaBusy().
void ns3::Ns2ExtWifiPhyStateHelper::NotifyRxEndError | ( | void | ) | [private] |
Definition at line 201 of file ns2ext-wifi-phy-state-helper.cc.
References m_listeners.
Referenced by SwitchFromRxEndError().
void ns3::Ns2ExtWifiPhyStateHelper::NotifyRxEndOk | ( | void | ) | [private] |
Definition at line 194 of file ns2ext-wifi-phy-state-helper.cc.
References m_listeners.
Referenced by SwitchFromRxEndOk().
void ns3::Ns2ExtWifiPhyStateHelper::NotifyRxStart | ( | Time | duration | ) | [private] |
Definition at line 187 of file ns2ext-wifi-phy-state-helper.cc.
References m_listeners.
Referenced by SwitchToRx().
void ns3::Ns2ExtWifiPhyStateHelper::NotifyTxStart | ( | Time | duration | ) | [private] |
Definition at line 180 of file ns2ext-wifi-phy-state-helper.cc.
References m_listeners.
Referenced by SwitchToTx().
void ns3::Ns2ExtWifiPhyStateHelper::NotifyWakeup | ( | void | ) | [private] |
void ns3::Ns2ExtWifiPhyStateHelper::RegisterListener | ( | WifiPhyListener * | listener | ) |
Definition at line 80 of file ns2ext-wifi-phy-state-helper.cc.
References m_listeners.
void ns3::Ns2ExtWifiPhyStateHelper::SetReceiveErrorCallback | ( | WifiPhy::RxErrorCallback | callback | ) |
Definition at line 75 of file ns2ext-wifi-phy-state-helper.cc.
References m_rxErrorCallback.
void ns3::Ns2ExtWifiPhyStateHelper::SetReceiveOkCallback | ( | WifiPhy::RxOkCallback | callback | ) |
Definition at line 70 of file ns2ext-wifi-phy-state-helper.cc.
References m_rxOkCallback.
Definition at line 303 of file ns2ext-wifi-phy-state-helper.cc.
References DoSwitchFromRx(), ns3::Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::IsNull(), m_rxErrorCallback, m_rxErrorTrace, NotifyRxEndError(), and ns3::WifiPhy::RXERROR_BAD_SIGNAL.
Definition at line 292 of file ns2ext-wifi-phy-state-helper.cc.
References DoSwitchFromRx(), ns3::Callback< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::IsNull(), m_rxOkCallback, m_rxOkTrace, and NotifyRxEndOk().
void ns3::Ns2ExtWifiPhyStateHelper::SwitchMaybeToCcaBusy | ( | Time | duration | ) |
Definition at line 328 of file ns2ext-wifi-phy-state-helper.cc.
References ns3::WifiPhy::CCA_BUSY, GetState(), ns3::WifiPhy::IDLE, LogPreviousIdleAndCcaBusyStates(), m_endCcaBusy, m_startCcaBusy, NotifyMaybeCcaBusyStart(), ns3::Now(), NS_ASSERT, ns3::WifiPhy::RX, and ns3::WifiPhy::TX.
void ns3::Ns2ExtWifiPhyStateHelper::SwitchToRx | ( | Time | rxDuration | ) |
Definition at line 264 of file ns2ext-wifi-phy-state-helper.cc.
References ns3::WifiPhy::CCA_BUSY, GetState(), ns3::WifiPhy::IDLE, IsStateCcaBusy(), IsStateIdle(), IsStateRx(), LogPreviousIdleAndCcaBusyStates(), m_endRx, m_endTx, m_previousStateChangeTime, m_rxing, m_startCcaBusy, m_startRx, m_stateLogger, ns3::Max(), NotifyRxStart(), ns3::Now(), NS_ASSERT, ns3::WifiPhy::RX, and ns3::WifiPhy::TX.
Definition at line 232 of file ns2ext-wifi-phy-state-helper.cc.
References ns3::WifiPhy::CCA_BUSY, GetState(), ns3::WifiPhy::IDLE, LogPreviousIdleAndCcaBusyStates(), m_endRx, m_endTx, m_previousStateChangeTime, m_rxing, m_startCcaBusy, m_startRx, m_startTx, m_stateLogger, m_txTrace, ns3::Max(), NotifyTxStart(), ns3::Now(), NS_ASSERT, ns3::WifiPhy::RX, and ns3::WifiPhy::TX.
Definition at line 77 of file ns2ext-wifi-phy-state-helper.h.
Referenced by GetDelayUntilIdle(), GetState(), LogPreviousIdleAndCcaBusyStates(), and SwitchMaybeToCcaBusy().
Time ns3::Ns2ExtWifiPhyStateHelper::m_endRx [private] |
Definition at line 76 of file ns2ext-wifi-phy-state-helper.h.
Referenced by GetDelayUntilIdle(), LogPreviousIdleAndCcaBusyStates(), SwitchToRx(), and SwitchToTx().
Time ns3::Ns2ExtWifiPhyStateHelper::m_endTx [private] |
Definition at line 75 of file ns2ext-wifi-phy-state-helper.h.
Referenced by GetDelayUntilIdle(), GetState(), LogPreviousIdleAndCcaBusyStates(), SwitchToRx(), and SwitchToTx().
Definition at line 83 of file ns2ext-wifi-phy-state-helper.h.
Referenced by NotifyMaybeCcaBusyStart(), NotifyRxEndError(), NotifyRxEndOk(), NotifyRxStart(), NotifyTxStart(), and RegisterListener().
Definition at line 81 of file ns2ext-wifi-phy-state-helper.h.
Referenced by DoSwitchFromRx(), GetStateDuration(), SwitchToRx(), and SwitchToTx().
Definition at line 90 of file ns2ext-wifi-phy-state-helper.h.
Referenced by SetReceiveErrorCallback(), and SwitchFromRxEndError().
TracedCallback< Ptr<const Packet>, WifiPhy::RxErrorReason > ns3::Ns2ExtWifiPhyStateHelper::m_rxErrorTrace [private] |
Definition at line 87 of file ns2ext-wifi-phy-state-helper.h.
Referenced by CallRxErrorTrace(), GetTypeId(), and SwitchFromRxEndError().
bool ns3::Ns2ExtWifiPhyStateHelper::m_rxing [private] |
Definition at line 74 of file ns2ext-wifi-phy-state-helper.h.
Referenced by DoSwitchFromRx(), GetState(), SwitchToRx(), and SwitchToTx().
Definition at line 89 of file ns2ext-wifi-phy-state-helper.h.
Referenced by SetReceiveOkCallback(), and SwitchFromRxEndOk().
TracedCallback< Ptr<const Packet> > ns3::Ns2ExtWifiPhyStateHelper::m_rxOkTrace [private] |
Definition at line 86 of file ns2ext-wifi-phy-state-helper.h.
Referenced by GetTypeId(), and SwitchFromRxEndOk().
TracedCallback< Ptr<const Packet>, const WifiPhyRxTag& > ns3::Ns2ExtWifiPhyStateHelper::m_rxStartTrace [private] |
Definition at line 85 of file ns2ext-wifi-phy-state-helper.h.
Referenced by CallRxStartTrace(), and GetTypeId().
Definition at line 80 of file ns2ext-wifi-phy-state-helper.h.
Referenced by LogPreviousIdleAndCcaBusyStates(), SwitchMaybeToCcaBusy(), SwitchToRx(), and SwitchToTx().
Time ns3::Ns2ExtWifiPhyStateHelper::m_startRx [private] |
Definition at line 79 of file ns2ext-wifi-phy-state-helper.h.
Referenced by DoSwitchFromRx(), GetLastRxStartTime(), SwitchToRx(), and SwitchToTx().
Time ns3::Ns2ExtWifiPhyStateHelper::m_startTx [private] |
Definition at line 78 of file ns2ext-wifi-phy-state-helper.h.
Referenced by SwitchToTx().
TracedCallback< Time, Time, enum WifiPhy::State > ns3::Ns2ExtWifiPhyStateHelper::m_stateLogger [private] |
Definition at line 84 of file ns2ext-wifi-phy-state-helper.h.
Referenced by DoSwitchFromRx(), GetTypeId(), LogPreviousIdleAndCcaBusyStates(), SwitchToRx(), and SwitchToTx().
TracedCallback< Ptr<const Packet> > ns3::Ns2ExtWifiPhyStateHelper::m_txTrace [private] |
Definition at line 88 of file ns2ext-wifi-phy-state-helper.h.
Referenced by GetTypeId(), and SwitchToTx().