LibS1AP_Templates.ttcn 144 KB
Newer Older
garciay's avatar
garciay committed
 *    @author   ETSI / STF519
 *    @version  $URL:$
 *              $Id:$
 *    @desc     This module provides Lib S1AP Templates used by the test component for S1AP tests.
 *    @copyright   ETSI Copyright Notification
 *                 No part may be reproduced except as authorized by written permission.
 *                 The copyright and the foregoing restriction extend to reproduction in all media.
 *                 All rights reserved.
 *    @see      ETSI TS 136 413 / 3GPP TS 36.413 version 13.4.0 Release 13
garciay's avatar
garciay committed
module LibS1AP_Templates {
    // LibCommon
    import from LibCommon_BasicTypesAndValues all;
    import from LibCommon_DataStrings all;
    
garciay's avatar
garciay committed
    // LibS1AP
    import from S1AP_Constants language "ASN.1:1997" all;
    import from S1AP_CommonDataTypes language "ASN.1:1997" all;
    // import from S1AP_Containers language "ASN.1:1997" all;
    import from S1AP_IEs language "ASN.1:1997" all;
    import from S1AP_PDU_Contents language "ASN.1:1997" all;
    import from S1AP_PDU_Descriptions language "ASN.1:1997" all;
garciay's avatar
garciay committed
    import from LibS1AP_TypesAndValues all;
pintar's avatar
pintar committed
    import from LibS1AP_Interface all;
garciay's avatar
garciay committed
    
