From a4a9b98586361333ffabbe2a515b99ab63c84bf9 Mon Sep 17 00:00:00 2001 From: berge Date: Wed, 4 Aug 2010 08:23:40 +0000 Subject: [PATCH] Added TC_DEN_PETY_BV_01 --- ttcn/DENM/LibItsDenm_Functions.ttcn | 20 ++++++++++++++++++++ ttcn/DENM/LibItsDenm_TypesAndValues.ttcn | 3 +++ 2 files changed, 23 insertions(+) diff --git a/ttcn/DENM/LibItsDenm_Functions.ttcn b/ttcn/DENM/LibItsDenm_Functions.ttcn index 7f8d5cab..fd4f9ec5 100644 --- a/ttcn/DENM/LibItsDenm_Functions.ttcn +++ b/ttcn/DENM/LibItsDenm_Functions.ttcn @@ -221,6 +221,26 @@ module LibItsDenm_Functions { //TODO raise action or send message via port + return v_ret; + } + + /** + * @desc Triggers event with expiration time information field and frequency information field + * included from the application layer + * @param p_event The event cause and subcause. + * @param p_expirationTime The expiration time. + * @param p_frequency The frequency. + * @return + */ + function f_triggerEventExpirationTimeFrequency( + template (value) Situation p_event, + template (value) TimeStamp p_expirationTime, + template (value) DecentralizedSituationManagement.frequency p_frequency + ) runs on ItsFa return FncRetCode { + var FncRetCode v_ret := e_success; + + //TODO raise action or send message via port + return v_ret; } diff --git a/ttcn/DENM/LibItsDenm_TypesAndValues.ttcn b/ttcn/DENM/LibItsDenm_TypesAndValues.ttcn index bf328401..c72ec070 100644 --- a/ttcn/DENM/LibItsDenm_TypesAndValues.ttcn +++ b/ttcn/DENM/LibItsDenm_TypesAndValues.ttcn @@ -107,6 +107,9 @@ module LibItsDenm_TypesAndValues { // in milliseconds const TimeStamp c_duration20s := 20000; + const TimeStamp c_duration40s := 40000; + + const float c_eventFrequencyMultiplier := 0.1; } // end denmTimeConstants -- GitLab