Loading ttcn/DENM/LibItsDenm_Functions.ttcn +17 −0 Original line number Original line Diff line number Diff line Loading @@ -95,6 +95,23 @@ module LibItsDenm_Functions { } } } } /** * @desc Changes the position of the IUT * @param p_latitude * @param p_longitude * @param p_elevation */ function f_utChangePosition(template (value) UtChangePosition p_position) runs on ItsDenm { utPort.send(p_position); alt { [] utPort.receive(UtChangePositionResult:?) { tc_wait.stop; } [] a_utDefault(); } } } // End of group utFunctions } // End of group utFunctions group denmConfigurationFunctions { group denmConfigurationFunctions { Loading ttcn/DENM/LibItsDenm_Templates.ttcn +10 −0 Original line number Original line Diff line number Diff line Loading @@ -105,6 +105,16 @@ module LibItsDenm_Templates { actionId := p_actionId actionId := p_actionId } } template (value) UtChangePosition m_utChangePosition( in template (value) integer p_latitude, in template (value) integer p_longitude, in template (value) integer p_elevation := 0 ) := { latitude := p_latitude, longitude := p_longitude, elevation := p_elevation } } // end utPrimitives } // end utPrimitives } // end primitives } // end primitives Loading ttcn/DENM/LibItsDenm_TestSystem.ttcn +2 −2 Original line number Original line Diff line number Diff line Loading @@ -25,9 +25,9 @@ module LibItsDenm_TestSystem { */ */ type port UpperTesterPort message { type port UpperTesterPort message { out out UtInitialize, UtTrigger, UtUpdate, UtTermination; UtInitialize, UtTrigger, UtUpdate, UtTermination, UtChangePosition; in in UtInitializeResult, UtTriggerResult, UtUpdateResult, UtTerminationResult, UtEventInd; UtInitializeResult, UtTriggerResult, UtUpdateResult, UtTerminationResult, UtChangePositionResult, UtEventInd; } // end UpperTesterPort } // end UpperTesterPort } // end portDefinitions } // end portDefinitions Loading ttcn/DENM/LibItsDenm_TypesAndValues.ttcn +10 −0 Original line number Original line Diff line number Diff line Loading @@ -96,6 +96,16 @@ module LibItsDenm_TypesAndValues { } } type boolean UtTerminationResult; type boolean UtTerminationResult; /** * @desc Upper Tester message to change the position of IUT. Values a relatives */ type record UtChangePosition { integer latitude, integer longitude, integer elevation } type boolean UtChangePositionResult; /** /** * @desc Upper Tester message to check event/status on DENM IUT * @desc Upper Tester message to check event/status on DENM IUT */ */ Loading Loading
ttcn/DENM/LibItsDenm_Functions.ttcn +17 −0 Original line number Original line Diff line number Diff line Loading @@ -95,6 +95,23 @@ module LibItsDenm_Functions { } } } } /** * @desc Changes the position of the IUT * @param p_latitude * @param p_longitude * @param p_elevation */ function f_utChangePosition(template (value) UtChangePosition p_position) runs on ItsDenm { utPort.send(p_position); alt { [] utPort.receive(UtChangePositionResult:?) { tc_wait.stop; } [] a_utDefault(); } } } // End of group utFunctions } // End of group utFunctions group denmConfigurationFunctions { group denmConfigurationFunctions { Loading
ttcn/DENM/LibItsDenm_Templates.ttcn +10 −0 Original line number Original line Diff line number Diff line Loading @@ -105,6 +105,16 @@ module LibItsDenm_Templates { actionId := p_actionId actionId := p_actionId } } template (value) UtChangePosition m_utChangePosition( in template (value) integer p_latitude, in template (value) integer p_longitude, in template (value) integer p_elevation := 0 ) := { latitude := p_latitude, longitude := p_longitude, elevation := p_elevation } } // end utPrimitives } // end utPrimitives } // end primitives } // end primitives Loading
ttcn/DENM/LibItsDenm_TestSystem.ttcn +2 −2 Original line number Original line Diff line number Diff line Loading @@ -25,9 +25,9 @@ module LibItsDenm_TestSystem { */ */ type port UpperTesterPort message { type port UpperTesterPort message { out out UtInitialize, UtTrigger, UtUpdate, UtTermination; UtInitialize, UtTrigger, UtUpdate, UtTermination, UtChangePosition; in in UtInitializeResult, UtTriggerResult, UtUpdateResult, UtTerminationResult, UtEventInd; UtInitializeResult, UtTriggerResult, UtUpdateResult, UtTerminationResult, UtChangePositionResult, UtEventInd; } // end UpperTesterPort } // end UpperTesterPort } // end portDefinitions } // end portDefinitions Loading
ttcn/DENM/LibItsDenm_TypesAndValues.ttcn +10 −0 Original line number Original line Diff line number Diff line Loading @@ -96,6 +96,16 @@ module LibItsDenm_TypesAndValues { } } type boolean UtTerminationResult; type boolean UtTerminationResult; /** * @desc Upper Tester message to change the position of IUT. Values a relatives */ type record UtChangePosition { integer latitude, integer longitude, integer elevation } type boolean UtChangePositionResult; /** /** * @desc Upper Tester message to check event/status on DENM IUT * @desc Upper Tester message to check event/status on DENM IUT */ */ Loading