diff --git a/ttcn/DENM/LibItsDenm_Functions.ttcn b/ttcn/DENM/LibItsDenm_Functions.ttcn index 28ad6d59f12f6dc50e17eb3053aed11f075f09d9..d2ded69c1c5508003415e5f6a13b78d23d6f9e5b 100644 --- a/ttcn/DENM/LibItsDenm_Functions.ttcn +++ b/ttcn/DENM/LibItsDenm_Functions.ttcn @@ -130,7 +130,7 @@ module LibItsDenm_Functions { if (p_trigger == e_ets) { f_sendDenMessage( m_denmReq( - m_denmWithCause(c_dataVersionCancellation, p_event) + m_denmWithCause(c_dataVersionCancellation, p_event, f_getCurrentPosition(), f_getStationId()) ) ); } diff --git a/ttcn/DENM/LibItsDenm_Templates.ttcn b/ttcn/DENM/LibItsDenm_Templates.ttcn index 405f515a184cee5d60630f98b942d9273110ba62..54f5f71793d37e2d48fcdaa55783e1264656679e 100644 --- a/ttcn/DENM/LibItsDenm_Templates.ttcn +++ b/ttcn/DENM/LibItsDenm_Templates.ttcn @@ -10,7 +10,6 @@ module LibItsDenm_Templates { //LibIts import from DENM_PDU_Descriptions language "ASN.1:1997" all; import from CAM_PDU_Descriptions language "ASN.1:1997" all; - import from LibItsDenm_Functions all; import from LibIts_Interface all; import from LibItsDenm_TypesAndValues all; @@ -54,21 +53,25 @@ module LibItsDenm_Templates { template DecentralizedEnvironmentalNotificationMessage m_denmWithCause( template (value) DataVersion p_dataVersion, - template (value) Situation p_sit + template (value) Situation p_sit, + template (value) DecentralizedSituationLocation.eventPosition p_eventPosition, + template (value) StationID p_stationId ) := { - management := m_denmMgmtCon(p_dataVersion), + management := m_denmMgmtCon(p_dataVersion, p_stationId), situation := m_denmSitCon(p_sit, informative), location := m_denmSitLoc( - f_getCurrentPosition(), + p_eventPosition, m_locationRef ) } template DecentralizedEnvironmentalNotificationMessage m_denmWithCauseIsNeg( template (value) DataVersion p_dataVersion, template (value) Situation p_sit, + template (value) DecentralizedSituationLocation.eventPosition p_eventPosition, + template (value) StationID p_stationId, template (value) DecentralizedSituationManagement.isNegation p_isNeg ) modifies m_denmWithCause := { - management := m_denmMgmtCon_IsNeg(p_dataVersion, p_isNeg) + management := m_denmMgmtCon_IsNeg(p_dataVersion, p_stationId, p_isNeg) } } // end group DecentralizedEnvironmentalNotificationMessageTemplates @@ -76,13 +79,14 @@ module LibItsDenm_Templates { group DecentralizedSituationManagementTemplates { template DecentralizedSituationManagement m_denmMgmtCon( - template (value) DataVersion p_dataVersion + template (value) DataVersion p_dataVersion, + template (value) StationID p_stationId ) := { protocolVersion := c_protocolVersion_DENM, messageID := c_messageId, generationtime := 0, //TODO document: 0 indicates that the lower layer should add the time while sending actionID := { - stationID := f_getStationId(), + stationID := p_stationId, sequenceNo := 0 }, dataVersion := p_dataVersion, @@ -110,14 +114,16 @@ module LibItsDenm_Templates { } template DecentralizedSituationManagement m_denmMgmtCon_IsNeg( - template (value) DataVersion p_dataVersion, + template (value) DataVersion p_dataVersion, + template (value) StationID p_stationId, template (value) DecentralizedSituationManagement.isNegation p_isNeg ) modifies m_denmMgmtCon := { isNegation := p_isNeg } template DecentralizedSituationManagement mw_denmMgmtCon_IsNeg( - template (present) DataVersion p_dataVersion, + template (present) DataVersion p_dataVersion, + template (value) StationID p_stationId, template (present) DecentralizedSituationManagement.isNegation p_isNeg ) modifies mw_denmMgmtCon := { isNegation := p_isNeg diff --git a/ttcn/LibIts_Interface.ttcn b/ttcn/LibIts_Interface.ttcn index a8f65fab04a546d33e183af1b02b74a623ae28da..e930f3ac05070567a02e34bae6295e5f2cdf9897 100644 --- a/ttcn/LibIts_Interface.ttcn +++ b/ttcn/LibIts_Interface.ttcn @@ -10,15 +10,12 @@ module LibIts_Interface { // LibIts import from LibItsCam_Pixits all; import from LibItsGeoNetworking_TypesAndValues all; + import from CAM_PDU_Descriptions language "ASN.1:1997" all; import from DENM_PDU_Descriptions language "ASN.1:1997" all; - + // LibCommon import from LibCommon_Time {modulepar all}; - // ASN1 definitions - import from CAM_PDU_Descriptions language "ASN.1:1997" all; - import from DENM_PDU_Descriptions language "ASN.1:1997" all; - group adapterInterface { group portDefinitions {