Commit 2e1a0f62 authored by garciay's avatar garciay
Browse files

RSUsimulator: Add PICS_GENERATE_xxx

parent a1fdee3c
Loading
Loading
Loading
Loading
+42 −42
Original line number Diff line number Diff line
@@ -50,7 +50,11 @@ module ItsRSUsSimulator_Functions {
            
            // Local variables
            var template (value) DenmParmContainers v_denmParmContainers;
            var DENMs v_denms := {};
            var template (omit) DENMs v_denms := omit;
            var template (omit) CAM v_cam := omit;
//            var template (omit) MAPEM v_mapem := omit;
//            var template (omit) SPATEMs v_spatems := omit;
//            var template (omit) SSEM v_ssem := omit;
            var integer v_counter;
            
            // Map
@@ -72,6 +76,7 @@ module ItsRSUsSimulator_Functions {
            vc_longPosVectorRsu := PICS_RSU_PARAMS[PX_RSU_ID - 1].longPosVector;
            // TODO MAPEM
            // TODO IVIM
            if (PICS_GENERATE_DENM) {
                // Build the list of the DENM events
                for (v_counter := 0; v_counter < lengthof(PICS_DENM_EVENTS_RSU[PX_RSU_ID - 1]); v_counter := v_counter + 1) {
                    v_denmParmContainers := m_denmParmContainers(
@@ -89,10 +94,10 @@ module ItsRSUsSimulator_Functions {
                                       v_denmParmContainers.locationContainer
                        )));
                } // End of 'for' loop
            // Build the messages value list for this RSU
            vc_rsuMessagesValueList[PX_RSU_ID - 1] := valueof(
                m_rsuProfile(
                    valueof(
            }
            if (PICS_GENERATE_CAM) {
                // Build the list of the CAM events
                v_cam := valueof(
                    m_camParm(
                        PICS_RSU_PARAMS[PX_RSU_ID - 1].stationID,
                        m_rsuPosition(
@@ -101,8 +106,16 @@ module ItsRSUsSimulator_Functions {
                        ), 
                        PICS_RSU_PARAMS[PX_RSU_ID - 1].pathHistory
                    )
                    ), 
                    v_denms
                );
            } 
            // Build the messages value list for this RSU
            vc_rsuMessagesValueList[PX_RSU_ID - 1] := valueof(
                m_rsuProfile(
                    v_cam, 
                    v_denms/*,
                    v_mapem,
                    v_spatems
                    v_ssem*/
            ));
            if (PICS_RSU_PARAMS[PX_RSU_ID - 1].geoShape == e_geoCircle) {
                vc_geoArea := f_computeCircularArea(vc_longPosVectorRsu, PICS_RSU_PARAMS[PX_RSU_ID - 1].geoParms.radius);
@@ -111,20 +124,6 @@ module ItsRSUsSimulator_Functions {
                setverdict(inconc);
                stop;
            }
            // Sanity checks
            if (not isbound(vc_rsuMessagesValueList[PX_RSU_ID - 1])) {
                log("*** " & testcasename() & ": INCONC: Wrong profiles initialisation ***");
                setverdict(inconc);
                stop;
            } else if (not isbound(vc_rsuMessagesValueList[PX_RSU_ID - 1].cam)) {
                log("*** " & testcasename() & ": INCONC: Wrong CAM initialisation ***");
                setverdict(inconc);
                stop;
            } else if (not isbound(vc_rsuMessagesValueList[PX_RSU_ID - 1].denms)) {
                log("*** " & testcasename() & ": INCONC: Wrong DENM initialisation ***");
                setverdict(inconc);
                stop;
            }
            
        } // End of function f_cf01Up
        
@@ -282,6 +281,7 @@ module ItsRSUsSimulator_Functions {
    function f_processSrem(
                           in GeoNetworkingPdu p_geoNetworkingPdu
    ) runs on ItsRSUsSimulator {
        log("SREM=", p_geoNetworkingPdu)
        // TODO Process message, and send SSEM 
    }
    
+10 −0
Original line number Diff line number Diff line
@@ -287,6 +287,16 @@ module ItsRSUsSimulator_Pics {
    
    group generationFrequencies {
        
        modulepar boolean PICS_GENERATE_CAM := true;
        
        modulepar boolean PICS_GENERATE_DENM := true;
        
        modulepar boolean PICS_GENERATE_IVIM := true;
        
        modulepar boolean PICS_GENERATE_MAPEM_SPATEM := true;
        
        modulepar boolean PICS_GENERATE_SSEM := true;
        
        /**
         * @desc CAM frequency timer
         */
+6 −2
Original line number Diff line number Diff line
@@ -38,8 +38,12 @@ module ItsRSUsSimulator_TestCases {
        f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success);
        
        // Test Body
        if (isbound(vc_rsuMessagesValueList[PX_RSU_ID - 1].cam)) {
            tc_cam.start;
        }
        if (isbound(vc_rsuMessagesValueList[PX_RSU_ID - 1].denm)) {
            tc_denm.start;
        }
        if (isbound(vc_rsuMessagesValueList[PX_RSU_ID - 1].mapem)) {
            tc_mapem.start;
        }
+1 −1

File changed.

Contains only whitespace changes.