class
NrAlwaysOnAccessManagerA Channel access manager that sees the channel always free for transmitting.
This channel access manager is installed by default in NR instances.
always_on_usage
This is the CAM that is created by default. However, if you want to set it manually, you can invoke the helper function before installing the gnb:
nrHelper->SetGnbChannelAccessManagerTypeId (NrAlwaysOnAccessManager::GetTypeId()); ... nrHelper->InstallGnb ...
or the UE-side:
nrHelper->SetUeChannelAccessManagerTypeId (NrAlwaysOnAccessManager::GetTypeId()); ... nrHelper->InstallUe ...
The type of the channel access manager cannot be changed after the helper has installed the UE or the GNB node.
Introspection did not find any typical Config paths.
No Attributes are defined for this type.
Attributes defined in parent class ns3::NrChAccessManager
- GrantDuration: Duration of grant for transmitting.
- Set with class: ns3::TimeValue
- Underlying type: Time –9223372036854775808.0ns:+9223372036854775807.0ns
- Initial value: +60000000000.0ns
- Flags: construct write read
No TraceSources are defined for this type.
Size of this type is 80 bytes (on a 64-bit architecture).
Base classes
- class NrChAccessManager
- The Channel Access Manager class.
Public static functions
- static auto GetTypeId() -> TypeId
- Get the type ID.
Constructors, destructors, conversion operators
- NrAlwaysOnAccessManager()
- NrAlwaysOnAccessManager constructor.
- ~NrAlwaysOnAccessManager() override
- destructor
Public functions
- void Cancel() override
- Cancel a previously invoked request for accesing the channel.
- void RequestAccess() override
- RequestAccess.
- void SetAccessDeniedCallback(const AccessDeniedCallback& cb) override
- Set Access-Denied Callback.
- void SetAccessGrantedCallback(const AccessGrantedCallback& cb) override
- Set Access-Granted Callback.
Function documentation
void ns3:: NrAlwaysOnAccessManager:: RequestAccess() override
RequestAccess.
When the channel is granted, the callback set with SetAccessGrantedCallback() will be called.
void ns3:: NrAlwaysOnAccessManager:: SetAccessDeniedCallback(const AccessDeniedCallback& cb) override
Set Access-Denied Callback.
Parameters | |
---|---|
cb | the callback to invoke when the channel access is denied |
void ns3:: NrAlwaysOnAccessManager:: SetAccessGrantedCallback(const AccessGrantedCallback& cb) override
Set Access-Granted Callback.
Parameters | |
---|---|
cb | the callback to invoke when the channel access is granted |