src/lte/model/epc-enb-s1-sap.h
changeset 9345 8290ae6cab62
parent 9337 ae7126b266ce
child 9406 7f0f9d8f8e20
--- a/src/lte/model/epc-enb-s1-sap.h	Fri Jul 20 18:24:23 2012 +0200
+++ b/src/lte/model/epc-enb-s1-sap.h	Sun Jul 29 14:29:41 2012 +0200
@@ -40,13 +40,11 @@
   virtual ~EpcEnbS1SapProvider ();
   
   /**
-   * Parameters passed to DataRadioBearerSetupResponse ()
+   * Parameters passed to S1BearerSetupRequest ()
    * 
    */
-  struct DataRadioBearerSetupResponseParameters
+  struct S1BearerSetupRequestParameters
   {
-    bool success; /**< true if DataRadioBearer was setup
-		     successfully, false otherwise*/
     uint16_t rnti; /**< the RNTI corresponding to the IMSI for which
                       the radio bearer activation was requested */
     uint8_t lcid; /**< the LCID of the newly created radio bearer */
@@ -57,12 +55,18 @@
   };
 
   /**
-   * response after a call to
-   * EpcEnbS1SapUser::DataRadioBearerSetupRequest ()
+   * Request the setup of a S1 bearer
    * 
    */
-  virtual void DataRadioBearerSetupResponse (DataRadioBearerSetupResponseParameters params) = 0;
+  virtual void S1BearerSetupRequest (S1BearerSetupRequestParameters params) = 0;
   
+  /** 
+   * 
+   * 
+   * \param imsi 
+   * \param rnti 
+   */
+  virtual void InitialUeMessage (uint64_t imsi, uint16_t rnti) = 0;
 };
   
 
@@ -85,13 +89,13 @@
    */
   struct DataRadioBearerSetupRequestParameters
   {
-    uint64_t imsi;   /**< the IMSI identifying the UE for which the
+    uint16_t rnti;   /**< the RNTI identifying the UE for which the
 			DataRadioBearer is to be created */ 
     EpsBearer bearer; /**< the characteristics of the bearer to be set
                          up */
     uint32_t teid;   /**< context information that needs to be passed
                       to the corresponding call to
-                      EpcEnbS1SapProvider::DataRadioBearerSetupResponse */ 
+                      EpcEnbS1SapProvider::S1BearerSetupRequest */ 
   };
 
   /**
@@ -117,8 +121,8 @@
   MemberEpcEnbS1SapProvider (C* owner);
 
   // inherited from EpcEnbS1SapProvider
-  virtual void DataRadioBearerSetupResponse (DataRadioBearerSetupResponseParameters params);
-
+  virtual void S1BearerSetupRequest (S1BearerSetupRequestParameters params);
+  virtual void InitialUeMessage (uint64_t imsi, uint16_t rnti);
 
 private:
   MemberEpcEnbS1SapProvider ();
@@ -137,12 +141,18 @@
 }
 
 template <class C>
-void MemberEpcEnbS1SapProvider<C>::DataRadioBearerSetupResponse (DataRadioBearerSetupResponseParameters params)
+void MemberEpcEnbS1SapProvider<C>::S1BearerSetupRequest (S1BearerSetupRequestParameters params)
 {
-  m_owner->DoDataRadioBearerSetupResponse (params);
+  m_owner->DoS1BearerSetupRequest (params);
 }
 
 
+template <class C>
+void MemberEpcEnbS1SapProvider<C>::InitialUeMessage (uint64_t imsi, uint16_t rnti)
+{
+  m_owner->DoInitialUeMessage (imsi, rnti);
+}
+
 /**
  * Template for the implementation of the EpcEnbS1SapUser as a member
  * of an owner class of type C to which all methods are forwarded