Devel2

Fix mistake while creating devel2 branch

Merge request reports

Loading
+159
Changes for lib/LibItsMbr_Templates.ttcn: 159 added lines, 0 removed lines.
Original line number Diff line number Diff line
module LibItsMbr_Templates {

   // LibCommon
    import from LibCommon_BasicTypesAndValues all;
    import from LibCommon_DataStrings all;
    
    // LibHelpers
    import from LibHelpers_Functions all;

    // LibIts
    import from EtsiTs103759Data language "ASN.1:1997" all;
    
    group mbrPrimitives {

        /**
         * @desc    Receive template for EtsiTs103759Data Message (MbrPort Primitive)
         * @param   p_mbrMsg    Expected EtsiTs103759Data Message
         */
        template MbrInd mw_mbrInd (
                                   in template (present) EtsiTs103759Data p_mbrMsg
                                   ) := { 
            msgIn               := p_mbrMsg,
            recvTime            := ?,
            gnNextHeader        := *,
            gnHeaderType        := *,
            gnHeaderSubtype     := *,
            gnLifetime          := *,
            gnTrafficClass      := *,
            btpDestinationPort  := *,
            btpInfo             := *,
            ssp                 := *,
            its_aid             := *
        };
        
        /**
         * @desc    Receive template for EtsiTs103759Data Message (MbrPort Primitive)
         * @param   p_mbrMsg            Expected EtsiTs103759Data Message
         * @param   p_gnNextHeader      GN next header value
         * @param   p_gnHeaderType      GN header type value
         * @param   p_gnHeaderSubtype   GN header subtype value
         * @param   p_gnLifetime        GN packet lifetime value (ms)
         * @param   p_gnTrafficClass    GN traffic class value
         */
        template MbrInd mw_mbrIndWithGnParameters (
                                                   in template (present) EtsiTs103759Data p_mbrMsg,
                                                   in template UInt8 p_gnNextHeader := *,
                                                   in template UInt8 p_gnHeaderType := *,
                                                   in template UInt8 p_gnHeaderSubtype := *,
                                                   in template UInt32 p_gnLifetime := *,
                                                   in template UInt8 p_gnTrafficClass := *
                                                   ) modifies mw_mbrInd := { 
            gnNextHeader := p_gnNextHeader,
            gnHeaderType := p_gnHeaderType,
            gnHeaderSubtype := p_gnHeaderSubtype,
            gnLifetime := p_gnLifetime,
            gnTrafficClass := p_gnTrafficClass    
        };
        
        /**
         * @desc    Receive template for CA Message (DenmPort Primitive)
         * @param   p_caMsg     The expected CA Message
         * @param   p_ssp       SSP security parameter
         * @param   p_its_aid   ITS-AID value
         */
        template MbrInd mw_mbrIndWithSecurityParameters(
                                                        template (present) EtsiTs103759Data p_mbrMsg,
                                                        template Bit256 p_ssp := *,
                                                        template UInt32 p_its_aid := c_its_aid_EtsiTs103759Data
                                                        ) modifies mw_mbrInd := { 
            ssp             := p_ssp,
            its_aid         := p_its_aid
        };
        
        /**
         * @desc    Receive template for EtsiTs103759Data Message (MbrPort Primitive)
         * @param   p_mbrMsg                Expected EtsiTs103759Data Message
         * @param   p_btpDestinationPort    BTP destination port value
         * @param   p_btpInfo               BTP destination port info value (if BTP-B) or BTP source port value (if BTP-A)
         */
        template MbrInd mw_mbrIndWithBtpParameters (
                                                    in template (present) EtsiTs103759Data p_mbrMsg,
                                                    in template UInt16 p_btpDestinationPort := *,
                                                    in template UInt16 p_btpInfo := *
                                                    ) modifies mw_mbrInd := { 
            btpDestinationPort := p_btpDestinationPort,
            btpInfo := p_btpInfo     
        };

        /**
         * @desc    Send template for EtsiTs103759Data Message (MbrPort Primitive)
         * @param   p_mbrMsg EtsiTs103759Data Message to be received
         */    
        template (value) MbrReq m_mbrReq (
                                          in template (value) EtsiTs103759Data p_mbrMsg
                                          ) := { 
            msgOut := p_mbrMsg 
        };

        group mbrUtPrimitives {

            /**
             * @desc Initializes the CAM IUT. 
             */
            template (value) UtMbrInitialize m_camInitialize := {
                hashedId8 := '0000000000000000'O
            }
            
        } // End of group mbrUtPrimitives
        
    } // End of group mbrPrimitives

    group etsiTs103759Data {

        template (value) EtsiTs103759Data m_etsiTs103759Data(
                                                             in UInt8 p_version,
                                                             in Time64 p_generationTime, 
                                                             in template (value) ThreeDLocation p_observationLocation, 
                                                             in template (value) AidSpecificReport p_report                
                                                             ) := {
            version             := p_version,
            generationTime      := p_generationTime, 
            observationLocation := p_observationLocation, 
            report              := p_report 
        } // End of template m_etsiTs103759Data

        template (present) EtsiTs103759Data mw_etsiTs103759Data(
                                                                template (present) UInt8 p_version := ?,
                                                                template (present) Time64 p_generationTime := ?, 
                                                                template (present) ThreeDLocation p_observationLocation := ?, 
                                                                template (present) AidSpecificReport p_report := ?                
                                                                ) := {
            version             := p_version,
            generationTime      := p_generationTime, 
            observationLocation := p_observationLocation, 
            report              := p_report 
        } // End of template mw_etsiTs103759Data

        template (value) MbSingleObservation
    } // End of group etsiTs103759Data

