Loading ttcn/Common/LibItsCommon_Functions.ttcn +192 −175 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ module LibItsCommon_Functions { function f_getCurrentTime() return TimestampIts { var TimestampIts v_timeStamp := 0; // log("*** f_getCurrentTime: INFO: calling fx_getCurrentTime() ***"); log("*** f_getCurrentTime: INFO: calling fx_getCurrentTime() ***"); v_timeStamp := fx_getCurrentTime(); return v_timeStamp; Loading @@ -41,7 +41,7 @@ module LibItsCommon_Functions { function f_getCurrentTimeMark() return UInt32 { var UInt32 v_timeMark := 0; // log("*** f_getCurrentTimeMark: INFO: calling fx_getCurrentTimeMark() ***"); log("*** f_getCurrentTimeMark: INFO: calling fx_getCurrentTimeMark() ***"); v_timeMark := fx_getCurrentTimeMark(); return v_timeMark; Loading @@ -50,7 +50,6 @@ module LibItsCommon_Functions { } // end generalFunctions group itsFunctions { /** * @desc Gets the station identifier of implementation under test (IUT) * @return IUT's station ID Loading Loading @@ -98,7 +97,6 @@ module LibItsCommon_Functions { return PX_TS_LATITUDE; } // end f_getTsLatitude /** * @desc Gets the current longitude of test system * @return Test system's latitude Loading Loading @@ -169,7 +167,26 @@ module LibItsCommon_Functions { in float p_squareMeters ) return float; } // end externalFunctions /** * @desc Verifiy 'euclidian distance (P1, P2) > threshold' * @param p_p1 Initial position * @param p_p2 Next position * @param p_threshold Threshold value for the comparison * @param p_comparison Comparison operation: -1 is <, 0 is == and 1 is > * @return true if comparison is verified, false otherwise */ external function fx_verify_euclidian_distance(in integer p_p1_lat, in integer p_p1_lon, in integer p_p2_lat, in integer p_p2_lon, in float p_threshold, in integer p_comparison) return boolean; /** * @desc Verifiy '|V2 - V1| > threshold' * @param p_v1 Initial value * @param p_v2 Next value * @param p_threshold Threshold value for the comparison * @param p_comparison Comparison operation: -1 is <, 0 is == and 1 is > * @return true if comparison is verified, false otherwise */ external function fx_verify_delta(in integer p_v1, in integer p_v2, in float p_threshold, in integer p_comparison) return boolean; } // end externalFunctions } // end of module Loading
ttcn/Common/LibItsCommon_Functions.ttcn +192 −175 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ module LibItsCommon_Functions { function f_getCurrentTime() return TimestampIts { var TimestampIts v_timeStamp := 0; // log("*** f_getCurrentTime: INFO: calling fx_getCurrentTime() ***"); log("*** f_getCurrentTime: INFO: calling fx_getCurrentTime() ***"); v_timeStamp := fx_getCurrentTime(); return v_timeStamp; Loading @@ -41,7 +41,7 @@ module LibItsCommon_Functions { function f_getCurrentTimeMark() return UInt32 { var UInt32 v_timeMark := 0; // log("*** f_getCurrentTimeMark: INFO: calling fx_getCurrentTimeMark() ***"); log("*** f_getCurrentTimeMark: INFO: calling fx_getCurrentTimeMark() ***"); v_timeMark := fx_getCurrentTimeMark(); return v_timeMark; Loading @@ -50,7 +50,6 @@ module LibItsCommon_Functions { } // end generalFunctions group itsFunctions { /** * @desc Gets the station identifier of implementation under test (IUT) * @return IUT's station ID Loading Loading @@ -98,7 +97,6 @@ module LibItsCommon_Functions { return PX_TS_LATITUDE; } // end f_getTsLatitude /** * @desc Gets the current longitude of test system * @return Test system's latitude Loading Loading @@ -169,7 +167,26 @@ module LibItsCommon_Functions { in float p_squareMeters ) return float; } // end externalFunctions /** * @desc Verifiy 'euclidian distance (P1, P2) > threshold' * @param p_p1 Initial position * @param p_p2 Next position * @param p_threshold Threshold value for the comparison * @param p_comparison Comparison operation: -1 is <, 0 is == and 1 is > * @return true if comparison is verified, false otherwise */ external function fx_verify_euclidian_distance(in integer p_p1_lat, in integer p_p1_lon, in integer p_p2_lat, in integer p_p2_lon, in float p_threshold, in integer p_comparison) return boolean; /** * @desc Verifiy '|V2 - V1| > threshold' * @param p_v1 Initial value * @param p_v2 Next value * @param p_threshold Threshold value for the comparison * @param p_comparison Comparison operation: -1 is <, 0 is == and 1 is > * @return true if comparison is verified, false otherwise */ external function fx_verify_delta(in integer p_v1, in integer p_v2, in float p_threshold, in integer p_comparison) return boolean; } // end externalFunctions } // end of module