ns-3
ns3::LteUeRrc Class Reference
Inheritance diagram for ns3::LteUeRrc:
Collaboration diagram for ns3::LteUeRrc:

List of all members.

Public Member Functions

 LteUeRrc ()
virtual ~LteUeRrc ()
virtual void DoDispose (void)
void SetLteUeCmacSapProvider (LteUeCmacSapProvider *s)
LteUeCmacSapUserGetLteUeCmacSapUser ()
void SetLteMacSapProvider (LteMacSapProvider *s)
void ConfigureUe (uint16_t rnti, uint16_t cellId)
void SetupRadioBearer (uint16_t rnti, EpsBearer bearer, TypeId rlcTypeId, uint8_t lcid, Ptr< EpcTft > tft)
void ReleaseRadioBearer (uint16_t rnti, uint8_t lcId)
uint16_t GetRnti ()
uint16_t GetCellId ()
std::vector< uint8_t > GetLcIdVector ()
bool Send (Ptr< Packet > p)
void SetForwardUpCallback (Callback< void, Ptr< Packet > > cb)
void DoRrcConfigurationUpdateInd (LteUeConfig_t params)
- 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::LteUeRrc.

Friends

class UeMemberLteUeCmacSapUser
class UeRrcMemberLteEnbCmacSapUser
class LtePdcpSpecificLtePdcpSapUser< LteUeRrc >

Additional Inherited Members

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

Constructor & Destructor Documentation

ns3::LteUeRrc::LteUeRrc ( )

create an RRC instance for use within an ue

References NS_LOG_FUNCTION.

ns3::LteUeRrc::~LteUeRrc ( )
virtual

Destructor

References NS_LOG_FUNCTION.


Member Function Documentation

void ns3::LteUeRrc::ConfigureUe ( uint16_t  rnti,
uint16_t  cellId 
)

Set UE RRC parameters

Parameters:
rntiC-RNTI of the UE
cellIdServing cell identifier

References ns3::LteUeCmacSapProvider::ConfigureUe(), and NS_LOG_FUNCTION.

Referenced by ns3::LteHelper::Attach().

void ns3::LteUeRrc::DoDispose ( void  )
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.

void ns3::LteUeRrc::DoRrcConfigurationUpdateInd ( LteUeConfig_t  params)

message from eNB-RRC for changing UE's configuration (up to now TxMode)

References NS_LOG_FUNCTION.

uint16_t ns3::LteUeRrc::GetCellId ( )
Returns:
the CellId of the attached Enb

References NS_LOG_FUNCTION.

std::vector< uint8_t > ns3::LteUeRrc::GetLcIdVector ( )
Returns:
a vector with the allocated LCID
LteUeCmacSapUser * ns3::LteUeRrc::GetLteUeCmacSapUser ( )
Returns:
s the CMAC SAP User interface offered to the MAC by this RRC

References NS_LOG_FUNCTION.

uint16_t ns3::LteUeRrc::GetRnti ( void  )
Returns:
the C-RNTI of the user

References NS_LOG_FUNCTION.

Referenced by ns3::LteHelper::ActivateEpsBearer().

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

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

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

  • /NodeList/[i]/DeviceList/[i]/$ns3::LteNetDevice/$ns3::LteUeNetDevice/LteUeRrc
  • /NodeList/[i]/DeviceList/[i]/$ns3::LteUeNetDevice/LteUeRrc

Attributes defined for this type:

No TraceSources defined for this type.

Reimplemented from ns3::Object.

References ns3::TypeId::SetParent().

void ns3::LteUeRrc::ReleaseRadioBearer ( uint16_t  rnti,
uint8_t  lcId 
)

Release the given radio bearer

Parameters:
rntithe C-RNTI of the user owning the bearer
lcIdthe logical channel id of the bearer to be released

References NS_ASSERT_MSG, NS_FATAL_ERROR, and NS_LOG_FUNCTION.

bool ns3::LteUeRrc::Send ( Ptr< Packet p)

Enqueue an IP packet on the proper bearer for uplink transmission

Parameters:
pthe packet
Returns:
true if successful, false if an error occurred

References ns3::EpcTftClassifier::Classify(), ns3::Packet::GetSize(), ns3::LtePdcpSapProvider::TransmitRrcPduParameters::lcid, NS_LOG_FUNCTION, NS_LOG_LOGIC, NS_LOG_WARN, ns3::LtePdcpSapProvider::TransmitRrcPduParameters::rnti, and ns3::LtePdcpSapProvider::TransmitRrcPduParameters::rrcPdu.

Referenced by ns3::LteUeNetDevice::Send().

void ns3::LteUeRrc::SetForwardUpCallback ( Callback< void, Ptr< Packet > >  cb)

set the callback used to forward data packets up the stack

Parameters:
void
cb
void ns3::LteUeRrc::SetLteMacSapProvider ( LteMacSapProvider s)

set the MAC SAP provider. The ue RRC does not use this directly, but it needs to provide it to newly created RLC instances.

Parameters:
sthe MAC SAP provider that will be used by all newly created RLC instances

References NS_LOG_FUNCTION.

void ns3::LteUeRrc::SetLteUeCmacSapProvider ( LteUeCmacSapProvider s)

set the CMAC SAP this RRC should interact with

Parameters:
sthe CMAC SAP Provider to be used by this RRC

References NS_LOG_FUNCTION.

void ns3::LteUeRrc::SetupRadioBearer ( uint16_t  rnti,
EpsBearer  bearer,
TypeId  rlcTypeId,
uint8_t  lcid,
Ptr< EpcTft tft 
)

Setup a new radio bearer for the given user

Parameters:
rntithe RNTI of the user
bearerthe characteristics of the bearer to be activated
rlcTypeIdthe TypeId identifying the type of RLC to be used for this bearer.
lcidthe logical channel id allocated for this bearer by the eNB
tftthe Traffic Flow Template identifying this bearer

References ns3::EpcTftClassifier::Add(), ns3::ObjectFactory::Create(), ns3::LteRlc::GetLteMacSapUser(), ns3::LteRlc::GetLteRlcSapProvider(), ns3::LtePdcp::GetLteRlcSapUser(), ns3::Object::GetObject(), ns3::LteRlcSm::GetTypeId(), NS_ASSERT_MSG, NS_LOG_FUNCTION, 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().


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