    group camObservation { // FIXME To be checked

        template (value) AidSpecificReport m_cam_specific_report(
                                                                 in template (value) SetMbObsCamBeacon p_content
                                                                 ) := {
            aid     := c-AsrCam,
            content := p_content
        } // End of template m_cam_specific_report

        template (present) AidSpecificReport mw_cam_specific_report(
                                                                    template (present) SetMbObsCamBeacon p_content := ?
                                                                    ) := {
            aid     := c-AsrCam,
            content := p_content
        } // End of template mw_cam_specific_report

    } // End of group camObservation

} // End of module LibItsMbr_Templates
+3
Changes for lib/LibItsMbr_TypesAndValues.ttcn: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
module LibItsMbr_TypesAndValues {

} // End of module LibItsMbr_TypesAndValues
Changes for lib/asn1: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
Subproject commit 3d3ac26ae673de0237d277af6f8e056ff69c6435
+24
Changes for lib/module.mk: 24 added lines, 0 removed lines.
Original line number Diff line number Diff line
sources := \
    LibItsMbr_TypesAndValues.ttcn           \
    LibItsMbr_Templates.ttcn

ifeq (,$(findstring EtsiTs103759Core.asn,$(all_sources)))
sources += \
    asn1/EtsiTs103759Core.asn               \
    asn1/EtsiTs103759BaseTypes.asn          \
    asn1/EtsiTs103759AsrAppAgnostic.asn     \
    asn1/EtsiTs103759AsrCam.asn             \
    asn1/EtsiTs103759AsrDenm.asn            \
    asn1/EtsiTs103759CommonObservations.asn \
    asn1/SaeJ3287AsrBsm.asn                 \
endif           

ifeq (,$(findstring EtsiTs103097Module.asn,$(all_sources)))
sources += asn1/sec_ts103097/EtsiTs103097ExtensionModule.asn           \
           asn1/sec_ts103097/EtsiTs103097Module.asn
endif

ifeq (,$(findstring Ieee1609Dot2.asn,$(all_sources)))
sources += asn1/ieee1609.2/Ieee1609Dot2.asn             \
           asn1/ieee1609.2/Ieee1609Dot2BaseTypes.asn 
endif
+106
Changes for lib_system/LibItsMbr_TestSystem.ttcn: 106 added lines, 0 removed lines.
Original line number Diff line number Diff line
module LibItsMbr_TestSystem language "TTCN-3:2010 Real Time and Performance Testing" {

    // LibCommon
    import from LibCommon_BasicTypesAndValues all;
    import from LibCommon_DataStrings all;

    // LibIts
    import from EtsiTs103759Data language "ASN.1:1997" all;

    // LibItsCommon
    import from LibItsCommon_TestSystem all;
    import from LibItsCommon_TypesAndValues all;

    // LibItsMbr
    import from LibItsMbr_TypesAndValues all;

    group portDefinitions {

        /**
         * @desc Adapter control port
         */
        type port AdapterControlPort message {
            out
                AcGnssPrimitive, AcSecPrimitive;
            in
                AdapterControlResults;
        } // end AdapterControlPort
        
        /**
         * @desc Upper Tester port
         */
        type port UpperTesterPort message {
            out
                UtMbrInitialize, UtMbrTrigger;
            in
                UtMbrResults, UtMbrEventInd;
        } // end UpperTesterPort
        
    } // end portDefinitions

    group interfacePorts {

        group facilityPorts {
            
            group fa1Ports {
    
                /**
                 * @desc FA1 MBR Port (MBR/BTP/GeoNet/RadioNetwork) 
                 */
                type port MbrPort message {
                    in MbrInd;
                    out MbrReq;
                } // End of port MbrPort
                
            } // end fa1Ports
                
        } // End of group facilityPorts
    
    } // End of group interfacePorts
        
    group componentDefinitions {

        /**
         * @desc ITS System Adapter
         */
        type component ItsMbrSystem {
            
            port UpperTesterPort utPort;
            port AdapterControlPort acPort;
            
            // FA1 ports
            port MbrPort mbrPort;

        } // end component ItsAdapter
        
    } // End of group componentDefinitions
    
    /**
     * @desc Test component for ITS Facility layer 
     */
    type component ItsMbr extends ItsBaseComponent {

        port UpperTesterPort utPort;
        port AdapterControlPort acPort;
        
        // FA1 ports
        port MbrPort mbrPort;
        //timers
        
        //component variables
        var MbrInd vc_mbrMsg;
        
        //default
        var default vc_default := null;
        
        //global variables
        var boolean vc_mbrReceived := false;

        var UtMbrEventIndList vc_utEvents := {};
        
        var boolean vc_utDefaultActive := true;
        var boolean vc_mbrDefaultActive := true;
        
    } // End of component ItsMbr

} // End of module LibItsMbr_TestSystem
Loading
Loading