wifi: Make ChannelAccessManager methods returning backoff start and end public and const
This commit is contained in:
committed by
Stefano Avallone
parent
c1c65a168a
commit
b762cf2f3a
@@ -632,7 +632,7 @@ ChannelAccessManager::GetAccessGrantStart(bool ignoreNav) const
|
||||
}
|
||||
|
||||
Time
|
||||
ChannelAccessManager::GetBackoffStartFor(Ptr<Txop> txop)
|
||||
ChannelAccessManager::GetBackoffStartFor(Ptr<Txop> txop) const
|
||||
{
|
||||
return GetBackoffStartFor(txop, GetAccessGrantStart());
|
||||
}
|
||||
@@ -651,7 +651,7 @@ ChannelAccessManager::GetBackoffStartFor(Ptr<Txop> txop, Time accessGrantStart)
|
||||
}
|
||||
|
||||
Time
|
||||
ChannelAccessManager::GetBackoffEndFor(Ptr<Txop> txop)
|
||||
ChannelAccessManager::GetBackoffEndFor(Ptr<Txop> txop) const
|
||||
{
|
||||
return GetBackoffEndFor(txop, GetAccessGrantStart());
|
||||
}
|
||||
|
||||
@@ -157,6 +157,26 @@ class ChannelAccessManager : public Object
|
||||
*/
|
||||
Time GetAccessGrantStart(bool ignoreNav = false) const;
|
||||
|
||||
/**
|
||||
* Return the time when the backoff procedure
|
||||
* started for the given Txop.
|
||||
*
|
||||
* \param txop the Txop
|
||||
*
|
||||
* \return the time when the backoff procedure started
|
||||
*/
|
||||
Time GetBackoffStartFor(Ptr<Txop> txop) const;
|
||||
|
||||
/**
|
||||
* Return the time when the backoff procedure
|
||||
* ended (or will end) for the given Txop.
|
||||
*
|
||||
* \param txop the Txop
|
||||
*
|
||||
* \return the time when the backoff procedure ended (or will end)
|
||||
*/
|
||||
Time GetBackoffEndFor(Ptr<Txop> txop) const;
|
||||
|
||||
/**
|
||||
* \param qosTxop a QosTxop that needs to be disabled
|
||||
* \param duration the amount of time during which the QosTxop is disabled
|
||||
@@ -393,24 +413,6 @@ class ChannelAccessManager : public Object
|
||||
*/
|
||||
Time GetBackoffEndFor(Ptr<Txop> txop, Time accessGrantStart) const;
|
||||
|
||||
/**
|
||||
* Return the time when the backoff procedure
|
||||
* started for the given Txop.
|
||||
*
|
||||
* \param txop the Txop
|
||||
*
|
||||
* \return the time when the backoff procedure started
|
||||
*/
|
||||
Time GetBackoffStartFor(Ptr<Txop> txop);
|
||||
/**
|
||||
* Return the time when the backoff procedure
|
||||
* ended (or will end) for the given Txop.
|
||||
*
|
||||
* \param txop the Txop
|
||||
*
|
||||
* \return the time when the backoff procedure ended (or will end)
|
||||
*/
|
||||
Time GetBackoffEndFor(Ptr<Txop> txop);
|
||||
/**
|
||||
* This method determines whether the medium has been idle during a period (of
|
||||
* non-null duration) immediately preceding the time this method is called. If
|
||||
|
||||
Reference in New Issue
Block a user