ns-3
|
Public Member Functions | |
LteEnbRrc () | |
virtual | ~LteEnbRrc () |
virtual void | DoDispose (void) |
void | SetLteEnbCmacSapProvider (LteEnbCmacSapProvider *s) |
LteEnbCmacSapUser * | GetLteEnbCmacSapUser () |
void | SetFfMacSchedSapProvider (FfMacSchedSapProvider *s) |
void | SetLteMacSapProvider (LteMacSapProvider *s) |
void | ConfigureCell (uint8_t ulBandwidth, uint8_t dlBandwidth) |
uint16_t | AddUe (uint64_t imsi) |
void | RemoveUe (uint16_t rnti) |
uint16_t | GetLastAllocatedRnti () const |
void | SetLastAllocatedRnti (uint16_t lastAllocatedRnti) |
void | SetUeMap (std::map< uint16_t, Ptr< UeInfo > > ueMap) |
std::map< uint16_t, Ptr< UeInfo > > | GetUeMap (void) const |
uint8_t | SetupRadioBearer (uint16_t rnti, EpsBearer bearer, TypeId rlcTypeId) |
void | ReleaseRadioBearer (uint16_t rnti, uint8_t lcId) |
bool | Send (Ptr< Packet > p) |
void | SetForwardUpCallback (Callback< void, Ptr< Packet > > cb) |
![]() | |
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) |
![]() | |
SimpleRefCount (const SimpleRefCount &o) | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
uint32_t | GetReferenceCount (void) const |
![]() | |
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::LteEnbRrc. |
Friends | |
class | EnbRrcMemberLteEnbCmacSapUser |
class | LtePdcpSpecificLtePdcpSapUser< LteEnbRrc > |
Additional Inherited Members | |
![]() | |
virtual void | NotifyNewAggregate (void) |
virtual void | DoStart (void) |
Object (const Object &o) |
ns3::LteEnbRrc::LteEnbRrc | ( | ) |
create an RRC instance for use within an eNB
References NS_LOG_FUNCTION.
|
virtual |
Destructor
References NS_LOG_FUNCTION.
uint16_t ns3::LteEnbRrc::AddUe | ( | uint64_t | imsi | ) |
Add a new UE to the cell
imsi | IMSI of the attaching UE |
References NS_ASSERT_MSG, and NS_LOG_FUNCTION.
Referenced by ns3::LteHelper::Attach().
void ns3::LteEnbRrc::ConfigureCell | ( | uint8_t | ulBandwidth, |
uint8_t | dlBandwidth | ||
) |
configure cell-specific parameters
ulBandwidth | the uplink bandwdith in number of RB |
dlBandwidth | the downlink bandwidth in number of RB |
References ns3::LteEnbCmacSapProvider::ConfigureMac(), NS_ASSERT, and NS_LOG_FUNCTION.
|
virtual |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
It is safe to call GetObject from within this method.
Reimplemented from ns3::Object.
References NS_LOG_FUNCTION.
LteEnbCmacSapUser * ns3::LteEnbRrc::GetLteEnbCmacSapUser | ( | ) |
Get the CMAC SAP offered by this RRC
References NS_LOG_FUNCTION.
|
static |
This method returns the TypeId associated to ns3::LteEnbRrc.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
No TraceSources defined for this type.
Reimplemented from ns3::Object.
References NS_LOG_FUNCTION, and ns3::TypeId::SetParent().
void ns3::LteEnbRrc::ReleaseRadioBearer | ( | uint16_t | rnti, |
uint8_t | lcId | ||
) |
Release the given radio bearer
rnti | the C-RNTI of the user owning the bearer |
lcId | the logical channel id of the bearer to be released |
References NS_LOG_FUNCTION.
void ns3::LteEnbRrc::RemoveUe | ( | uint16_t | rnti | ) |
remove a UE from the cell
rnti | the C-RNTI identiftying the user |
References NS_FATAL_ERROR, and NS_LOG_FUNCTION.
Enqueue an IP packet on the proper bearer for downlink transmission
p | the packet |
References ns3::LtePdcpSapProvider::TransmitRrcPduParameters::lcid, NS_ASSERT, NS_LOG_FUNCTION, ns3::Packet::RemovePacketTag(), ns3::LtePdcpSapProvider::TransmitRrcPduParameters::rnti, ns3::LtePdcpSapProvider::TransmitRrcPduParameters::rrcPdu, and ns3::LtePdcpSapProvider::TransmitRrcPdu().
Referenced by ns3::LteEnbNetDevice::Send().
void ns3::LteEnbRrc::SetFfMacSchedSapProvider | ( | FfMacSchedSapProvider * | s | ) |
set the FF MAC SCHED SAP provider. The eNB RRC does not use this directly, but it needs to provide it to newly created RLC instances.
s | the FF MAC SCHED SAP provider that will be used by all newly created RLC instances |
References NS_LOG_FUNCTION.
set the callback used to forward data packets up the stack
void | |
cb |
void ns3::LteEnbRrc::SetLteEnbCmacSapProvider | ( | LteEnbCmacSapProvider * | s | ) |
set the CMAC SAP this RRC should interact with
s | the CMAC SAP Provider to be used by this RRC |
References NS_LOG_FUNCTION.
void ns3::LteEnbRrc::SetLteMacSapProvider | ( | LteMacSapProvider * | s | ) |
set the MAC SAP provider. The eNB RRC does not use this directly, but it needs to provide it to newly created RLC instances.
s | the MAC SAP provider that will be used by all newly created RLC instances |
References NS_LOG_FUNCTION.
Setup a new radio bearer for the given user
rnti | the RNTI of the user |
bearer | the characteristics of the bearer to be activated |
rlcTypeId | the TypeId identifying the type of RLC to be used for this bearer. |
References ns3::LteEnbCmacSapProvider::AddLc(), ns3::ObjectFactory::Create(), ns3::GbrQosInformation::gbrDl, ns3::LteEnbCmacSapProvider::LcInfo::gbrDl, ns3::GbrQosInformation::gbrUl, ns3::LteEnbCmacSapProvider::LcInfo::gbrUl, ns3::LteRlc::GetLteMacSapUser(), ns3::LteRlc::GetLteRlcSapProvider(), ns3::LtePdcp::GetLteRlcSapUser(), ns3::Object::GetObject(), ns3::LteRlcSm::GetTypeId(), ns3::LteEnbCmacSapProvider::LcInfo::isGbr, ns3::EpsBearer::IsGbr(), ns3::LteEnbCmacSapProvider::LcInfo::lcGroup, ns3::LteEnbCmacSapProvider::LcInfo::lcId, ns3::GbrQosInformation::mbrDl, ns3::LteEnbCmacSapProvider::LcInfo::mbrDl, ns3::GbrQosInformation::mbrUl, ns3::LteEnbCmacSapProvider::LcInfo::mbrUl, NS_LOG_FUNCTION, ns3::LteEnbCmacSapProvider::LcInfo::qci, ns3::LteEnbCmacSapProvider::LcInfo::rnti, ns3::LtePdcp::SetLcId(), ns3::LteRlc::SetLcId(), ns3::LteRlc::SetLteMacSapProvider(), ns3::LtePdcp::SetLtePdcpSapUser(), ns3::LtePdcp::SetLteRlcSapProvider(), ns3::LteRlc::SetLteRlcSapUser(), ns3::LtePdcp::SetRnti(), ns3::LteRlc::SetRnti(), and ns3::ObjectFactory::SetTypeId().
Referenced by ns3::LteHelper::ActivateEpsBearer().