    group g_S1AP {
        
        group  g_S1AP_PDU {
            
            /**
garciay's avatar
garciay committed
             * @desc Send template for S1AP PDU with InitiatingMessage payload
             * @param p_procedureCode   Procedure code
             * @param p_value           Message value according to the Procedure code
garciay's avatar
garciay committed
             * @see ETSI TS 136 413 V13.4.0 Clause 9.1 Message Functional Definition and Content
garciay's avatar
garciay committed
             */
            template (value) S1AP_PDU m_initiatingMessage(
                                                          in ProcedureCode p_procedureCode, 
                                                          in anytype p_value
garciay's avatar
garciay committed
                initiatingMessage := {
                    procedureCode := p_procedureCode,
                    criticality := reject,
                    value_ := p_value
                }
            } // End of template m_initiatingMessage
            
        } // End of group g_S1AP_PDU
        
garciay's avatar
garciay committed
        /**
         * @desc List of S1AP Elementary procedures
         * @see ETSI TS 136 413 Table 1: Class 1 procedures
         */
garciay's avatar
garciay committed
        group class1 {
garciay's avatar
garciay committed
            
garciay's avatar
garciay committed
            group sendClass1 {
garciay's avatar
garciay committed
                
                group HandoverPreparation {
                    
                    group initiatingMessage {
                    } // End of group initiatingMessage
                    
                    group successfulOutcome {
                    } // End of group successfulOutcome
                    
                    group unsuccessfulOutcome {
                    } // End of group unsuccessfulOutcome
                    
                } // End of group HandoverPreparation
                
                group HandoverResourceAllocation {
                    
                }// End of group HandoverResourceAllocation
                
                group ERABSetup{
                    
garciay's avatar
garciay committed
                    /**
                     * @desc Send template for InitiatingMessage message with E-RABSetup payload
                     * @param p_value           Expected procedure code
                     */
pintar's avatar
pintar committed
                    template (value) InitiatingMessage m_E_RABSetupRequest(
                                                                           in template (value) RecordOf_ProtocolIE p_value) := {
garciay's avatar
garciay committed
                        procedureCode := id_E_RABSetup,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
pintar's avatar
pintar committed
                    } // End of template m_E_RABSetupRequest
                    
                    template (value) RecordOf_ProtocolIE m_E_RABSetupReqIEs(
                                                                            in template (value) MME_UE_S1AP_ID p_MME_value,
                                                                            in template (value) ENB_UE_S1AP_ID p_ENB_value,
                                                                            in template (value) RecordOf_E_RABToBeSetupItemBearerSUReq p_RecordOf_E_RABToBeSetupItem_value
                    ) := {
pintar's avatar
pintar committed
                        m_MME_UE_S1AP_ID(p_MME_value),
                        m_ENB_UE_S1AP_ID(p_ENB_value),
                        m_E_RABToBeSetupList(p_RecordOf_E_RABToBeSetupItem_value)
                    } // End of template m_E_RABSetupReqIEs
garciay's avatar
garciay committed
                    
                }// End of group ERABSetup
                
                /**
                 * @desc Send messages for Reset Procedures
                 */
                group Reset_send {
                    
                    /**
                     * @desc Send template for InitiatingMessage message with RESET payload
                     * @param p_value           Expected protocol information elements
                     */
                    template (value) InitiatingMessage m_reset(
                                                               in template (value) RecordOf_ProtocolIE p_value
                    ) := {
                        procedureCode := id_Reset,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
                    } // End of template m_reset
                    
                    /**
                     * @desc Send template for RESET message
                     * @param p_cause       The expected Cause value
                     * @param p_resetType   The RESET type value
                     */
                    template (value) RecordOf_ProtocolIE m_resetIEs(
                                                                    in template (value) Cause p_cause,
                                                                    in template (value) ResetType p_resetType
                    ) := {
                        m_cause_IE(p_cause),
                        m_resetType_IE(p_resetType)
                    } // End of template m_resetIEs
                    
                } // End of group Reset_send
                
garciay's avatar
garciay committed
                /**
                 * @desc Send messages for Warning Message Transmission Procedures
                 */
                group Warning_Message_Transmission_send {
                    
                    /**
                     * @desc Send template for InitiatingMessage message with WRITE-REPLACE WARNING REQUEST payload
                     * @param p_value           Expected procedure code
                     */
                    template (value) InitiatingMessage m_write_Replace_Warning_Request(
                                                                                       in template (value) RecordOf_ProtocolIE p_value) := {
                        procedureCode := id_WriteReplaceWarning,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
                    } // End of template m_write_Replace_Warning_Request
                    
                    /**
                     * @desc Send template for WRITE-REPLACE WARNING REQUEST message
                     * @param p_message_Identifier              The Message Identifier value
                     * @param p_serial_Number                   The Serial Number value
                     * @param p_repetition_Period               TheRepetition Period value
                     * @param p_number_of_Broadcasts_Requested  The Number of Broadcasts Requested value
                     */
                    template (value) RecordOf_ProtocolIE m_write_Replace_Warning_RequestIEs(
                                                                                            in MessageIdentifier p_message_Identifier,
                                                                                            in SerialNumber p_serial_Number,
                                                                                            in RepetitionPeriod p_repetition_Period,
                                                                                            in NumberOfBroadcasts p_number_of_Broadcasts_Requested
                    ) := {
                        m_message_Identifier(p_message_Identifier),
                        m_serial_Number(p_serial_Number),
                        m_repetition_Period(p_repetition_Period),
                        m_number_of_Broadcasts_Requested(p_number_of_Broadcasts_Requested)
                    } // End of template m_write_Replace_Warning_RequestIEs
                    
                    /**
                     * @desc Send template for InitiatingMessage message with WRITE-REPLACE WARNING RESPONSE payload
                     * @param p_value           Expected procedure code
                     */
                    template (value) InitiatingMessage m_write_Replace_Warning_Response(
                                                                                       in template (value) RecordOf_ProtocolIE p_value) := {
                        procedureCode := id_WriteReplaceWarning,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
                    } // End of template m_write_Replace_Warning_Response
                    
                    /**
                     * @desc Send template for WRITE-REPLACE WARNING RESPONSE message
                     * @param p_message_Identifier  The Message Identifier value
                     * @param p_serial_Number       The Serial Number value
                     */
                    template (value) RecordOf_ProtocolIE m_write_Replace_Warning_ResponseIEs(
                                                                                            in MessageIdentifier p_message_Identifier,
                                                                                            in SerialNumber p_serial_Number
                    ) := {
                        m_message_Identifier(p_message_Identifier),
                        m_serial_Number(p_serial_Number)
                    } // End of template m_write_Replace_Warning_ResponseIEs
                    
                    /**
                     * @desc Send template for InitiatingMessage message with KILL REQUEST payload
                     * @param p_value           Expected procedure code
                     */
                    template (value) InitiatingMessage m_kill_Request(
                                                                      in template (value) RecordOf_ProtocolIE p_value) := {
                        procedureCode := id_Kill,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
                    } // End of template m_kill_Request
                    
                    /**
                     * @desc Send template for KILL REQUEST message
                     * @param p_message_Identifier  The Message Identifier value
                     * @param p_serial_Number       The Serial Number value
                     */
                    template (value) RecordOf_ProtocolIE m_kill_RequestIEs(
                                                                           in MessageIdentifier p_message_Identifier,
                                                                           in SerialNumber p_serial_Number
                    ) := {
                        m_message_Identifier(p_message_Identifier),
                        m_serial_Number(p_serial_Number)
                    } // End of template m_kill_RequestIEs
                    
                    /**
                     * @desc Send template for InitiatingMessage message with KILL REQUEST payload
                     * @param p_value           Expected procedure code
                     */
                    template (value) InitiatingMessage m_kill_Response(
                                                                      in template (value) RecordOf_ProtocolIE p_value) := {
                        procedureCode := id_Kill,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
                    } // End of template m_kill_Response
                    
                    /**
                     * @desc Send template for KILL REQUEST message
                     * @param p_message_Identifier  The Message Identifier value
                     * @param p_serial_Number       The Serial Number value
                     */
                    template (value) RecordOf_ProtocolIE m_kill_ResponseIEs(
                                                                           in MessageIdentifier p_message_Identifier,
                                                                           in SerialNumber p_serial_Number
                    ) := {
                        m_message_Identifier(p_message_Identifier),
                        m_serial_Number(p_serial_Number)
                    } // End of template m_kill_ResponseIEs
                    
                }// End of group Warning_Message_Transmission_send
                
garciay's avatar
garciay committed
                //TODO: Other....
garciay's avatar
garciay committed
                
            } // End of group sendClass1 
garciay's avatar
garciay committed
            
garciay's avatar
garciay committed
            group receiveClass1 {
                
garciay's avatar
garciay committed
                group HandoverPreparation{
                    
                }// End of group HandoverPreparation
                    
                group HandoverResourceAllocation{
                    
                }// End of group HandoverResourceAllocation
                
                group ERABSetup{
                    
                    /**
                     * @desc Receive template for SuccessfulOutcome/R-RAB_Setup message
                     * @param p_procedureCode   Expected procedure code. Default: ?
                     * @param p_value           Expected procedure code. Default: ?
                     */
                    template (present) SuccessfulOutcome mw_E_RABSetupResponse(
                                                                               template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_E_RABSetup,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_E_RABSetupResponse
                    
                    template (present) RecordOf_ProtocolIE mw_E_RABSetupResIEs(
                                                                               template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                               template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                               template (present) RecordOf_E_RABSetupItemBearerSURes p_RecordOf_E_RABSetupItem_value := ?
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value, ignore),
                        mw_ENB_UE_S1AP_ID(p_ENB_value, ignore),
                        mw_E_RABSetupList(p_RecordOf_E_RABSetupItem_value)
                    } // End of template mw_E_RABSetupResIEs
                    
                    template (present) RecordOf_ProtocolIE mw_E_RABSetupResIEs_FailedToSetupList(
                                                                                                 template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                                 template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                                 template (present) RecordOf_E_RABSetupItemBearerSURes p_RecordOf_E_RABSetupItem_value := ?,
                                                                                                 template (present) RecordOf_E_RABItem p_E_RABItem_value := ?
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value, ignore),
                        mw_ENB_UE_S1AP_ID(p_ENB_value, ignore),
                        mw_E_RABSetupList(p_RecordOf_E_RABSetupItem_value),
                        mw_E_RABFailedToSetupList(p_E_RABItem_value)
                    } // End of template mw_E_RABSetupResIEs
                    
                } // End of group ERABSetup
                
                /**
                 * @desc Receive messages for Reset Procedures
                 */
                group Reset_receive {
                    
                    /**
                     * @desc Send template for InitiatingMessage message with RESET payload
                     * @param p_value           Expected protocol information elements. Default: ?
                     */
                    template (present) InitiatingMessage mw_reset(
                                                                  template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_Reset,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_reset
                    
                    /**
                     * @desc Send template for RESET message
                     * @param p_cause       The expected Cause value
                     * @param p_resetType   The RESET type value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_resetIEs(
                                                                       template (present) Cause p_cause := ?,
                                                                       template (present) ResetType p_resetType := ?
                    ) := {
                        mw_cause_IE(p_cause),
                        mw_resetType_IE(p_resetType)
                    } // End of template mw_resetIEs
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with RESET ACKNOWLEDGE
                     * @param p_value           Expected protocol information elements. Default: ?
                     */
                    template (present) SuccessfulOutcome mw_reset_Acknowledge(
                                                                              template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_Reset,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_reset_Acknowledge
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with RESET ACKNOWLEDGE payload
                     * @param p_value           Expected protocol information elements. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_reset_AcknowledgeIEs(
                                                                                   template (present) UE_associatedLogicalS1_ConnectionListRes p_value := ?
                    ) := {
                        mw_associatedLogicalS1_ConnectionListResAck_IE(p_value)
                    } // End of template mw_reset_AcknowledgeIEs
                    
                    /**
                     * @desc Receive template for RESET ACKNOWLEDGE message
                     * @param p_value           Expected list of UE-associated logical S1-connection. Default: ?
                     */
                    template (present) ProtocolIE mw_associatedLogicalS1_ConnectionListResAck_IE(
                                                                                                 template (present) UE_associatedLogicalS1_ConnectionListRes p_value := ?
                    ) := {
                        id := id_UE_associatedLogicalS1_ConnectionListResAck,
                        criticality := ignore,
                        value_ := {UE_associatedLogicalS1_ConnectionListRes := p_value}
                    } // End of template mw_associatedLogicalS1_ConnectionListResAck_IE
                    
                } // End of group Reset_receive
                
                /**
                 * @desc Receive messages for Warning Message Transmission Procedures
garciay's avatar
garciay committed
                 * @see ETSI TS 136 413 Clause 9.1.13 Warning Message Transmission Messages
                 */
                group Warning_Message_Transmission_receive {
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with WRITE-REPLACE WARNING REQUEST/RESPONSE payload
garciay's avatar
garciay committed
                     * @param p_value           Expected procedure code. Default: ?
                     */
                    template (present) InitiatingMessage mw_write_Replace_Warning_RequestResponse(
                                                                                                  template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_WriteReplaceWarning,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_write_Replace_Warning_RequestResponse
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with WRITE-REPLACE WARNING RESPONSE payload
garciay's avatar
garciay committed
                     * @param p_value           Expected procedure code. Default: ?
                     */
                    template (present) SuccessfulOutcome mw_write_Replace_Warning_Response(
                                                                                           template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_WriteReplaceWarning,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_write_Replace_Warning_Response
                    
                    /**
                     * @desc Receive template for WRITE-REPLACE WARNING REQUEST message
                     * @param p_message_Identifier              The expected Message Identifier value. Default: ?
                     * @param p_serial_Number                   The expected Serial Number value. Default: ?
                     * @param p_repetition_Period               The expected Repetition Period value. Default: ?
                     * @param p_number_of_Broadcasts_Requested  The expected Number of Broadcasts Requested value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_write_Replace_Warning_RequestIEs(
                                                                                               template (present) MessageIdentifier p_message_Identifier := ?,
                                                                                               template (present) SerialNumber p_serial_Number := ?,
                                                                                               template (present) RepetitionPeriod p_repetition_Period := ?,
                                                                                               template (present) NumberOfBroadcasts p_number_of_Broadcasts_Requested := ?
                    ) := {
                        mw_message_Identifier_IE(p_message_Identifier),
                        mw_serial_Number_IE(p_serial_Number),
                        mw_repetition_Period_IE(p_repetition_Period),
                        mw_number_of_Broadcasts_Requested_IE(p_number_of_Broadcasts_Requested)
garciay's avatar
garciay committed
                    } // End of template mw_write_Replace_Warning_RequestIEs
                    
                    /**
                     * @desc Receive template for WRITE-REPLACE WARNING REQUEST message
                     * @param p_serial_Number The expected Message Identifier value. Default: ?
                     * @param p_serial_Number The expected Serial Number value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_write_Replace_Warning_ResponseIEs(
                                                                                                template (present) MessageIdentifier p_message_Identifier := ?,
                                                                                                template (present) SerialNumber p_serial_Number := ?
                    ) := {
                        mw_message_Identifier_IE(p_message_Identifier),
                        mw_serial_Number_IE(p_serial_Number)
garciay's avatar
garciay committed
                    } // End of template mw_write_Replace_Warning_ResponseIEs
                    
                    /**
                     * @desc Send template for InitiatingMessage message with KILL REQUEST/RESPONSE payload
                     * @param p_value           Expected procedure code. Default: ?
                     */
                    template (present) InitiatingMessage mw_kill_RequestResponse(
                                                                                 template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_Kill,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_kill_RequestResponse
                    
                    /**
                     * @desc Send template for InitiatingMessage message with KILL RESPONSE payload
                     * @param p_value           Expected procedure code. Default: ?
                     */
                    template (present) SuccessfulOutcome mw_kill_Response(
                                                                          template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_Kill,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_kill_Response
                    
                    /**
                     * @desc Receive template for KILL REQUEST message
                     * @param p_message_Identifier              The expected Message Identifier value. Default: ?
                     * @param p_serial_Number                   The expected Serial Number value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_kill_RequestIEs(
                                                                              template (present) MessageIdentifier p_message_Identifier := ?,
                                                                              template (present) SerialNumber p_serial_Number := ?
                    ) := {
                        mw_message_Identifier_IE(p_message_Identifier),
                        mw_serial_Number_IE(p_serial_Number)
garciay's avatar
garciay committed
                    } // End of template mw_kill_RequestIEs
                    
                    /**
                     * @desc Receive template for KILL REQUEST message
                     * @param p_message_Identifier  The expected Message Identifier value
                     * @param p_serial_Number       The expected Serial Number value
                     */
                    template (present) RecordOf_ProtocolIE mw_kill_ResponseIEs(
                                                                               template (present) MessageIdentifier p_message_Identifier := ?,
                                                                               template (present) SerialNumber p_serial_Number := ?
                    ) := {
                        mw_message_Identifier_IE(p_message_Identifier),
                        mw_serial_Number_IE(p_serial_Number)
garciay's avatar
garciay committed
                    } // End of template mw_kill_ResponseIEs
                    
                }// End of group Warning_Message_Transmission_receive
                
                //TODO: Other....
                
            } // End of group receiveClass1
            
        } // End of group class1
        
        /**
         * @desc List of S1AP Elementary procedures
         * @see ETSI TS 136 413 Table 2: Class 2 procedures
         */
        group class2 {
            
            group sendClass2 {
                
                /**
                 * @desc Send messages for Traces Procedures
                 */
                group Traces_send {
                    
                    /**
                     * @desc Send template for InitiatingMessage message with TRACE START payload
                     * @param p_value           Expected protocol information elements
garciay's avatar
garciay committed
                     */
                    template (value) InitiatingMessage m_trace_Start(
                                                                     in template (value) RecordOf_ProtocolIE p_value
                    ) := {
                        procedureCode := id_TraceStart,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
                    } // End of template m_trace_Start
                    
                    /**
                     * @desc Send template for TRACE START message
                     * @param p_traceActivation    The Trace Activation value
                     */
                    template (value) RecordOf_ProtocolIE m_trace_StartIEs(
                                                                          in template (value) TraceActivation p_traceActivation
                    ) := {
                        m_traceActivation_IE(p_traceActivation)
                    } // End of template m_trace_StartIEs
                    
                    /**
                     * @desc Send template for InitiatingMessage message with DEACTIVATE TRACE payload
                     * @param p_value           Expected protocol information elements
garciay's avatar
garciay committed
                     */
                    template (value) InitiatingMessage m_deactivate_Trace(
                                                                          in template (value) RecordOf_ProtocolIE p_value
                    ) := {
                        procedureCode := id_DeactivateTrace,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
                    } // End of template m_deactivate_Trace
                    
                    /**
                     * @desc Send template for DEACTIVATE TRACE message
                     * @param p_traceActivation    The Deactivate Trace value
                     */
                    template (value) RecordOf_ProtocolIE m_deactivate_TraceIEs(
                                                                               in template (value) MME_UE_S1AP_ID p_MME_value,
                                                                               in template (value) ENB_UE_S1AP_ID p_ENB_value,
                                                                               in E_UTRAN_Trace_ID p_eUTRAN_Trace_ID
                    ) := {
                        m_MME_UE_S1AP_ID(p_MME_value),
                        m_ENB_UE_S1AP_ID(p_ENB_value),
                        m_eUTRAN_Trace_ID_IE(p_eUTRAN_Trace_ID)
                    } // End of template m_deactivate_TraceIEs
                    
                } // End of group Traces_send
                
                /**
                 * @desc Send messages for Location Reporting Procedures
                 */
                group Location_reporting_send {
                    
                    /**
                     * @desc Send template for InitiatingMessage message with LOCATION REPORTING CONTROL payload
                     * @param p_value           Expected protocol information elements
garciay's avatar
garciay committed
                     */
                    template (value) InitiatingMessage m_location_Reporting_Control(
                                                                                    in template (value) RecordOf_ProtocolIE p_value
                    ) := {
                        procedureCode := id_LocationReportingControl,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
                    } // End of template m_location_Reporting_Control
                    
                    /**
                     * @desc Send template for LOCATION REPORTING CONTROL message
                     * @param p_MME_value       MME UE S1AP ID value
                     * @param p_ENB_value       eNB UE S1AP ID value
                     * @param p_request_Type    The Type Request value
                     */
                    template (value) RecordOf_ProtocolIE m_location_Reporting_ControlIEs(
                                                                                         in template (value) MME_UE_S1AP_ID p_MME_value,
                                                                                         in template (value) ENB_UE_S1AP_ID p_ENB_value,
                                                                                         in template (value) RequestType p_request_Type
                    ) := {
                        m_MME_UE_S1AP_ID(p_MME_value),
                        m_ENB_UE_S1AP_ID(p_ENB_value),
                        m_request_Type_IE(p_request_Type)
                    } // End of template m_location_Reporting_ControlIEs
                    
                    /**
                     * @desc Send template for InitiatingMessage message with LOCATION REPORTING CONTROL payload
                     * @param p_value           Expected protocol information elements
garciay's avatar
garciay committed
                     */
                    template (value) InitiatingMessage m_location_Report(
                                                                         in template (value) RecordOf_ProtocolIE p_value
                    ) := {
                        procedureCode := id_LocationReport,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
                    } // End of template m_location_Report
                    
                    /**
                     * @desc Send template for LOCATION REPORT message
                     * @param p_MME_value       MME UE S1AP ID value
                     * @param p_ENB_value       eNB UE S1AP ID value
                     * @param p_request_Type    The Type Request value
                     */
                    template (value) RecordOf_ProtocolIE m_location_ReportIEs(
                                                                              in template (value) MME_UE_S1AP_ID p_MME_value,
                                                                              in template (value) ENB_UE_S1AP_ID p_ENB_value,
                                                                              in template (value) RequestType p_request_Type
                    ) := {
                        m_MME_UE_S1AP_ID(p_MME_value),
                        m_ENB_UE_S1AP_ID(p_ENB_value),
                        m_request_Type_IE(p_request_Type)
                    } // End of template m_location_ReportIEs
                    
                    /**
                     * @desc Send template for InitiatingMessage message with LOCATION REPORT FAILURE INDICATION payload
                     * @param p_value           Expected protocol information elements
garciay's avatar
garciay committed
                     */
                    template (value) InitiatingMessage m_location_Report_Failure_Indication(
                                                                                            in template (value) RecordOf_ProtocolIE p_value
                    ) := {
                        procedureCode := id_LocationReport,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := valueof(p_value)}
                    } // End of template m_location_Report_Failure_Indication
                    
                    /**
                     * @desc Send template for LOCATION REPORT message
                     * @param p_MME_value   The expected MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value   The expected eNB UE S1AP ID value. Default: ?
                     * @param p_cause       The expected Cause value. Default: ?
                     */
                    template (value) RecordOf_ProtocolIE m_location_Report_Failure_IndicationIEs(
                                                                                                 in template (value) MME_UE_S1AP_ID p_MME_value,
                                                                                                 in template (value) ENB_UE_S1AP_ID p_ENB_value,
                                                                                                 in template (value) Cause p_cause
                    ) := {
                        m_MME_UE_S1AP_ID(p_MME_value),
                        m_ENB_UE_S1AP_ID(p_ENB_value),
                        m_cause_IE(p_cause)
                    } // End of template m_location_Report_Failure_IndicationIEs
                    
                } // End of group Location_reporting_send
                
            } // End of group sendClass2
            
            group receiveClass2 {
                
                group S1_CDMA2000_Tunnelling_receive {
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with DOWNLINK S1 CDMA2000 TUNNELLING payload
                     * @param p_value           Expected protocol information elements
                     */
                    template (present) InitiatingMessage mw_downlink_S1_CDMA2000_Tunnelling(
                                                                                            template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_DownlinkS1cdma2000tunnelling,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_downlink_S1_CDMA2000_Tunnelling
                    
                    /**
                     * @desc Receive template for DOWNLINK S1 CDMA2000 TUNNELLING message
                     * @param p_MME_value               The expected MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value               The expected eNB UE S1AP ID value. Default: ?
                     * @param p_eRABDataForwardingItem  The expected list of E-RABs Subject to Forwarding. Default: ?
                     * @param p_cdma2000Pdu             The expected CDMA2000-PDU value. Default: ?
                     * @param  p_cdma2000RATType        The expected CDMA2000 RAT Type value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_downlink_S1_CDMA2000_TunnellingIEs(
                                                                                                 template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                                 template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                                 template (present) RecordOf_E_RABDataForwardingItem p_eRABDataForwardingItems := ?,
                                                                                                 template (present) octetstring p_cdma2000Pdu := ?,
                                                                                                 template (present) Cdma2000RATType p_cdma2000RATType := ?
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value),
                        mw_ENB_UE_S1AP_ID(p_ENB_value),
                        mw_eRABDataForwardingItem_IE(p_eRABDataForwardingItems),
                        mw_cdma2000_Pdu_IE(p_cdma2000Pdu),
                        mw_cdma2000_RAT_Type_IE(p_cdma2000RATType)
                        
                    } // End of template mw_downlink_S1_CDMA2000_TunnellingIEs
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with UPLINK S1 CDMA2000 TUNNELLING payload
                     * @param p_value           Expected protocol information elements
                     */
                    template (present) InitiatingMessage mw_uplink_S1_CDMA2000_Tunnelling(
                                                                                          template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_UplinkS1cdma2000tunnelling,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_uplink_S1_CDMA2000_Tunnelling
                    
                    /**
                     * @desc Receive template for UPLINK S1 CDMA2000 TUNNELLING message
                     * @param p_MME_value           The expected MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value           The expected eNB UE S1AP ID value. Default: ?
                     * @param  p_cdma2000RATType    The expected CDMA2000 RAT Type value. Default: ?,
                     * @param p_cdma2000SectorId    The expected CDMA2000 Sector ID value. Default: ,
                     * @param p_cdma2000Pdu         The expected CDMA2000-PDU value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_uplink_S1_CDMA2000_TunnellingIEs(
                                                                                               template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                               template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                               template (present) Cdma2000RATType p_cdma2000RATType := ?,
                                                                                               template (present) octetstring p_cdma2000SectorId := ?,
                                                                                               template (present) octetstring p_cdma2000Pdu := ?
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value),
                        mw_ENB_UE_S1AP_ID(p_ENB_value),
                        mw_cdma2000_RAT_Type_IE(p_cdma2000RATType),
                        mw_cdma2000_SectorId_IE(p_cdma2000SectorId),
                        mw_cdma2000_Pdu_IE(p_cdma2000Pdu)
                    } // End of template mw_uplink_S1_CDMA2000_TunnellingIEs
                    
                } // End of group S1_CDMA2000_Tunnelling_receive
                
                group UE_Capability_Info_receive {
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with UE CAPABILITY INFO INDICATION payload
                     * @param p_value           Expected protocol information elements. Default: ?
                     */
                    template (present) InitiatingMessage mw_uE_Capability_Info_Indication(
                                                                                          template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_UECapabilityInfoIndication,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_uE_Capability_Info_Indication
                    
                    /**
                     * @desc Receive template for UE CAPABILITY INFO INDICATION message
                     * @param p_MME_value           The expected MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value           The expected eNB UE S1AP ID value. Default: ?
                     * @param p_uE_Radio_capability The UE radion capability value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_uE_Capability_Info_IndicationIEs(
                                                                                               template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                               template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                               template (present) octetstring p_uE_Radio_capability := ?
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value),
                        mw_ENB_UE_S1AP_ID(p_ENB_value),
                        mw_ueRadioCapability_IE(p_uE_Radio_capability)
                    } // End of template mw_uE_Capability_Info_IndicationIEs
                    
                } // End of group UE_Capability_Info_receive
                
garciay's avatar
garciay committed
                /**
                 * @desc Receive messages for Traces Procedures
                 */
                group Traces_receive {
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with TRACE START payload
                     * @param p_value           Expected protocol information elements. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) InitiatingMessage mw_trace_Start(
                                                                        template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_TraceStart,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_trace_Start
                    
                    /**
                     * @desc Receive template for TRACE START message
                     * @param p_traceActivation    The Trace Activation present. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) RecordOf_ProtocolIE mw_trace_StartIEs(
                                                                             template (present) TraceActivation p_traceActivation := ?
                    ) := {
                        mw_traceActivation_IE(p_traceActivation)
                    } // End of template mw_trace_StartIEs
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with TRACE FAILURE INDICATION payload
                     * @param p_value           Expected protocol information elements. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) InitiatingMessage mw_trace_Failure_Indication(
                                                                                     template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_TraceFailureIndication,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_trace_Failure_Indication
                    
                    /**
                     * @desc Receive template for TRACE FAILURE INDICATION message
                     * @param p_MME_value           The expected MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value           The expected eNB UE S1AP ID value. Default: ?
                     * @param m_eUTRAN_Trace_ID_IE  The expected E-UTRAN Trace ID value. Default: ?
                     * @param p_cause               The expected Cause value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_trace_Failure_IndicationIEs(
                                                                                          template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                          template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                          template (present) E_UTRAN_Trace_ID p_eUTRAN_Trace_ID := ?,
                                                                                          template (present) Cause p_cause := ?
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value),
                        mw_ENB_UE_S1AP_ID(p_ENB_value),
                        mw_eUTRAN_Trace_ID_IE(p_eUTRAN_Trace_ID),
                        mw_cause_IE(p_cause)
garciay's avatar
garciay committed
                    } // End of template mw_trace_Failure_IndicationIEs
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with CELL TRAFFIC TRACE payload
                     * @param p_value           Expected protocol information elements. Default: ?
                     */
                    template (present) InitiatingMessage mw_cell_Traffic_Trace(
                                                                               template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_CellTrafficTrace,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_cell_Traffic_Trace
                    
                    /**
                     * @desc Receive template for CELL TRAFFIC TRACE message
                     * @param p_MME_value                       The expected MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value                       The expected eNB UE S1AP ID value. Default: ?
                     * @param m_eUTRAN_Trace_ID_IE              The expected E-UTRAN Trace ID value. Default: ?
                     * @param p_eUTRAN_CGI                      The expected Type Request value. Default: ?
                     * @param p_traceCollectionEntityIPAddress  The expected Transport Layer Address value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_cell_Traffic_TraceIEs(
                                                                                    template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                    template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                    template (present) E_UTRAN_Trace_ID p_eUTRAN_Trace_ID := ?,
                                                                                    template (present) EUTRAN_CGI p_eUTRAN_CGI := ?,
                                                                                    template (present) bitstring p_traceCollectionEntityIPAddress := ?
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value),
                        mw_ENB_UE_S1AP_ID(p_ENB_value),
                        mw_eUTRAN_Trace_ID_IE(p_eUTRAN_Trace_ID),
                        mw_eUTRAN_CGI_IE(p_eUTRAN_CGI),
                        mw_transportLayerAddress_IE(p_traceCollectionEntityIPAddress)
                    } // End of template mw_cell_Traffic_TraceIEs
                    
garciay's avatar
garciay committed
                    /**
                     * @desc Receive template for InitiatingMessage message with DEACTIVATE TRACE payload
                     * @param p_value           Expected protocol information elements. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) InitiatingMessage mw_deactivate_Trace(
                                                                             template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_DeactivateTrace,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_deactivate_Trace
                    
                    /**
                     * @desc Receive template for DEACTIVATE TRACE message
                     * @param p_MME_value           The expected MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value           The expected eNB UE S1AP ID value. Default: ?
                     * @param m_eUTRAN_Trace_ID_IE  The expected E-UTRAN Trace ID value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_deactivate_TraceIEs(
                                                                                  template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                  template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                  template (present) E_UTRAN_Trace_ID p_eUTRAN_Trace_ID := ?
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value),
                        mw_ENB_UE_S1AP_ID(p_ENB_value),
                        mw_eUTRAN_Trace_ID_IE(p_eUTRAN_Trace_ID)
                    } // End of template mw_deactivate_TraceIEs
                    
                } // End of group Traces_receive
                
                /**
                 * @desc Receive messages for Location Reporting Procedures
                 */
                group Location_reporting_receive {
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with LOCATION REPORTING CONTROL payload
                     * @param p_value           Expected protocol information elements. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) InitiatingMessage mw_location_Reporting_Control(
                                                                                       template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_LocationReportingControl,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_location_Reporting_Control
                    
                    /**
                     * @desc Receive template for LOCATION REPORTING CONTROL message
                     * @param p_MME_value       MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value       eNB UE S1AP ID value. Default: ?
                     * @param p_request_Type    The Type Request value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_location_Reporting_ControlIEs(
                                                                                            template (present) MME_UE_S1AP_ID p_MME_value,
                                                                                            template (present) ENB_UE_S1AP_ID p_ENB_value,
                                                                                            template (present) RequestType p_request_Type
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value),
                        mw_ENB_UE_S1AP_ID(p_ENB_value),
                        mw_request_Type_IE(p_request_Type)
                    } // End of template mw_location_Reporting_ControlIEs
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with LOCATION REPORT payload
                     * @param p_value           Expected protocol information elements. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) InitiatingMessage mw_location_Report(
                                                                            template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_LocationReport,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_location_Report
                    
                    /**
                     * @desc Receive template for LOCATION REPORT message
                     * @param p_MME_value       The expected MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value       The expected eNB UE S1AP ID value. Default: ?
                     * @param p_eUTRAN_CGI      The expected Type Request value. Default: ?
                     * @param p_tAI             The expected TAI value. Default: ?
                     * @param p_request_Type    The expected Type Request value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_location_ReportIEs(
                                                                                 template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                 template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                 template (present) EUTRAN_CGI p_eUTRAN_CGI := ?,
                                                                                 template (present) TAI p_tAI := ?,
                                                                                 template (present) RequestType p_request_Type := ?
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value),
                        mw_ENB_UE_S1AP_ID(p_ENB_value),
                        mw_eUTRAN_CGI_IE(p_eUTRAN_CGI),
                        mw_TAI_IE(p_tAI),
                        mw_request_Type_IE(p_request_Type)
                    } // End of template mw_location_ReportIEs
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with LOCATION REPORT FAILURE INDICATION payload
                     * @param p_value           Expected protocol information elements. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) InitiatingMessage mw_location_Report_Failure_Indication(
                                                                                               template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_LocationReport,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_location_Report_Failure_Indication
                    
                    /**
                     * @desc Receive template for LOCATION REPORT message
                     * @param p_MME_value   The expected MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value   The expected eNB UE S1AP ID value. Default: ?
                     * @param p_cause       The expected Cause value. Default: ?
                     */
                    template (present) RecordOf_ProtocolIE mw_location_Report_Failure_IndicationIEs(
                                                                                                    template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                                    template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                                    template (present) Cause p_cause := ?
                    ) := {
                        mw_MME_UE_S1AP_ID(p_MME_value),
                        mw_ENB_UE_S1AP_ID(p_ENB_value),
                        mw_cause_IE(p_cause)
                    } // End of template mw_location_Report_Failure_IndicationIEs
                    
                } // End of group Location_reporting_send
                
                /**
                 * @desc Receive messages for Warning message transmission group
                 */
                group Warning_Message_Transmission_receive {
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with PWS RESTART INDICATION payload
                     * @param p_value           Expected protocol information elements. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) InitiatingMessage mw_pWS_Restart_Indication(
                                                                                   template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_PWSRestartIndication,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_pWS_Restart_Indication
                    
                    /**
                     * @desc Receive template for PWS RESTART INDICATION message
                     * @param p_eCGIListForFailure              The expected E-CGI List for Restart value. Default: ?
                     * @param p_global_ENB_ID                   The expected Global eNB ID value. Default: ?
                     * @param p_tAIListForRestart               The expected TAI List for Restart va. Default: ?lue
                     * @param p_emergencyAreaIDListForRestart   The expected Emergency Area ID List for Restart value. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) RecordOf_ProtocolIE mw_pWS_Restart_IndicationIEs(
                                                                                        template (present) ECGIListForRestart p_eCGIListForRestart := ?,
                                                                                        template (present) Global_ENB_ID p_global_ENB_ID := ?,
                                                                                        template (present) TAIListForRestart p_tAIListForRestart := ?,
                                                                                        template (present) EmergencyAreaIDListForRestart p_emergencyAreaIDListForRestart := ?
                    ) := {
                        mw_eCGIListForRestart(p_eCGIListForRestart),
                        mw_Global_ENB_ID_IE(p_global_ENB_ID),
                        mw_tAIListForRestart(p_tAIListForRestart),
                        mw_emergencyAreaIDListForRestart(p_emergencyAreaIDListForRestart)
                    } // End of template mw_pWS_Restart_IndicationIEs
                    
                    /**
                     * @desc Receive template for InitiatingMessage message with PWS RESTART INDICATION payload
                     * @param p_value           Expected protocol information elements. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) InitiatingMessage mw_pWS_Failure_Indication(
                                                                                   template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_PWSFailureIndication,
                        criticality := reject,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_pWS_Failure_Indication
                    
                    /**
                     * @desc Receive template for PWS RESTART INDICATION message
                     * @param p_pWSfailedECGIList   The expected PWS failed E-CGI List value. Default: ?
                     * @param p_global_ENB_ID       The expected Global eNB ID value. Default: ?
garciay's avatar
garciay committed
                     */
                    template (present) RecordOf_ProtocolIE mw_pWS_Failure_IndicationIEs(
                                                                                        template (present) PWSfailedECGIList p_pWSfailedECGIList := ?,
                                                                                        template (present) Global_ENB_ID p_global_ENB_ID := ?
                    ) := {
                        mw_pWSfailedECGIList(p_pWSfailedECGIList),
                        mw_Global_ENB_ID_IE(p_global_ENB_ID)
                    } // End of template mw_pWS_Failure_IndicationIEs
                    
                } // End of group Warning_Message_Transmission_receive
                
                /**
                 * @desc Receive message for eNB direct information transfer group
                 */
                group direct_information_transfer_group {
                    
                    /**
                     * @desc Receive template for InitiatingMessage/eNB_DIRECT_INFORMATION_TRANSFER message
                     * @param p_value           Expected protocol information elements. Default: ?
garciay's avatar
garciay committed
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.14 eNB DIRECT INFORMATION TRANSFER
                     */
                    template (present) InitiatingMessage mw_eNB_Direct_Information_Transfer(
                                                                                            template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_eNBDirectInformationTransfer,
                        criticality := ignore,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_eNB_Direct_Information_Transfer
                    
                    /**
                     * @desc Receive template eNB_DIRECT_INFORMATION_TRANSFER/IEs message 
                     * @param p_RIMTransfer  TIM transfer value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.14 eNB DIRECT INFORMATION TRANSFER
                     */
                    template (present) RecordOf_ProtocolIE mw_eNBDirectInformationTransfer_EDT(
                                                                                               template (present) Inter_SystemInformationTransferType p_value := ?
                    ) := {
                        {
                            id := S1AP_Constants.id_Inter_SystemInformationTransferTypeEDT,
                            criticality := reject,
                            value_ := { Inter_SystemInformationTransferType := p_value }
                        }
                    } // End of template mw_eNBDirectInformationTransferIEs_EDT
                    
                    /**
                     * @desc Receive template MME_DIRECT_INFORMATION_TRANSFER/IEs message 
                     * @param p_RIMTransfer  TIM transfer value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.15 MME DIRECT INFORMATION TRANSFER
                     */
                    template (present) RecordOf_ProtocolIE mw_mMEDirectInformationTransfer(
                                                                                           template (present) Inter_SystemInformationTransferType p_value := ?
                    ) := {
                        {
                            id := S1AP_Constants.id_Inter_SystemInformationTransferTypeEDT,
                            criticality := reject,
                            value_ := { Inter_SystemInformationTransferType := p_value }
                        }
                    } // End of template mw_eNBDirectInformationTransferIEs_EDT
                    
                    /**
                     * @desc Receive template for ENBDirectInformationTransferIEs message 
                     * @param p_RIMTransfer  Expected RIM value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.55 Inter-system Information Transfer Type
                     */
                    template (present) Inter_SystemInformationTransferType mw_Inter_SystemInformationTransferType(
                                                                                                                  template (present) RIMTransfer p_RIMTransfer := ?
                    ) := {
                        rIMTransfer := p_RIMTransfer
                    } // End of template mw_Inter_SystemInformationTransferType
                    
                    /**
                     * @desc Receive template for RIMTransfer message 
                     * @param p_RIMTransfer  Expected RIM value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.23 RIM Transfer
                     */
                    template RIMTransfer mw_RIMTransfer(
                                                        template (present) RIMInformation p_rIMInformation := ?,
                                                        template RIMRoutingAddress p_rIMRoutingAddress := *
                    ) := {
                        rIMInformation     := p_rIMInformation,
                        rIMRoutingAddress  := p_rIMRoutingAddress,
                        iE_Extensions      := omit
                    } // End of template mw_RIMTransfer
                    
                    /**
                     * @desc Receive template for RIMRoutingAddress/GERAN-Cell-ID message 
                     * @param p_gERAN_Cell_ID  Expected GERAN_Cell_ID value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.25 RIM Routing Address
                     */
                    template (present) RIMRoutingAddress mw_rIMRoutingAddress_gERAN_Cell_ID(
                                                                                            template (present) GERAN_Cell_ID p_gERAN_Cell_ID := ?
                    ) := {
                        gERAN_Cell_ID := p_gERAN_Cell_ID
                    } // End of template mw_rIMRoutingAddress_gERAN_Cell_ID
                    
                    /**
                     * @desc Receive template for RIMRoutingAddress/TargetRNC-ID message 
                     * @param p_gERAN_Cell_ID  Expected TargetRNC_ID value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.25 RIM Routing Address
                     */
                    template (present) RIMRoutingAddress mw_rIMRoutingAddress_targetRNC_ID(
                                                                                           template (present) TargetRNC_ID p_targetRNC_ID := ?
                    ) := {
                        targetRNC_ID := p_targetRNC_ID
                    } // End of template mw_rIMRoutingAddress_targetRNC
                    
                    /**
                     * @desc Receive template for RIMRoutingAddress/eHRPD-Sector-ID message 
                     * @param p_gERAN_Cell_ID  Expected eHRPD-Sector-ID value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.25 RIM Routing Address
                     */
                    template (present) RIMRoutingAddress mw_rIMRoutingAddress_eHRPD_Sector_ID(
                                                                                              template (present) Oct16 p_eHRPD_Sector_ID := ?
                    ) := {
                        eHRPD_Sector_ID := p_eHRPD_Sector_ID
                    } // End of template mw_rIMRoutingAddress_eHRPD_Sector_ID
                    
                    /**
                     * @desc Receive template for InitiatingMessage/MME_DIRECT_INFORMATION_TRANSFER message
                     * @param p_value           Expected values. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.15 MME DIRECT INFORMATION TRANSFER
                     */
                    template (present) InitiatingMessage mw_Mme_Direct_Information_Transfer(
                                                                                            template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_MMEDirectInformationTransfer,
                        criticality := ignore,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_Mme_Direct_Information_Transfer
                    
                    
                } // End of group direct_information_transfer_group 
                
                /**
                 * @desc Receive message for MME configuration transfer group
                 */
                group configuration_transfer_group {
garciay's avatar
garciay committed
                    
garciay's avatar
garciay committed
                    /**
                     * @desc Receive template for InitiatingMessage/eNB_CONFIGURATION_TRANSFER message
                     * @param p_value           Expected values. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.16 eNB CONFIGURATION TRANSFER
                     */
                    template (present) InitiatingMessage mw_eNB_Configuration_Transfer(
                                                                                       template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_eNBConfigurationTransfer,
                        criticality := ignore,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_eNB_Configuration_Transfer
garciay's avatar
garciay committed
                    
garciay's avatar
garciay committed
                    /**
                     * @desc Receive template for InitiatingMessage/MME_CONFIGURATION_TRANSFER message
                     * @param p_value           Expected values. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.17 MME CONFIGURATION TRANSFER
                     */
                    template (present) InitiatingMessage mw_Mme_Configuration_Transfer(
                                                                                       template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_MMEConfigurationTransfer,
                        criticality := ignore,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_Mme_Configuration_Transfer
garciay's avatar
garciay committed
                    
garciay's avatar
garciay committed
                    /**
                     * @desc Receive template for SON Configuration Transfer on MME side
                     * @param p_value Expected SONConfigurationTransfer value
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.26 SON Configuration Transfer
                     */
                    template (present) RecordOf_ProtocolIE mw_sON_Configuration_Transfer_MCT(
                                                                                             template (present) SONConfigurationTransfer p_value := ?
                    ) := {
                        {
                            id := S1AP_Constants.id_SONConfigurationTransferMCT,
                            criticality := ignore,
                            value_ := { SONConfigurationTransfer := p_value }
                        }
                    } // End of template mw_sON_Configuration_Transfer_MCT
                    
                    /**
                     * @desc Receive template for SON Configuration Transfer on ENB side
                     * @param p_value Expected SONConfigurationTransfer value
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.26 SON Configuration Transfer
                     */
                    template (present) RecordOf_ProtocolIE mw_sON_Configuration_Transfer_ECT(
                                                                                             template (present) SONConfigurationTransfer p_value := ?
                    ) := {
                        {
                            id := S1AP_Constants.id_SONConfigurationTransferECT,
                            criticality := ignore,
                            value_ := { SONConfigurationTransfer := p_value }
                        }
                    } // End of template mw_sON_Configuration_Transfer_ECT
                    
                } // End of group configuration_transfer_group
garciay's avatar
garciay committed
                
garciay's avatar
garciay committed
                /**
                 * @desc Receive messages for LPPa transport group
                 */
                group LPPa_transport_group {
garciay's avatar
garciay committed
                    
                    /**
garciay's avatar
garciay committed
                     * @desc Receive template for InitiatingMessage/UPLINK_UE_ASSOCIATED_LPPA_TRANSPORT message
                     * @param p_value           Expected values. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.2 UPLINK UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) InitiatingMessage mw_UplinkUEAssociatedLppaTransport(
                                                                                            template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_uplinkUEAssociatedLPPaTransport,
                        criticality := ignore,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_UplinkUEAssociatedLppaTransport
                    
                    /**
                     * @desc Receive template for InitiatingMessage/DOWNLINK_UE_ASSOCIATED_LPPA_TRANSPORT message
                     * @param p_value           Expected values. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.1 DOWNLINK UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) InitiatingMessage mw_DownlinkUEAssociatedLppaTransport(
                                                                                              template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_downlinkUEAssociatedLPPaTransport,
                        criticality := ignore,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_DownlinkUEAssociatedLppaTransport
                    
                    /**
                     * @desc Receive template for SuccessfulOutcome/UPLINK_NONE_UE_ASSOCIATED_LPPA_TRANSPORT message
                     * @param p_value           Expected values. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.4 UPLINK NONE UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) InitiatingMessage mw_UplinkNonUEAssociatedLppaTransport(
                                                                                               template (present) RecordOf_ProtocolIE p_value := ?
                    ) := {
                        procedureCode := id_uplinkNonUEAssociatedLPPaTransport,
                        criticality := ignore,
                        value_ := {RecordOf_ProtocolIE := p_value}
                    } // End of template mw_UplinkNonUEAssociatedLppaTransport
                    
                    /**
                     * @desc Receive template for InitiatingMessage/DOWNLINK_NONE_UE_ASSOCIATED_LPPA_TRANSPORT message
garciay's avatar
garciay committed
                     * @param p_value           Expected procedure code. Default: ?
garciay's avatar
garciay committed
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.3 DOWNLINK NONE UE ASSOCIATED LPPA TRANSPORT
garciay's avatar
garciay committed
                     */
garciay's avatar
garciay committed
                    template (present) InitiatingMessage mw_DownlinkNonUEAssociatedLppaTransport(
                                                                                                 template (present) RecordOf_ProtocolIE p_value := ?
garciay's avatar
garciay committed
                    ) := {
garciay's avatar
garciay committed
                        procedureCode := id_downlinkNonUEAssociatedLPPaTransport,
                        criticality := ignore,
garciay's avatar
garciay committed
                        value_ := {RecordOf_ProtocolIE := p_value}
garciay's avatar
garciay committed
                    } // End of template mw_DownlinkNonUEAssociatedLppaTransport
pintar's avatar
pintar committed
                    
garciay's avatar
garciay committed
                    /**
                     * @desc Receive template UPLINK_UE_ASSOCIATED_LPPA_TRANSPORT/IEs message 
                     * @param p_MME_value   MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value   eNB UE S1AP ID value. Default: ?
                     * @param p_Routing_ID  Routing ID value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.2 UPLINK UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) RecordOf_ProtocolIE mw_UplinkUEAssociatedLppaTransportIEs(
                                                                                                 template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                                 template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                                 template (present) UInt8 p_Routing_ID := ?
pintar's avatar
pintar committed
                        mw_MME_UE_S1AP_ID(p_MME_value, ignore),
                        mw_ENB_UE_S1AP_ID(p_ENB_value, ignore),
                        mw_Routing_ID_IE(p_Routing_ID)
garciay's avatar
garciay committed
                    } // End of template mw_UplinkUEAssociatedLppaTransportIEs
pintar's avatar
pintar committed
                    
garciay's avatar
garciay committed
                    /**
                     * @desc Receive template UPLINK_UE_ASSOCIATED_LPPA_TRANSPORT/IEs message 
                     * @param p_MME_value   MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value   eNB UE S1AP ID value. Default: ?
                     * @param p_Routing_ID  Routing ID value. Default: ?
                     * @param p_LPPa_PDU    LPPa-PDU value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.2 UPLINK UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) RecordOf_ProtocolIE mw_UplinkUEAssociatedLppaTransportIEs_LPPa_PDU(
                                                                                                          template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                                          template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                                          template (present) UInt8 p_Routing_ID := ?,
                                                                                                          template (present) octetstring p_LPPa_PDU := ?
                    ) modifies mw_UplinkUEAssociatedLppaTransportIEs := {
                        mw_MME_UE_S1AP_ID(p_MME_value, ignore),
                        mw_ENB_UE_S1AP_ID(p_ENB_value, ignore),
                        mw_Routing_ID_IE(p_Routing_ID),
                        mw_LPPa_PDU_IE(p_LPPa_PDU)
garciay's avatar
garciay committed
                    } // End of template mw_UplinkUEAssociatedLppaTransportIEs_LPPa_PDU
                    
                    /**
                     * @desc Receive template UPLINK_NONE_UE_ASSOCIATED_LPPA_TRANSPORT/IEs message 
                     * @param p_Routing_ID  Routing ID value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.4 UPLINK NON UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) RecordOf_ProtocolIE mw_UplinkNonUEAssociatedLppaTransportIEs(
                                                                                                    template (present) UInt8 p_Routing_ID := ?
                    ) := {
                        mw_Routing_ID_IE(p_Routing_ID)
garciay's avatar
garciay committed
                    } // End of template mw_UplinkNonUEAssociatedLppaTransportIEs
                    
                    /**
                     * @desc Receive template UPLINK_NONE_UE_ASSOCIATED_LPPA_TRANSPORT/IEs message 
                     * @param p_Routing_ID  Routing ID value. Default: ?
                     * @param p_LPPa_PDU    LPPa-PDU value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.4 UPLINK UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) RecordOf_ProtocolIE mw_UplinkNonUEAssociatedLppaTransportIEs_LPPa_PDU(
                                                                                                             template (present) UInt8 p_Routing_ID := ?,
                                                                                                             template (present) octetstring p_LPPa_PDU := ?
                    ) modifies mw_UplinkNonUEAssociatedLppaTransportIEs := {
                        mw_Routing_ID_IE(p_Routing_ID),
                        mw_LPPa_PDU_IE(p_LPPa_PDU)
garciay's avatar
garciay committed
                    } // End of template mw_UplinkNonUEAssociatedLppaTransportIEs_LPPa_PDU
                    
                    /**
                     * @desc Receive template DOWNLINK_UE_ASSOCIATED_LPPA_TRANSPORT/IEs message 
                     * @param p_MME_value   MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value   eNB UE S1AP ID value. Default: ?
                     * @param p_Routing_ID  Routing ID value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.1 DOWNLINK UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) RecordOf_ProtocolIE mw_DownlinkUEAssociatedLppaTransportIEs(
                                                                                                   template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                                   template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                                   template (present) UInt8 p_Routing_ID := ?
pintar's avatar
pintar committed
                        mw_MME_UE_S1AP_ID(p_MME_value, ignore),
                        mw_ENB_UE_S1AP_ID(p_ENB_value, ignore),
                        mw_Routing_ID_IE(p_Routing_ID)
garciay's avatar
garciay committed
                    } // End of template mw_DownlinkUEAssociatedLppaTransportIEs
garciay's avatar
garciay committed
                    
garciay's avatar
garciay committed
                    /**
                     * @desc Receive template DOWNLINK_UE_ASSOCIATED_LPPA_TRANSPORT/IEs message 
                     * @param p_MME_value   MME UE S1AP ID value. Default: ?
                     * @param p_ENB_value   eNB UE S1AP ID value. Default: ?
                     * @param p_Routing_ID  Routing ID value. Default: ?
                     * @param p_LPPa_PDU    LPPa-PDU value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.1 DOWNLINK UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) RecordOf_ProtocolIE mw_DownlinkUEAssociatedLppaTransportIEs_LPPa_PDU(
                                                                                                            template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                                            template (present) ENB_UE_S1AP_ID p_ENB_value := ?,
                                                                                                            template (present) UInt8 p_Routing_ID := ?,
                                                                                                            template (present) octetstring p_LPPa_PDU := ?
                    ) modifies mw_DownlinkUEAssociatedLppaTransportIEs := {
                        mw_MME_UE_S1AP_ID(p_MME_value, ignore),
                        mw_ENB_UE_S1AP_ID(p_ENB_value, ignore),
                        mw_Routing_ID_IE(p_Routing_ID),
                        mw_LPPa_PDU_IE(p_LPPa_PDU)
garciay's avatar
garciay committed
                    } // End of template mw_DownlinkUEAssociatedLppaTransportIEs_LPPa_PDU
                    
                    /**
                     * @desc Receive template DOWNLINK_NONE_UE_ASSOCIATED_LPPA_TRANSPORT/IEs message 
                     * @param p_Routing_ID  Routing ID value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.2 DOWNLINK UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) RecordOf_ProtocolIE mw_DownlinkNonUEAssociatedLppaTransportIEs(
                                                                                                      template (present) UInt8 p_Routing_ID := ?
                    ) := {
                        mw_Routing_ID_IE(p_Routing_ID)
garciay's avatar
garciay committed
                    } // End of template mw_DownlinkNonUEAssociatedLppaTransportIEs
                    
                    /**
                     * @desc Receive template DOWNLINK_NONE_UE_ASSOCIATED_LPPA_TRANSPORT/IEs message 
                     * @param p_Routing_ID  Routing ID value. Default: ?
                     * @param p_LPPa_PDU    LPPa-PDU value. Default: ?
                     * @see ETSI TS 136 413 V13.4.0 Clause 9.1.19.3 DOWNLINK NON UE ASSOCIATED LPPA TRANSPORT
                     */
                    template (present) RecordOf_ProtocolIE mw_DownlinkNonUEAssociatedLppaTransportIEs_LPPa_PDU(
                                                                                                               template (present) UInt8 p_Routing_ID := ?,
                                                                                                               template (present) octetstring p_LPPa_PDU := ?
                    ) modifies mw_DownlinkNonUEAssociatedLppaTransportIEs := {
                        mw_Routing_ID_IE(p_Routing_ID),
                        mw_LPPa_PDU_IE(p_LPPa_PDU)
garciay's avatar
garciay committed
                    } // End of template mw_DownlinkNonUEAssociatedLppaTransportIEs_LPPa_PDU
                    
                } // End of group LPPa_transport_group
garciay's avatar
garciay committed
            } // End of group receiveClass2
garciay's avatar
garciay committed
            
garciay's avatar
garciay committed
        } //End of group class2
        
    } // End of group g_S1AP
    
    group S1AP_Protocol_IEs {
garciay's avatar
garciay committed
        
garciay's avatar
garciay committed
        group Send_IEs {
garciay's avatar
garciay committed
            
garciay's avatar
garciay committed
             * @desc Send template for Cause protocol IE
             * @param p_cause  Expected Cause value
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.3 Cause
garciay's avatar
garciay committed
            template (value) ProtocolIE m_cause_IE(
                                                   in template (value) Cause p_cause
            ) := {
                id := S1AP_Constants.id_Cause,
                criticality := reject,
                value_ := {Cause := valueof(p_cause)}
            } // End of template m_cause_IE
            
            group E_RAB_IEsend {
garciay's avatar
garciay committed
                 * @desc Send template for MME UE S1AP ID protocol IE
                 * @param p_value  MME/UE S1AP identifier. Default: 1
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.3 MME UE S1AP ID
garciay's avatar
garciay committed
                template (value) ProtocolIE m_MME_UE_S1AP_ID(
                                                             in template (value) MME_UE_S1AP_ID p_value := 1,
                                                             in template (value) ProtocolIE.criticality p_criticality := reject
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_MME_UE_S1AP_ID,
                    criticality := p_criticality,
                    value_ := { MME_UE_S1AP_ID := valueof(p_value) }
                } // End of template m_MME_UE_S1AP_ID
garciay's avatar
garciay committed
                 * @desc Send template for ENB ID protocol IE
                 * @param p_value  ENB identifier. Default: 1
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.4 eNB UE S1AP ID
garciay's avatar
garciay committed
                template (value) ProtocolIE m_ENB_UE_S1AP_ID(
                                                             in template (value) ENB_UE_S1AP_ID p_value := 1,
                                                             in template (value) ProtocolIE.criticality p_criticality := reject
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_eNB_UE_S1AP_ID,
                    criticality := p_criticality,
                    value_ := { ENB_UE_S1AP_ID := p_value }
                } // End of template m_ENB_UE_S1AP_ID
garciay's avatar
garciay committed
                 * @desc Send template for E-RABToBeSetupListBearerSUReq protocol IE
                 * @param p_value  Protocol IE value. Default: m_E_RABToBeSetupItemBearerSUReq
garciay's avatar
garciay committed
                template (value) ProtocolIE m_E_RABToBeSetupList(
                                                                 in template (value) RecordOf_E_RABToBeSetupItemBearerSUReq p_value := { m_E_RABToBeSetupItemBearerSUReq }
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_E_RABToBeSetupListBearerSUReq,
                    criticality := reject,
                    value_ := { RecordOf_E_RABToBeSetupItemBearerSUReq := valueof(p_value) }
                } // End of template m_E_RABToBeSetupList
garciay's avatar
garciay committed
            } // End of group E_RAB_IEsend
            /**
             * @desc Management group
             * @see ETSI DTS/INT-00135-2 Clause 5.2.2.1.7 Management group
             */
            group Management_group {
                
                /**
                 * @desc Send template for ResetType protocol IE 
                 * @param p_value The ResetType value.
                 */
                template (value) ProtocolIE m_resetType_IE(
                                                           in template (value) ResetType p_resetType
                ) := {
                    id := S1AP_Constants.id_ResetType,
                    criticality := reject,
                    value_ := {ResetType := valueof(p_resetType)}
                } // End of template m_resetType_IE
                
                /**
                 * @desc Send template for UE_associatedLogicalS1_ConnectionItem protocol IE 
                 * @param p_value The UE_associatedLogicalS1_ConnectionItem value.
                 */
                template (value) ProtocolIE m_uE_associatedLogicalS1_ConnectionItemResAck_IE(
                                                                                             in template (value) UE_associatedLogicalS1_ConnectionItem p_value
                ) := {
                    id := S1AP_Constants.id_UE_associatedLogicalS1_ConnectionItem,
                    criticality := reject,
                    value_ := { UE_associatedLogicalS1_ConnectionItem := valueof(p_value) }
                } // End of template m_uE_associatedLogicalS1_ConnectionItemResAck_IE
                
                /**
                 * @desc Send template for UE_associatedLogicalS1_ConnectionItem protocol IE
                 * @param p_MME_value   MME UE S1AP ID value
                 * @param p_ENB_value   eNB UE S1AP ID value
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.1.8.1 RESET
                 */
                template (value) UE_associatedLogicalS1_ConnectionItem m_uE_associatedLogicalS1_ConnectionItem(
                                                                                                               in template (value) MME_UE_S1AP_ID p_MME_value,
                                                                                                               in template (value) ENB_UE_S1AP_ID p_ENB_value
                ) := {
                    mME_UE_S1AP_ID  := p_MME_value,
                    eNB_UE_S1AP_ID  := p_ENB_value,
                    iE_Extensions   := omit
                } // End of template m_uE_associatedLogicalS1_ConnectionItem
                
            } // End of group Management_group
            
garciay's avatar
garciay committed
             * @desc Warning message transmission group
             * @see ETSI DTS/INT-00135-2 Clause 5.2.2.1.10  Trace group
garciay's avatar
garciay committed
            group Trace_group {
garciay's avatar
garciay committed
                 * @desc Send template for Trace Activation
                 * @param p_traceActivation Trace Activation value
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.4 Trace Activation
garciay's avatar
garciay committed
                template (value) ProtocolIE m_traceActivation_IE(
                                                                 in template (value) TraceActivation p_traceActivation
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_TraceActivation,
                    criticality := reject,
                    value_ := {TraceActivation := valueof(p_traceActivation)}
                } // End of template m_traceActivation_IE
garciay's avatar
garciay committed
                 * @desc Send template for E-UTRAN Trace ID
                 * @param p_eUTRAN_Trace_ID E-UTRAN Trace ID value
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.4 Trace Activation
garciay's avatar
garciay committed
                template (value) ProtocolIE m_eUTRAN_Trace_ID_IE(
                                                                 in template (value) E_UTRAN_Trace_ID p_eUTRAN_Trace_ID
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_E_UTRAN_Trace_ID,
                    criticality := reject,
                    value_ := {E_UTRAN_Trace_ID := valueof(p_eUTRAN_Trace_ID)}
                } // End of template m_eUTRAN_Trace_ID_IE
garciay's avatar
garciay committed
            } // End of group Trace_group
garciay's avatar
garciay committed
             * @desc Warning message transmission group
             * @see ETSI DTS/INT-00135-2 Clause 5.2.2.1.11  Location reporting group
garciay's avatar
garciay committed
            group Location_reporting_group {
garciay's avatar
garciay committed
                 * @desc Send template for RequestType
                 * @param p_request_Type Request Type value
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.34 RequestType
garciay's avatar
garciay committed
                template (value) ProtocolIE m_request_Type_IE(
                                                              in template (value) RequestType p_request_Type
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_RequestType,
                    criticality := reject,
                    value_ := { RequestType := valueof(p_request_Type) }
                } // End of template m_request_Type_IE
garciay's avatar
garciay committed
            } // End of group Location_reporting_group
            
            group Warning_Message_Transmission {
garciay's avatar
garciay committed
                 * @desc Send template for MessageIdentifier IE
                 * @param p_message_Identifier The message identifier value
                 * @see ETSI TS 136 413 Clause 9.2.1.44 Message Identifier
garciay's avatar
garciay committed
                template (value) ProtocolIE m_message_Identifier(
                                                                 in MessageIdentifier p_message_Identifier
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_MessageIdentifier,
                    criticality := reject,
                    value_ := { MessageIdentifier := p_message_Identifier }
                } // End of template m_message_Identifier
garciay's avatar
garciay committed
                 * @desc Send template for SerialNumber IE
                 * @param p_serial_Number The serial number value
                 * @see ETSI TS 136 413 Clause 9.2.1.45 Serial Number
garciay's avatar
garciay committed
                template (value) ProtocolIE m_serial_Number(
                                                            in SerialNumber p_serial_Number
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_SerialNumber,
                    criticality := reject,
                    value_ := { SerialNumber := p_serial_Number }
                } // End of template m_serial_Number
garciay's avatar
garciay committed
                
                /**
garciay's avatar
garciay committed
                 * @desc Send template for SerialNumber IE
                 * @param p_serial_Number The serial number value
                 * @see ETSI TS 136 413 Clause 9.2.1.46 Warning Area List
garciay's avatar
garciay committed
                 */
garciay's avatar
garciay committed
                template (value) ProtocolIE m_warning_Area_List(
                                                                in template (value) WarningAreaList p_warningAreaList
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_WarningAreaList,
                    criticality := ignore,
                    value_ := { WarningAreaList := p_warningAreaList }
                } // End of template m_warning_Area_List
garciay's avatar
garciay committed
                
                /**
garciay's avatar
garciay committed
                 * @desc Send template for The Repetition Period IE
                 * @param p_repetition_Period The repetition period value
                 * @see ETSI TS 136 413 Clause 9.2.1.48 Repetition Period
garciay's avatar
garciay committed
                 */
garciay's avatar
garciay committed
                template (value) ProtocolIE m_repetition_Period(
                                                                in RepetitionPeriod p_repetition_Period
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_RepetitionPeriod,
                    criticality := reject,
                    value_ := { RepetitionPeriod := p_repetition_Period }
                } // End of template m_repetition_Period
garciay's avatar
garciay committed
                
                /**
garciay's avatar
garciay committed
                 * @desc Send template for SerialNumber IE
                 * @param p_number_of_Broadcasts_Requested The number of Broadcasts Requested
                 * @see ETSI TS 136 413 Clause 9.2.1.49 Number of Broadcasts Requested
garciay's avatar
garciay committed
                 */
garciay's avatar
garciay committed
                template (value) ProtocolIE m_number_of_Broadcasts_Requested(
                                                                             in NumberOfBroadcasts p_number_of_Broadcasts_Requested
garciay's avatar
garciay committed
                    id := S1AP_Constants.id_NumberofBroadcastRequest,
garciay's avatar
garciay committed
                    criticality := reject,
garciay's avatar
garciay committed
                    value_ := { NumberOfBroadcasts := p_number_of_Broadcasts_Requested }
                } // End of template m_number_of_Broadcasts_Requested
garciay's avatar
garciay committed
                
garciay's avatar
garciay committed
            } // End of group Warning_Message_Transmission
garciay's avatar
garciay committed
            
        } // End of group Send_IEs
        
        group Receive_IEs{
            
            /**
garciay's avatar
garciay committed
             * @desc Receive template for MME UE S1AP ID protocol IE
             * @param p_value  Expected MME/UE S1AP identifier. Default: ?
garciay's avatar
garciay committed
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.3 MME UE S1AP ID
garciay's avatar
garciay committed
             */
pintar's avatar
pintar committed
            template (present) ProtocolIE mw_MME_UE_S1AP_ID(
                                                            template (present) MME_UE_S1AP_ID p_parm := ?,
                                                            template (present) ProtocolIE.criticality p_criticality := reject
garciay's avatar
garciay committed
            ) := {
                id := S1AP_Constants.id_MME_UE_S1AP_ID,
pintar's avatar
pintar committed
                criticality := p_criticality,
garciay's avatar
garciay committed
                value_ := {MME_UE_S1AP_ID := p_parm}
pintar's avatar
pintar committed
            } // End of template mw_MME_UE_S1AP_ID
garciay's avatar
garciay committed
            
            /**
garciay's avatar
garciay committed
             * @desc Receive template for ENB ID protocol IE
             * @param p_value  Expected ENB identifier. Default: ?
garciay's avatar
garciay committed
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.4 eNB UE S1AP ID
garciay's avatar
garciay committed
             */
pintar's avatar
pintar committed
            template (present) ProtocolIE mw_ENB_UE_S1AP_ID(
                                                            template (present) ENB_UE_S1AP_ID p_parm := ?,
                                                            template (present) ProtocolIE.criticality p_criticality := reject
garciay's avatar
garciay committed
            ) := {
                id := S1AP_Constants.id_eNB_UE_S1AP_ID,
pintar's avatar
pintar committed
                criticality := p_criticality,
garciay's avatar
garciay committed
                value_ := {ENB_UE_S1AP_ID := p_parm}
pintar's avatar
pintar committed
            } // End of template mw_ENB_UE_S1AP_ID
garciay's avatar
garciay committed
            
            /**
pintar's avatar
pintar committed
             * @desc Receive template for E-RABSetupListBearerSUReq protocol IE
garciay's avatar
garciay committed
             * @param p_value  Expected protocol IE value. Default: m_E_RABToBeSetupItemBearerSUReq
garciay's avatar
garciay committed
             */
pintar's avatar
pintar committed
            template (present) ProtocolIE mw_E_RABSetupList(
                                                            template (present) RecordOf_E_RABSetupItemBearerSURes p_value := { mw_E_RABSetupItemBearerSURes }
            ) := {
garciay's avatar
garciay committed
                id := S1AP_Constants.id_E_RABSetupListBearerSURes,
                criticality := ignore,
                value_ := { RecordOf_E_RABSetupItemBearerSURes := p_value }
            } // End of template 
            
pintar's avatar
pintar committed
            template (present) ProtocolIE mw_E_RABFailedToSetupList(
                                                                    template (present) RecordOf_E_RABItem p_value := { ? }
            ) := {
garciay's avatar
garciay committed
                id := S1AP_Constants.id_E_RABFailedToSetupListBearerSURes,
                criticality := ignore,
                value_ := { RecordOf_E_RABItem := p_value }
pintar's avatar
pintar committed
            } // End of template mw_E_RABFailedToSetupList
garciay's avatar
garciay committed
            
            // TODO To be continued
            template (present) ProtocolIE mw_resetType_IE(
                                                          template (present) ResetType p_resetType := ?
            ) := {
                id := S1AP_Constants.id_ResetType,
                criticality := reject,
                value_ := {ResetType := p_resetType}
            } // End of template mw_resetType_IE
            /**
             * @desc Receive template for UE_associatedLogicalS1_ConnectionItem protocol IE 
             * @param p_value The UE_associatedLogicalS1_ConnectionItem value. Default: ?
             */
            template (present) ProtocolIE mw_uE_associatedLogicalS1_ConnectionItemResAck_IE(
                                                                                            template (present) UE_associatedLogicalS1_ConnectionItem p_value := ?
            ) := {
                id := S1AP_Constants.id_UE_associatedLogicalS1_ConnectionItem,
                criticality := reject,
                value_ := { UE_associatedLogicalS1_ConnectionItem := p_value }
            } // End of template mw_uE_associatedLogicalS1_ConnectionItemResAck_IE
            /**
             * @desc Receive template for TAI protocol IE 
             * @param p_tAI The TAI value. Default: ?
             */
garciay's avatar
garciay committed
            template (present) ProtocolIE mw_TAI_IE(
                                                    template (present) TAI p_tAI := ?
garciay's avatar
garciay committed
                id := S1AP_Constants.id_TAI,
                criticality := ignore,
                value_ := { TAI := p_tAI }
            } // End of template mw_TAI_IE
            /**
             * @desc Receive template for Global eNB ID protocol IE
             * @param p_global_ENB_ID The Global eNB ID value. Default: ?
             */
garciay's avatar
garciay committed
            template (present) ProtocolIE mw_Global_ENB_ID_IE(
                                                              template (present) Global_ENB_ID p_global_ENB_ID := ?
garciay's avatar
garciay committed
                id := S1AP_Constants.id_Global_ENB_ID,
                criticality := ignore,
                value_ := { Global_ENB_ID := p_global_ENB_ID }
            } // End of template mw_Global_ENB_ID_IE
            /**
             * @desc Receive template for the list of E-RABs Subject to Forwarding protocol IE
             * @param p_eRABDataForwardingItem The list of E-RABs Subject to Forwarding. Default: ?
             */
            template (present) ProtocolIE mw_eRABDataForwardingItem_IE(
                                                                       template (present) RecordOf_E_RABDataForwardingItem p_eRABDataForwardingItems := ?
            ) := {
                id := S1AP_Constants.id_E_RABDataForwardingItem,
                criticality := ignore,
                value_ := { RecordOf_E_RABDataForwardingItem := p_eRABDataForwardingItems}
            } // End of template mw_eRABDataForwardingItem_IE
            
garciay's avatar
garciay committed
             * @desc Receive template for E-UTRAN CGI protocol IE
             * @param p_eUTRAN_CGI  Expected E-UTRAN CGI value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.38 E-UTRAN CGI
garciay's avatar
garciay committed
            template (present) ProtocolIE mw_eUTRAN_CGI_IE(
                                                           template (present) EUTRAN_CGI p_eUTRAN_CGI := ?
garciay's avatar
garciay committed
                id := S1AP_Constants.id_EUTRAN_CGI,
                criticality := reject,
                value_ := {EUTRAN_CGI := p_eUTRAN_CGI}
            } // End of template mw_eUTRAN_CGI_IE
garciay's avatar
garciay committed
             * @desc Receive template for E-UTRAN Trace ID protocol IE
             * @param p_eUTRAN_CGI  Expected E-UTRAN Trace ID value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.1.11.2 TRACE FAILURE INDICATION
garciay's avatar
garciay committed
            template (present) ProtocolIE mw_eUTRAN_Trace_ID_IE(
                                                                template (present) E_UTRAN_Trace_ID p_eUTRAN_Trace_ID := ?
garciay's avatar
garciay committed
                id := S1AP_Constants.id_E_UTRAN_Trace_ID,
                criticality := reject,
                value_ := {E_UTRAN_Trace_ID := p_eUTRAN_Trace_ID}
            } // End of template mw_eUTRAN_Trace_ID_IE
garciay's avatar
garciay committed
             * @desc Receive template for Type Request protocol IE
             * @param p_request_Type  Expected RequestType value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.34 Request Type
garciay's avatar
garciay committed
            template (present) ProtocolIE mw_request_Type_IE(
                                                             template (present) RequestType p_request_Type := ?
garciay's avatar
garciay committed
                id := S1AP_Constants.id_RequestType,
                criticality := reject,
                value_ := {RequestType := p_request_Type}
            } // End of template mw_request_Type_IE
garciay's avatar
garciay committed
             * @desc Receive template for Cause protocol IE
             * @param p_cause  Expected Cause value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.3 Cause
garciay's avatar
garciay committed
            template (present) ProtocolIE mw_cause_IE(
                                                      template (present) Cause p_cause := ?
garciay's avatar
garciay committed
                id := S1AP_Constants.id_Cause,
                criticality := reject,
                value_ := {Cause := p_cause}
            } // End of template mw_cause_IE
            /**
             * @desc Receive template for CDMA2000-PDU
             * @param p_traceActivation The expected CDMA2000-PDU value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.23 CDMA2000-PDU. Default: ?
             */
            template (present) ProtocolIE mw_cdma2000_Pdu_IE(
                                                             template (present) octetstring p_cdma2000PDU := ?
            ) := {
                id := S1AP_Constants.id_cdma2000PDU,
                criticality := reject,
                value_ := {octetstring := p_cdma2000PDU}
            } // End of template mw_cdma2000_Pdu_IE
            
            /**
             * @desc Receive template for CDMA2000 RAT Type
             * @param p_traceActivation The expected CDMA2000-PDU value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.24 CDMA2000 RAT Type. Default: ?
             */
            template (present) ProtocolIE mw_cdma2000_RAT_Type_IE(
                                                                  template (present) Cdma2000RATType p_cdma2000RATType := ?
            ) := {
                id := S1AP_Constants.id_cdma2000RATType,
                criticality := reject,
                value_ := {Cdma2000RATType := p_cdma2000RATType}
            } // End of template mw_cdma2000_RAT_Type_IE
            
            /**
             * @desc Receive template for CDMA2000-SectorId
             * @param p_traceActivation The expected CDMA2000-SectorId value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.23 CDMA2000-SectorId. Default: ?
             */
            template (present) ProtocolIE mw_cdma2000_SectorId_IE(
                                                                  template (present) octetstring p_cdma2000SectorId := ?
            ) := {
                id := S1AP_Constants.id_cdma2000SectorID,
                criticality := reject,
                value_ := {octetstring := p_cdma2000SectorId}
            } // End of template mw_cdma2000_SectorId_IE
            
            /**
             * @desc Receive template for E Radio Capability
             * @param p_traceActivation The expected E Radio Capability value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.27 UE Radio Capability. Default: ?
             */
            template (present) ProtocolIE mw_ueRadioCapability_IE(
                                                                  template (present) octetstring p_ueRadioCapability := ?
            ) := {
                id := S1AP_Constants.id_UERadioCapability,
                criticality := reject,
                value_ := {octetstring := p_ueRadioCapability}
            } // End of template mw_ueRadioCapability_IE
            
            /**
             * @desc Receive template for CDMA2000 RAT Type
             * @param p_traceActivation The expected CDMA2000-PDU value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.28 CDMA2000 HO Status. Default: ?
             */
            template (present) ProtocolIE mw_cdma2000_HO_Status_IE(
                                                                   template (present) Cdma2000HOStatus p_cdma2000HOStatus := ?
            ) := {
                id := S1AP_Constants.id_cdma2000HOStatus,
                criticality := reject,
                value_ := {Cdma2000HOStatus := p_cdma2000HOStatus}
            } // End of template mw_cdma2000_HO_Status_IE
            
            /**
             * @desc Receive template for CDMA2000 RAT Type
             * @param p_traceActivation The expected CDMA2000-PDU value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.29 CDMA2000 HO Required Indication. Default: ?
             */
            template (present) ProtocolIE mw_cdma2000_Required_Indication_IE(
                                                                             template (present) Cdma2000HORequiredIndication p_cdma2000HORequiredIndication := ?
            ) := {
                id := S1AP_Constants.id_cdma2000HORequiredIndication,
                criticality := reject,
                value_ := {Cdma2000HORequiredIndication := p_cdma2000HORequiredIndication}
            } // End of template mw_cdma2000_Required_Indication_IE
            
garciay's avatar
garciay committed
             * @desc Receive template for Trace Activation
             * @param p_traceActivation The expected Trace Activation value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.4 Trace Activation
garciay's avatar
garciay committed
            template (present) ProtocolIE mw_traceActivation_IE(
                                                                template (present) TraceActivation p_traceActivation := ?
garciay's avatar
garciay committed
                id := S1AP_Constants.id_TraceActivation,
                criticality := reject,
                value_ := {TraceActivation := p_traceActivation}
            } // End of template mw_traceActivation_IE
garciay's avatar
garciay committed
             * @desc Receive template for Deactivate Trace
             * @param p_traceActivation The expected Trace Deactivate Trace. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.1.11.3 DEACTIVATE TRACE
garciay's avatar
garciay committed
            template (present) ProtocolIE mw_deactivateTrace_IE(
                                                                template (present) DeactivateTrace p_deactivateTrace := ?
garciay's avatar
garciay committed
                id := S1AP_Constants.id_DeactivateTrace,
                criticality := reject,
                value_ := {DeactivateTrace := p_deactivateTrace}
            } // End of template mw_deactivateTrace_IE
            /**
             * @desc  Receive template for Transport Layer Address
             * @param p_transportLayerAddress  Transport Layer Address value. Default: ?.
             */
            template (present) ProtocolIE mw_transportLayerAddress_IE(
                                                                      template (present) bitstring p_transportLayerAddress := ?
            ) := {
                id := S1AP_Constants.id_TraceCollectionEntityIPAddress,
                criticality := reject,
                value_ := { bitstring := p_transportLayerAddress }
            } // End of template mw_transportLayerAddress_IE
            
            /**
             * @desc Receive template for LPPa-PDU
garciay's avatar
garciay committed
             * @param p_value The expected Routing ID value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.32 LPPa-PDU
            template (present) ProtocolIE mw_LPPa_PDU_IE(
                                                         template (present) octetstring p_value := ?
            ) := {
                id := S1AP_Constants.id_LPPa_PDU,
                criticality := ignore,
                value_ := { LPPa_PDU := p_value }
            } // End of template mw_LPPa_PDU_IE
garciay's avatar
garciay committed
             * @param p_value The expected Routing ID value. Default: ?
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.33 Routing ID
            template (present) ProtocolIE mw_Routing_ID_IE(
                                                           template (present) UInt8 p_value := ?
            ) := {
                id := S1AP_Constants.id_Routing_ID,
                criticality := ignore,
                value_ := { Routing_ID := p_value }
            } // End of template mw_Routing_ID_IE
garciay's avatar
garciay committed
            /**
             * @desc Send template for MessageIdentifier IE
             * @param p_message_Identifier The expected message identifier value. Default: ?
             * @see ETSI TS 136 413 Clause 9.2.1.44 Message Identifier
             */
            template (present) ProtocolIE mw_message_Identifier_IE(
                                                                   template (present) MessageIdentifier p_message_Identifier := ?
garciay's avatar
garciay committed
            ) := {
                id := S1AP_Constants.id_MessageIdentifier,
                criticality := reject,
                value_ := { MessageIdentifier := p_message_Identifier }
            } // End of template mw_Message_Identifier
            
            /**
             * @desc Receive template for SerialNumber IE
             * @param p_serial_Number The expected serial number value. Default: ?
             * @see ETSI TS 136 413 Clause 9.2.1.45 Serial Number
             */
           template (present) ProtocolIE mw_serial_Number_IE(
                                                             template (present) SerialNumber p_serial_Number := ?
garciay's avatar
garciay committed
            ) := {
                id := S1AP_Constants.id_SerialNumber,
                criticality := reject,
                value_ := { SerialNumber := p_serial_Number }
            } // End of template mw_serial_Number_IE
garciay's avatar
garciay committed
            
            /**
             * @desc Receive template for SerialNumber IE
             * @param p_serial_Number The expected warning area value. Default: ?
             * @see ETSI TS 136 413 Clause 9.2.1.46 Warning Area List
             */
            template (present) ProtocolIE mw_warning_Area_List_IE(
                                                                  template (present) WarningAreaList p_warningAreaList := ?
garciay's avatar
garciay committed
            ) := {
                id := S1AP_Constants.id_WarningAreaList,
                criticality := ignore,
                value_ := { WarningAreaList := p_warningAreaList }
            } // End of template mw_warning_Area_List_IE
garciay's avatar
garciay committed
            
            /**
             * @desc Receive template for The Repetition Period IE
             * @param p_repetition_Period The expected repetition period value. Default: ?
             * @see ETSI TS 136 413 Clause 9.2.1.48 Repetition Period
             */
            template (present) ProtocolIE mw_repetition_Period_IE(
                                                                  template (present) RepetitionPeriod p_repetition_Period := ?
garciay's avatar
garciay committed
            ) := {
                id := S1AP_Constants.id_RepetitionPeriod,
                criticality := reject,
                value_ := { RepetitionPeriod := p_repetition_Period }
            } // End of template mw_repetition_Period_IE
garciay's avatar
garciay committed
            
            /**
             * @desc Receive template for SerialNumber IE
             * @param p_number_of_Broadcasts_Requested The expected number of Broadcasts Requested value. Default: ?
             * @see ETSI TS 136 413 Clause 9.2.1.49 Number of Broadcasts Requested
             */
            template (present) ProtocolIE mw_number_of_Broadcasts_Requested_IE(
                                                                               template (present) NumberOfBroadcasts p_number_of_Broadcasts_Requested := ?
garciay's avatar
garciay committed
            ) := {
                id := S1AP_Constants.id_NumberofBroadcastRequest,
                criticality := reject,
                value_ := { NumberOfBroadcasts := p_number_of_Broadcasts_Requested }
            } // End of template mw_number_of_Broadcasts_Requested_IE
garciay's avatar
garciay committed
            
            /**
             * @desc Receive template for E-CGI List for Restart
             * @param p_eCGIListForRestart
             * @see ETSI TS 136 413 Clause 9.2.1.38 E-CGI
             */
            template (present) ProtocolIE mw_eCGIListForRestart(
                                                                template (present) ECGIListForRestart p_eCGIListForRestart := ?
            ) := {
                id := S1AP_Constants.id_ECGIListForRestart,
                criticality := reject,
                value_ := { ECGIListForRestart := p_eCGIListForRestart }
            } // End of template mw_eCGIListForRestart
            
            /**
             * @desc Receive template for E-CGI List for Failure
             * @param p_eCGIListForFailure
             * @see ETSI TS 136 413 Clause 9.2.1.38 E-CGI
             */
            template (present) ProtocolIE mw_pWSfailedECGIList(
                                                                template (present) PWSfailedECGIList p_pWSfailedECGIList := ?
            ) := {
                id := S1AP_Constants.id_PWSfailedECGIList,
                criticality := reject,
                value_ := { PWSfailedECGIList := p_pWSfailedECGIList }
            } // End of template mw_pWSfailedECGIList
            
            /**
             * @desc Receive template for TAI List for Restart
             * @param p_eCGIListForRestart
             * @see ETSI TS 136 413 Clause 9.2.3.16 TAI
             */
            template (present) ProtocolIE mw_tAIListForRestart(
                                                               template (present) TAIListForRestart p_tAIListForRestart := ?
            ) := {
                id := S1AP_Constants.id_TAIListForRestart,
                criticality := reject,
                value_ := { TAIListForRestart := p_tAIListForRestart }
            } // End of template mw_tAIListForRestart
            
            /**
             * @desc 
             * @param p_emergencyAreaIDListForRestart
             */
            template (present) ProtocolIE mw_emergencyAreaIDListForRestart(
                                                                           template (present) EmergencyAreaIDListForRestart p_emergencyAreaIDListForRestart := ?
            ) := {
                id := S1AP_Constants.id_EmergencyAreaIDListForRestart,
                criticality := reject,
                value_ := { EmergencyAreaIDListForRestart := p_emergencyAreaIDListForRestart }
            } // End of template mw_emergencyAreaIDListForRestart
            
garciay's avatar
garciay committed
        } // End of group Receive_IEs
        
        group g_IEParameters {
garciay's avatar
garciay committed
            
garciay's avatar
garciay committed
            group causes {
                
                template(value) Cause m_cause_nas(
                                                  in template (value) CauseNas p_nas
                ) := {
                    nas := p_nas
                } // End of template m_cause_nas
                
                template(present) Cause mw_cause_ran(
                                                     template (present) CauseRadioNetwork p_radioNetwork := ?
                ) := {
                    radioNetwork := p_radioNetwork
                } // End of template mw_cause_ran
                
                template(present) Cause mw_cause_transport(
                                                           template (present) CauseTransport p_transport := ?
                ) := {
                    transport := p_transport
                } // End of template mw_cause_transport
                
                template(present) Cause mw_cause_nas(
                                                     template (present) CauseNas p_nas := ?
                ) := {
                    nas := p_nas
                } // End of template mw_cause_nas
                
                template(present) Cause mw_cause_protocol(
                                                          template (present) CauseProtocol p_protocol := ?
                ) := {
                    protocol := p_protocol
                } // End of template mw_cause_protocol
                
                template(present) Cause mw_cause_misc(
                                                      template (present) CauseMisc p_misc := ?
                ) := {
                    misc := p_misc
                } // End of template mw_cause_misc
                
            } // End of group causes
            
garciay's avatar
garciay committed
            /**
             * @desc 
             */
            template(value) E_RABToBeSetupItemBearerSUReq m_E_RABToBeSetupItemBearerSUReq(
                                                                                          in E_RAB_ID p_e_RAB_ID := 0,
                                                                                          in template (value) E_RABLevelQoSParameters p_e_RABlevelQoSParameters := m_e_RABlevelQoSParameters
            ) := {
                e_RAB_ID := p_e_RAB_ID,
                e_RABlevelQoSParameters := valueof(p_e_RABlevelQoSParameters),
                transportLayerAddress := '0'B,
                gTP_TEID := '00000000'O,
                nAS_PDU := '0000'O,
                iE_Extensions := omit
            } // End of template m_E_RABToBeSetupItemBearerSUReq
            
            /**
             * @desc 
             * @param p_qCI
             */
            template (value) E_RABLevelQoSParameters m_e_RABlevelQoSParameters(
                                                                               in QCI p_qCI := 0
garciay's avatar
garciay committed
                qCI := p_qCI,
                allocationRetentionPriority := {
                    priorityLevel := 0,
                    pre_emptionCapability := shall_not_trigger_pre_emption,
                    pre_emptionVulnerability := pre_emptable,
                    iE_Extensions := omit
                },
                gbrQosInformation := omit,
                iE_Extensions := omit
            } // End of template m_e_RABlevelQoSParameters
            
            /**
             * @desc 
             * @param p_e_RAB_ID
             * @param p_cause
             */
            template (present) E_RABSetupItemBearerSURes mw_E_RABSetupItemBearerSURes(
                                                                                      template(present) E_RAB_ID p_e_RAB_ID := ?
garciay's avatar
garciay committed
                 e_RAB_ID                        := p_e_RAB_ID,
                 transportLayerAddress           := '?'B,
                 gTP_TEID                        := ?,
                 iE_Extensions                   := *
            } // End of template mw_E_RABSetupItemBearerSURes
            
            /**
             * @desc 
             */
            template (present) E_RABItem mw_E_RABItem(
                                                      template (present) E_RAB_ID p_e_RAB_ID := ?,
                                                      template (present) Cause p_cause := ?
            ) := {
                e_RAB_ID := p_e_RAB_ID,cause := p_cause,iE_Extensions := *
            } // End of template mw_E_RABItem
            
            group Management_group {
                
                template (value) ResetType m_resetType_all := {
                    s1_Interface := reset_all
                } // End of template m_resetType_all
                
                template (value) ResetType m_resetType_partOfS1_Interface(
                                                                          in template (value) UE_associatedLogicalS1_ConnectionListRes p_partOfS1_Interface
                ) := {
                    partOfS1_Interface := p_partOfS1_Interface
                } // End of template m_resetType_partOfS1_Interface
                 
                template (present) ResetType mw_resetType_partOfS1_Interface(
                                                                             template (present) UE_associatedLogicalS1_ConnectionListRes p_partOfS1_Interface := ?
                ) := {
                    partOfS1_Interface := p_partOfS1_Interface
                } // End of template mw_resetType_partOfS1_Interface
                 
            } // End of group Management_group
garciay's avatar
garciay committed
            
            /**
             * @desc Radio Network Layer Related IEs group
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1 Radio Network Layer Related IEs
garciay's avatar
garciay committed
             */
            group radioNetworkLayerRelated_IEs { 
                
                /**
                 * @desc Receive template for E-RABs Subject to Forwarding List
                 */
                template (present) E_RABDataForwardingItem mw_eRABDataForwardingItem(
                                                                                     template (present) E_RAB_ID p_e_RAB_ID := ?,
                                                                                     template (present) TransportLayerAddress p_dL_transportLayerAddress := ?,
                                                                                     template (present) GTP_TEID p_dL_gTP_TEID := ?,
                                                                                     template (present) TransportLayerAddress p_uL_TransportLayerAddress := ?,
                                                                                     template (present) GTP_TEID p_uL_GTP_TEID := ?
                ) := {
                    e_RAB_ID                    := p_e_RAB_ID,
                    dL_transportLayerAddress    := p_dL_transportLayerAddress,
                    dL_gTP_TEID                 := p_dL_gTP_TEID,
                    uL_TransportLayerAddress    := p_uL_TransportLayerAddress,
                    uL_GTP_TEID                 := p_uL_GTP_TEID,
                    iE_Extensions               := omit
                } // End of template mw_eRABDataForwardingItem
                
                /**
                 * @desc Receive template for RequestType
                 * @param p_eventType    Event Type value
                 * @param p_reportArea   Report Area value
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.34 RequestType
                 */
                template (value) RequestType m_request_Type(
                                                            in template (value) EventType p_eventType,
                                                            in template (value) ReportArea p_reportArea := ecgi
                ) := {
                    eventType       := p_eventType,
                    reportArea      := p_reportArea,
                    iE_Extensions   := omit
                } // End of template m_request_Type
                
                /**
                 * @desc Defines parameters related to a trace activation
                 * @param p_eUTRAN_Trace_ID                 The E-UTRAN Trace ID value. 
                 * @param p_interfacesToTrace               The Interfaces To Trace value. 
                 * @param p_traceDepth                      The Trace depth value. 
                 * @param p_traceCollectionEntityIPAddress  The Transport Layer Address value. 
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.4 Trace Activation
                 */
                template (value) TraceActivation m_traceActivation(
                                                                   in E_UTRAN_Trace_ID p_eUTRAN_Trace_ID,
                                                                   in InterfacesToTrace p_interfacesToTrace,
                                                                   in TraceDepth p_traceDepth,
                                                                   in TransportLayerAddress p_traceCollectionEntityIPAddress
                ) := {
                    e_UTRAN_Trace_ID                := p_eUTRAN_Trace_ID,
                    interfacesToTrace               := p_interfacesToTrace,
                    traceDepth                      := p_traceDepth,
                    traceCollectionEntityIPAddress  := p_traceCollectionEntityIPAddress,
                    iE_Extensions                   := omit
                } // End of template m_traceActivation
                
                /**
                 * @desc Receive template for Global eNB ID protocol IE
                 * @param p_pLMNidentity  Expected PLMNidentity. Default: ?
                 * @param p_eNB_ID        Expected eNodeB identifier. Default: ?
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.37 Global eNB ID
                 */
                template (present) Global_ENB_ID mw_Global_ENB_ID(
                                                                  template (present) PLMNidentity p_pLMNidentity := ?,
                                                                  template (present) ENB_ID p_eNB_ID := ?
                ) := {
                    pLMNidentity    := p_pLMNidentity,
                    eNB_ID          := p_eNB_ID,
                    iE_Extensions   := omit
                } // End of template mw_Global_ENB_ID
                
                /**
                 * @desc Receive template for E-UTRAN CGI
                 * @param p_pLMNidentity    Expected PLMNidentity. Default: ?
                 * @param p_cell_ID         Expected cell identifier. Default: ?
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.38 E-UTRAN CGI
                 */
                template (present) EUTRAN_CGI mw_eUTRAN_CGI(
                                                            template (present) PLMNidentity p_pLMNidentity := ?,
                                                            template (present) CellIdentity p_cell_ID := ?
                ) := {
                    pLMNidentity    := p_pLMNidentity,
                    cell_ID         := p_cell_ID,
                    iE_Extensions   := omit
                } // End of template mw_eUTRAN_CGI
                
                /**
                 * @desc Receive template for RequestType
                 * @param p_eventType    Expected PLMNidentity. Default: ?
                 * @param p_reportArea   Expected cell identifier. Default: ?
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.34 RequestType
                 */
                template (present) RequestType mw_request_Type(
                                                               template (present) EventType p_eventType := ?,
                                                               template (present) ReportArea p_reportArea := ?
                ) := {
                    eventType       := p_eventType,
                    reportArea      := p_reportArea,
                    iE_Extensions   := omit
                } // End of template mw_request_Type
                
                /**
                 * @desc Defines parameters related to a trace activation
                 * @param p_eUTRAN_Trace_ID                 The expected E-UTRAN Trace ID value. Default: ?
                 * @param p_interfacesToTrace               The expected Interfaces To Trace value. Default: ?
                 * @param p_traceDepth                      The expected Trace depth value. Default: ?
                 * @param p_traceCollectionEntityIPAddress  The expected Transport Layer Address value. Default: ?
                 * 
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.1.4 Trace Activation
                 */
                template (present) TraceActivation mw_traceActivation(
                                                                      template (present) E_UTRAN_Trace_ID p_eUTRAN_Trace_ID := ?,
                                                                      template (present) InterfacesToTrace p_interfacesToTrace := ?,
                                                                      template (present) TraceDepth p_traceDepth := ?,
                                                                      template (present) TransportLayerAddress p_traceCollectionEntityIPAddress := ?
                ) := {
                    e_UTRAN_Trace_ID                := p_eUTRAN_Trace_ID,
                    interfacesToTrace               := p_interfacesToTrace,
                    traceDepth                      := p_traceDepth,
                    traceCollectionEntityIPAddress  := p_traceCollectionEntityIPAddress,
                    iE_Extensions                   := omit
                } // End of template mw_traceActivation
                
            } // End of group radioNetworkLayerRelated_IEs
garciay's avatar
garciay committed
            
            /**
             * @desc Transport Network Layer Related IEs group
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.2 Transport Network Layer Related IEs
garciay's avatar
garciay committed
             */
            group transportNetworkLayerRelated_IEs { 
                
            } // End of group transportNetworkLayerRelated_IEs
garciay's avatar
garciay committed
            
            /**
             * @desc NAS Related IEs group
             * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3 NAS Related IEs
garciay's avatar
garciay committed
             */
            group nasRelated_IEs { 
                
                /**
                 * @desc Receive template for UE_associatedLogicalS1_ConnectionItem protocol IE
                 * @param p_MME_value   MME UE S1AP ID value. Default: ?
                 * @param p_ENB_value   eNB UE S1AP ID value. Default: ?
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.1.8.2 RESET ACKNOWLEDGE
                 */
                template (present) UE_associatedLogicalS1_ConnectionItem mw_uE_associatedLogicalS1_ConnectionItem(
                                                                                                                  template (present) MME_UE_S1AP_ID p_MME_value := ?,
                                                                                                                  template (present) ENB_UE_S1AP_ID p_ENB_value := ?
                ) := {
                    mME_UE_S1AP_ID  := p_MME_value,
                    eNB_UE_S1AP_ID  := p_ENB_value,
                    iE_Extensions   := *
                } // End of template mw_uE_associatedLogicalS1_ConnectionItem
                
                /**
                 * @desc Receive template for TAI protocol IE
                 * @param p_pLMNidentity  Expected PLMNidentity. Default: ?
                 * @param p_tAC           Expected TAC. Default: ?
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.16 TAI
                 */
                template (present) TAI mw_TAI(
                                              template (present) PLMNidentity p_pLMNidentity := ?,
                                              template (present) TAC p_tAC := ?
                ) := {
                    pLMNidentity    := p_pLMNidentity,
                    tAC             := p_tAC,
                    iE_Extensions   := *
                } // End of template mw_TAI
                
                /**
                 * @desc Receive template for TargeteNB-ID protocol IE
                 * @param p_global_ENB_ID  Expected Global eNB identifier. Default: ?
                 * @param p_selected_TAI   Expected TAI value. Default: ?
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.26 SON Configuration Transfer
                 */
                template (present) TargeteNB_ID mw_TargeteNB_ID(
                                                                template (present) Global_ENB_ID p_global_ENB_ID := ?,
                                                                template (present) TAI p_selected_TAI := ?
                ) := {
                    global_ENB_ID   := p_global_ENB_ID,
                    selected_TAI    := p_selected_TAI,
                    iE_Extensions   := *
                } // End of template mw_TargeteNB_ID
                
                /**
                 * @desc Receive template for TargeteNB-ID protocol IE
                 * @param p_global_ENB_ID  Expected Global eNB identifier. Default: ?
                 * @param p_selected_TAI   Expected TAI value. Default: ?
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.26 SON Configuration Transfer
                 */
                template (present) SourceeNB_ID mw_SourceeNB_ID(
                                                                template (present) Global_ENB_ID p_global_ENB_ID := ?,
                                                                template (present) TAI p_selected_TAI := ?
                ) := {
                    global_ENB_ID   := p_global_ENB_ID,
                    selected_TAI    := p_selected_TAI,
                    iE_Extensions   := *
                } // End of template mw_SourceeNB_ID
                
                /**
                 * @desc Receive template for SON Configuration Transfer
                 * @param p_value The Routing ID value
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.26 SON Configuration Transfer
                 */
                template (present) SONConfigurationTransfer mw_sON_Configuration_Transfer(
                                                                                          template (present) TargeteNB_ID p_target_eNB_ID := ?,
                                                                                          template (present) SourceeNB_ID p_source_eNB_ID := ?,
                                                                                          template (present) SONInformation p_sONInformation := ?
                ) := {
                    targeteNB_ID    := p_target_eNB_ID,
                    sourceeNB_ID    := p_source_eNB_ID,
                    sONInformation  := p_sONInformation
                } // End of template mw_sON_Configuration_Transfer
                
                /**
                 * @desc Receive template for SONInformation/Request
                 * @param p_sONInformationRequest   Expected SONInformationRequest value. Default: ?
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.27 SON Information
                 */
                template (present) SONInformation mw_sONInformation_Request(
                                                                            template (present) SONInformationRequest p_sONInformationRequest := ?
                ) := {
                    sONInformationRequest := p_sONInformationRequest
                } // End of template mw_sONInformation_Request
                
                /**
                 * @desc Receive template for SONInformation/Reply
                 * @param p_sONInformationReply   Expected SONInformationReply value. Default: ?
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.28 SON Information Reply
                 */
                template (present) SONInformation mw_sONInformation_Reply(
                                                                          template (present) SONInformationReply p_sONInformationReply := ?
                ) := {
                    sONInformationReply := p_sONInformationReply
                } // End of template mw_sONInformation_Reply
                
                /**
                 * @desc Receive template for SONInformation/Report
                 * @param p_sONInformationReport   Expected SONInformationReport value. Default: ?
                 * @see ETSI TS 136 413 V13.4.0 Clause 9.2.3.39 SON Information Report
                 */
                template (present) SONInformation mw_sONInformation_Report(
                                                                           template (present) SONInformation_Extension p_sONInformationReport := ?
                ) := {
                    sONInformation_Extension := p_sONInformationReport
                } // End of template mw_sONInformation_Report
                
            } // End of group nasRelated_IEs
garciay's avatar
garciay committed
            
garciay's avatar
garciay committed
        } // End of group g_IEParameters
        
    } // End of group S1AP_Protocol_IEs
garciay's avatar
garciay committed
    /** 
     * @desc Type functions 
     */
    group functionsForTemplates {
        
    } // End of group functionsForTemplates
    
} // End of module LibS1AP_Templates