Skip to content
Snippets Groups Projects
Commit bc85e775 authored by berge's avatar berge
Browse files

Implemented TC_DEN_EXTI_BV_01

parent 1cbd23fd
No related branches found
No related tags found
No related merge requests found
......@@ -221,6 +221,23 @@ module LibItsDenm_Functions {
return v_ret;
}
/**
* @desc Triggers event with expiration time information field included from the application layer
* @param p_event The event cause and subcause.
* @param p_expirationTime The expiration time.
* @return
*/
function f_triggerEventExpirationTime(
template (value) Situation p_event,
template (value) TimeStamp p_expirationTime
) runs on ItsFa return FncRetCode {
var FncRetCode v_ret := e_success;
//TODO raise action or send message via port
return v_ret;
}
/**
* @desc Triggers event with additional Event Characteristics information field included from the application layer
......@@ -333,7 +350,7 @@ module LibItsDenm_Functions {
group getFunctions {
/**
* @desc Gets the station identifier to be used.
* @desc Gets the station identifier of IUT.
* @return
*/
function f_getStationId() return StationID {
......@@ -356,6 +373,18 @@ module LibItsDenm_Functions {
return v_eventPos;
}
/**
* @desc Gets the current time
* @return
*/
function f_getCurrentTime() return TimeStamp {
var TimeStamp v_timeStamp;
//TODO get the value from PIXIT or ...
return v_timeStamp;
}
} // end group getFunctions
} // end LibItsDenm_Functions
\ No newline at end of file
......@@ -129,6 +129,14 @@ module LibItsDenm_Templates {
isNegation := p_isNeg
}
template DecentralizedSituationManagement mw_denmMgmtConWithExpiryTime(
template (present) DataVersion p_dataVersion,
template (value) StationID p_stationId,
template (present) DecentralizedSituationManagement.expiryTime p_expiryTime
) modifies mw_denmMgmtCon := {
expiryTime := p_expiryTime
}
} // end group DecentralizedSituationManagementTemplates
group DecentralizedSituationTemplates {
......
......@@ -103,4 +103,11 @@ module LibItsDenm_TypesAndValues {
} // end group denmConstants
group denmTimeConstants {
// in milliseconds
const TimeStamp c_duration20s := 20000;
} // end denmTimeConstants
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment