Loading ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Functions.ttcn +24 −14 Original line number Diff line number Diff line Loading @@ -117,8 +117,6 @@ module ItsRSUsSimulator_Functions { //Initialze the Config module //cfPort.send(CfInitialize:{}); //activate(a_process_ut_command()); // Initialisations f_setup_rsu(vc_rsu_id); Loading Loading @@ -419,7 +417,7 @@ module ItsRSUsSimulator_Functions { } // End of function f_setup_rsu /*function f_process_cf_event( function f_process_cf_event( in CfEvent p_cfEvent ) runs on ItsRSUsSimulator return boolean { var template (value) CfResult v_result := true; Loading Loading @@ -450,8 +448,8 @@ module ItsRSUsSimulator_Functions { cfPort.send(v_result); return false; }*/ // End of function f_process_cf_event return true; } // End of function f_process_cf_event function f_prepare_beacon( out template (value) GnRawPayload p_payload Loading Loading @@ -868,15 +866,27 @@ module ItsRSUsSimulator_Functions { return v_out } /*altstep a_process_ut_command() runs on ItsRSUsSimulator { [PICS_GENERATE_CAM == true] utPort.receive(UtCamInitialize:?) { utPort.send(UtCamResults: { utCamInitializeResult := true }); altstep a_process_cf_ut_command() runs on ItsRSUsSimulator { [vc_cam == true] cfPort.receive(UtCamInitialize:?) { cfPort.send(UtCamResults: { utCamInitializeResult := true } ); repeat; } [vc_denm == true] cfPort.receive(UtDenmInitialize:?) { cfPort.send(UtDenmResults: { utDenmInitializeResult := true } ); repeat; } [PICS_GENERATE_DENM == true] utPort.receive(UtDenmInitialize:?) { utPort.send(UtDenmResults: { utDenmInitializeResult := true }); [vc_beacon == true] cfPort.receive(UtGnInitialize:?) { cfPort.send(UtGnResults: { utGnInitializeResult := true } ); repeat; } [] utPort.receive { /* [PICS_GENERATE_DENM == true] utPort.receive(UtDenmInitialize:?) { */ /* utPort.send(UtDenmResults: { utDenmInitializeResult := true }); */ /* } */ [] cfPort.receive { // Ignore it log("*** " & testcasename() & ": INFO: Unexpected CF message received ***"); repeat; } }*/ } // End of 'altstep' statement } // End of module ItsRSUsSimulator_Functions ttcn/AtsRSUsSimulator/ItsRSUsSimulator_TestCases.ttcn +6 −12 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ module ItsRSUsSimulator_TestCases { import from LibItsGeoNetworking_Templates all; // LibItsCam import from LibItsCam_TypesAndValues all; import from LibItsCam_EncdecDeclarations all; // LibItsDenm Loading @@ -41,7 +42,7 @@ module ItsRSUsSimulator_TestCases { // Local variables var template (value) GnRawPayload v_payload; var GeoNetworkingInd v_gnInd; //var CfEvent v_cfEvent; var CfEvent v_cfEvent; // Test control Loading @@ -51,6 +52,7 @@ module ItsRSUsSimulator_TestCases { // Test adapter configuration // Preamble activate(a_process_cf_ut_command()); f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success); // Test Body Loading Loading @@ -107,12 +109,12 @@ module ItsRSUsSimulator_TestCases { // Nothing to do, just for logging purposes repeat; } /*[] cfPort.receive(CfEvent:?) -> value v_cfEvent { //log("*** " & testcasename() & ": DEBUG: Configuration port command:", v_cfEvent, " ***"); [] cfPort.receive(CfEvent:?) -> value v_cfEvent { log("*** " & testcasename() & ": DEBUG: Configuration port command:", v_cfEvent, " ***"); if (f_process_cf_event(v_cfEvent) == true) { repeat; } }*/ } [vc_beacon == true] tc_beacon.timeout { log("*** " & testcasename() & ": DEBUG: Processing BEACON ***"); f_prepare_beacon(v_payload); Loading Loading @@ -321,10 +323,6 @@ module ItsRSUsSimulator_TestCases { tc_ac.start; repeat; } /*[] cfPort.receive { tc_cam.stop; all component.stop; }*/ [] tc_ac.timeout { log("*** " & testcasename() & ": DEBUG: No CAM message received ***"); //all component.stop; Loading Loading @@ -412,10 +410,6 @@ module ItsRSUsSimulator_TestCases { } } } /*[] cfPort.receive { tc_wait.stop; repeat; }*/ [] tc_ac.timeout { log("*** " & testcasename() & ": DEBUG: No CAM message received ***"); } Loading ttcn/AtsRSUsSimulator/ItsRSUsSimulator_TestSystem.ttcn +10 −2 Original line number Diff line number Diff line Loading @@ -8,6 +8,14 @@ module ItsRSUsSimulator_TestSystem { import from LibItsGeoNetworking_TestSystem all; import from LibItsGeoNetworking_TypesAndValues all; // LibItsCam import from LibItsCam_TestSystem all; import from LibItsCam_TypesAndValues all; // LibItsDenm import from LibItsDenm_TestSystem all; import from LibItsDenm_TypesAndValues all; // AtsRSUsSimulator import from ItsRSUsSimulator_TypesAndValues all; import from ItsRSUsSimulator_Pics all; Loading Loading @@ -140,9 +148,9 @@ module ItsRSUsSimulator_TestSystem { */ type port ConfigRsuSimulatorPort message { out CfInitialize, CfResult, UtGnResults; CfInitialize, CfResult, UtGnResults, UtCamResults, UtDenmResults; in CfEvent, CfEventInd, UtGnInitialize CfEvent, CfEventInd, UtGnInitialize, UtCamInitialize, UtDenmInitialize } // End of ConfigRsuSimulatorPort } // End of group configRsuSimulatorPort Loading Loading
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_Functions.ttcn +24 −14 Original line number Diff line number Diff line Loading @@ -117,8 +117,6 @@ module ItsRSUsSimulator_Functions { //Initialze the Config module //cfPort.send(CfInitialize:{}); //activate(a_process_ut_command()); // Initialisations f_setup_rsu(vc_rsu_id); Loading Loading @@ -419,7 +417,7 @@ module ItsRSUsSimulator_Functions { } // End of function f_setup_rsu /*function f_process_cf_event( function f_process_cf_event( in CfEvent p_cfEvent ) runs on ItsRSUsSimulator return boolean { var template (value) CfResult v_result := true; Loading Loading @@ -450,8 +448,8 @@ module ItsRSUsSimulator_Functions { cfPort.send(v_result); return false; }*/ // End of function f_process_cf_event return true; } // End of function f_process_cf_event function f_prepare_beacon( out template (value) GnRawPayload p_payload Loading Loading @@ -868,15 +866,27 @@ module ItsRSUsSimulator_Functions { return v_out } /*altstep a_process_ut_command() runs on ItsRSUsSimulator { [PICS_GENERATE_CAM == true] utPort.receive(UtCamInitialize:?) { utPort.send(UtCamResults: { utCamInitializeResult := true }); altstep a_process_cf_ut_command() runs on ItsRSUsSimulator { [vc_cam == true] cfPort.receive(UtCamInitialize:?) { cfPort.send(UtCamResults: { utCamInitializeResult := true } ); repeat; } [vc_denm == true] cfPort.receive(UtDenmInitialize:?) { cfPort.send(UtDenmResults: { utDenmInitializeResult := true } ); repeat; } [PICS_GENERATE_DENM == true] utPort.receive(UtDenmInitialize:?) { utPort.send(UtDenmResults: { utDenmInitializeResult := true }); [vc_beacon == true] cfPort.receive(UtGnInitialize:?) { cfPort.send(UtGnResults: { utGnInitializeResult := true } ); repeat; } [] utPort.receive { /* [PICS_GENERATE_DENM == true] utPort.receive(UtDenmInitialize:?) { */ /* utPort.send(UtDenmResults: { utDenmInitializeResult := true }); */ /* } */ [] cfPort.receive { // Ignore it log("*** " & testcasename() & ": INFO: Unexpected CF message received ***"); repeat; } }*/ } // End of 'altstep' statement } // End of module ItsRSUsSimulator_Functions
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_TestCases.ttcn +6 −12 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ module ItsRSUsSimulator_TestCases { import from LibItsGeoNetworking_Templates all; // LibItsCam import from LibItsCam_TypesAndValues all; import from LibItsCam_EncdecDeclarations all; // LibItsDenm Loading @@ -41,7 +42,7 @@ module ItsRSUsSimulator_TestCases { // Local variables var template (value) GnRawPayload v_payload; var GeoNetworkingInd v_gnInd; //var CfEvent v_cfEvent; var CfEvent v_cfEvent; // Test control Loading @@ -51,6 +52,7 @@ module ItsRSUsSimulator_TestCases { // Test adapter configuration // Preamble activate(a_process_cf_ut_command()); f_selfOrClientSyncAndVerdictPreamble(c_prDone, e_success); // Test Body Loading Loading @@ -107,12 +109,12 @@ module ItsRSUsSimulator_TestCases { // Nothing to do, just for logging purposes repeat; } /*[] cfPort.receive(CfEvent:?) -> value v_cfEvent { //log("*** " & testcasename() & ": DEBUG: Configuration port command:", v_cfEvent, " ***"); [] cfPort.receive(CfEvent:?) -> value v_cfEvent { log("*** " & testcasename() & ": DEBUG: Configuration port command:", v_cfEvent, " ***"); if (f_process_cf_event(v_cfEvent) == true) { repeat; } }*/ } [vc_beacon == true] tc_beacon.timeout { log("*** " & testcasename() & ": DEBUG: Processing BEACON ***"); f_prepare_beacon(v_payload); Loading Loading @@ -321,10 +323,6 @@ module ItsRSUsSimulator_TestCases { tc_ac.start; repeat; } /*[] cfPort.receive { tc_cam.stop; all component.stop; }*/ [] tc_ac.timeout { log("*** " & testcasename() & ": DEBUG: No CAM message received ***"); //all component.stop; Loading Loading @@ -412,10 +410,6 @@ module ItsRSUsSimulator_TestCases { } } } /*[] cfPort.receive { tc_wait.stop; repeat; }*/ [] tc_ac.timeout { log("*** " & testcasename() & ": DEBUG: No CAM message received ***"); } Loading
ttcn/AtsRSUsSimulator/ItsRSUsSimulator_TestSystem.ttcn +10 −2 Original line number Diff line number Diff line Loading @@ -8,6 +8,14 @@ module ItsRSUsSimulator_TestSystem { import from LibItsGeoNetworking_TestSystem all; import from LibItsGeoNetworking_TypesAndValues all; // LibItsCam import from LibItsCam_TestSystem all; import from LibItsCam_TypesAndValues all; // LibItsDenm import from LibItsDenm_TestSystem all; import from LibItsDenm_TypesAndValues all; // AtsRSUsSimulator import from ItsRSUsSimulator_TypesAndValues all; import from ItsRSUsSimulator_Pics all; Loading Loading @@ -140,9 +148,9 @@ module ItsRSUsSimulator_TestSystem { */ type port ConfigRsuSimulatorPort message { out CfInitialize, CfResult, UtGnResults; CfInitialize, CfResult, UtGnResults, UtCamResults, UtDenmResults; in CfEvent, CfEventInd, UtGnInitialize CfEvent, CfEventInd, UtGnInitialize, UtCamInitialize, UtDenmInitialize } // End of ConfigRsuSimulatorPort } // End of group configRsuSimulatorPort Loading