Loading ttcn/CAM/LibItsCam_Templates.ttcn +135 −26 Original line number Diff line number Diff line Loading @@ -14,9 +14,26 @@ module LibItsCam_Templates { import from DENM_PDU_Descriptions language "ASN.1:1997" all; group Primitives { template CamInd mw_camInd (in template (present) CamPdu p_camMsg) := { msgIn := p_camMsg }; template CamReq m_camReq (in template (value) CamPdu p_camMsg) := { msgOut := p_camMsg }; /** * @desc Send template for CAM Message (CamPort Primitive) * @param p_camMsg CAM Message to be sent */ template CamInd mw_camInd ( in template (present) CamPdu p_camMsg ) := { msgIn := p_camMsg }; /** * @desc Send template for CAM Message (CamPort Primitive) * @param p_camMsg CAM Message to be sent */ template (value) CamReq m_camReq ( in template (value) CamPdu p_camMsg ) := { msgOut := p_camMsg }; group utPrimitives { Loading Loading @@ -161,6 +178,9 @@ module LibItsCam_Templates { } // end group Primitives /** * @desc Default Receive template for CAM PDU */ template CamPdu mw_camMsg_any := { header := { protocolVersion := 0, Loading @@ -175,7 +195,12 @@ module LibItsCam_Templates { } } template CamPdu mw_camMsg_anyVehicle modifies mw_camMsg_any := { /** * @desc Receive template for CAM PDU for vehicle * @see mw_camMsg_any */ template CamPdu mw_camMsg_anyVehicle modifies mw_camMsg_any := { cam := { stationCharacteristics := {?, ?, ?}, camParameters := { Loading Loading @@ -210,7 +235,12 @@ module LibItsCam_Templates { } } template CamPdu mw_camMsg_basicIRS modifies mw_camMsg_any := { /** * @desc Receive template for CAM PDU for road-side unit * @see mw_camMsg_any */ template CamPdu mw_camMsg_basicIRS modifies mw_camMsg_any := { cam := { stationCharacteristics := {false, false, false}, referencePosition := { Loading @@ -226,7 +256,14 @@ module LibItsCam_Templates { } } template CamPdu m_camMsg_valid( /** * @desc Send template for CAM PDU * @param p_generationTime Timestamp of the generated message * @param p_stationID Station ID of the source * @param p_stationCharacteristics Characteristics of the sending station * @param p_referencePosition Position of the sending station */ template (value) CamPdu m_camMsg_valid( TimeStamp p_generationTime, StationID p_stationID, CoopAwareness.stationCharacteristics p_stationCharacteristics, Loading @@ -245,7 +282,12 @@ module LibItsCam_Templates { } }; template CamPdu mw_camMsg_basicVehicle modifies mw_camMsg_anyVehicle := { /** * @desc Receive template for CAM PDU for vehicle * @see mw_camMsg_anyVehicle */ template CamPdu mw_camMsg_basicVehicle modifies mw_camMsg_anyVehicle := { cam := { stationCharacteristics := {true, false, true}, camParameters := { Loading @@ -254,7 +296,12 @@ module LibItsCam_Templates { } } template CamPdu mw_camMsg_emergencyVehicle modifies mw_camMsg_anyVehicle := { /** * @desc Receive template for CAM PDU for emergency vehicle * @see mw_camMsg_anyVehicle */ template CamPdu mw_camMsg_emergencyVehicle modifies mw_camMsg_anyVehicle := { cam := { stationCharacteristics := {true, false, true}, camParameters := { Loading @@ -269,7 +316,12 @@ module LibItsCam_Templates { } }; template CamPdu mw_camMsg_publicTransportVehicle modifies mw_camMsg_basicVehicle := { /** * @desc Receive template for CAM PDU for public transport vehicle * @see mw_camMsg_anyVehicle */ template CamPdu mw_camMsg_publicTransportVehicle modifies mw_camMsg_basicVehicle := { cam := { stationCharacteristics := {true, false, true}, camParameters := { Loading @@ -287,31 +339,88 @@ module LibItsCam_Templates { group exteriorLights { template ExteriorLights m_lowBeamLightsOff := '0???????'B ; template ExteriorLights m_lowBeamLightsOn := '1???????'B ; /** * @desc Receive template for exterior lights with low beam lights off */ template ExteriorLights mw_lowBeamLightsOff := '0???????'B ; template ExteriorLights m_highBeamLightsOff := '?0??????'B ; template ExteriorLights m_highBeamLightsOn := '?1??????'B ; /** * @desc Receive template for exterior lights with low beam lights on */ template ExteriorLights mw_lowBeamLightsOn := '1???????'B ; template ExteriorLights m_leftTurnSignalOff := '??0?????'B ; template ExteriorLights m_leftTurnSignalOn := '??1?????'B ; /** * @desc Receive template for exterior lights with high beam lights off */ template ExteriorLights mw_highBeamLightsOff := '?0??????'B ; template ExteriorLights m_rightTurnSignalOff := '???0????'B ; template ExteriorLights m_rightTurnSignalOn := '???1????'B ; /** * @desc Receive template for exterior lights with high beam lights on */ template ExteriorLights mw_highBeamLightsOn := '?1??????'B ; template ExteriorLights m_automaticLightControlOff := '????0???'B ; template ExteriorLights m_automaticLightControlOn := '????1???'B ; /** * @desc Receive template for exterior lights with left turn signal off */ template ExteriorLights mw_leftTurnSignalOff := '??0?????'B ; /** * @desc Receive template for exterior lights with left turn signal on */ template ExteriorLights mw_leftTurnSignalOn := '??1?????'B ; template ExteriorLights m_daytimeRunningLightOff := '?????0??'B ; template ExteriorLights m_daytimeRunningLightOn := '?????1??'B ; /** * @desc Receive template for exterior lights with right turn signal off */ template ExteriorLights mw_rightTurnSignalOff := '???0????'B ; /** * @desc Receive template for exterior lights with right turn signal on */ template ExteriorLights mw_rightTurnSignalOn := '???1????'B ; template ExteriorLights m_fogLightOff := '??????0?'B ; template ExteriorLights m_fogLightOn := '??????1?'B ; /** * @desc Receive template for exterior lights with automatic light control off */ template ExteriorLights mw_automaticLightControlOff := '????0???'B ; /** * @desc Receive template for exterior lights with automatic light control on */ template ExteriorLights mw_automaticLightControlOn := '????1???'B ; template ExteriorLights m_parkingLightsOff := '???????0'B ; template ExteriorLights m_parkingLightsOn := '???????1'B ; /** * @desc Receive template for exterior lights with day time running lights off */ template ExteriorLights mw_daytimeRunningLightOff := '?????0??'B ; template ExteriorLights m_hazardConditionOn := '??11????'B ; /** * @desc Receive template for exterior lights with day time running lights on */ template ExteriorLights mw_daytimeRunningLightOn := '?????1??'B ; /** * @desc Receive template for exterior lights with fog lights off */ template ExteriorLights mw_fogLightOff := '??????0?'B ; /** * @desc Receive template for exterior lights with fog lights on */ template ExteriorLights mw_fogLightOn := '??????1?'B ; /** * @desc Receive template for exterior lights with parking lights off */ template ExteriorLights mw_parkingLightsOff := '???????0'B ; /** * @desc Receive template for exterior lights with parking lights on */ template ExteriorLights mw_parkingLightsOn := '???????1'B ; /** * @desc Receive template for exterior lights with hazard lights on */ template ExteriorLights mw_hazardConditionOn := '??11????'B ; } // end group exteriorLights Loading ttcn/GeoNetworking/LibItsGeoNetworking_Templates.ttcn +8 −8 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ module LibItsGeoNetworking_Templates { * @desc Testsystem will start beaconing for the given neighbor * @param p_beaconHeader The neighbor information */ template (value) AcGNEvent m_startBeaconing(BeaconHeader p_beaconHeader) := { template (value) AcGNEvent m_startBeaconing(template (value) BeaconHeader p_beaconHeader) := { startBeaconing := { beaconHeader := p_beaconHeader } Loading @@ -139,7 +139,7 @@ module LibItsGeoNetworking_Templates { * @desc Testsystem will pass received to the TTCN-3 * @param p_beaconHeader The neighbor information */ template AcGNEvent m_startPassBeaconing(BeaconHeader p_beaconHeader) := { template AcGNEvent m_startPassBeaconing(template (value) BeaconHeader p_beaconHeader) := { startPassBeaconing := { beaconHeader := p_beaconHeader } Loading Loading
ttcn/CAM/LibItsCam_Templates.ttcn +135 −26 Original line number Diff line number Diff line Loading @@ -14,9 +14,26 @@ module LibItsCam_Templates { import from DENM_PDU_Descriptions language "ASN.1:1997" all; group Primitives { template CamInd mw_camInd (in template (present) CamPdu p_camMsg) := { msgIn := p_camMsg }; template CamReq m_camReq (in template (value) CamPdu p_camMsg) := { msgOut := p_camMsg }; /** * @desc Send template for CAM Message (CamPort Primitive) * @param p_camMsg CAM Message to be sent */ template CamInd mw_camInd ( in template (present) CamPdu p_camMsg ) := { msgIn := p_camMsg }; /** * @desc Send template for CAM Message (CamPort Primitive) * @param p_camMsg CAM Message to be sent */ template (value) CamReq m_camReq ( in template (value) CamPdu p_camMsg ) := { msgOut := p_camMsg }; group utPrimitives { Loading Loading @@ -161,6 +178,9 @@ module LibItsCam_Templates { } // end group Primitives /** * @desc Default Receive template for CAM PDU */ template CamPdu mw_camMsg_any := { header := { protocolVersion := 0, Loading @@ -175,7 +195,12 @@ module LibItsCam_Templates { } } template CamPdu mw_camMsg_anyVehicle modifies mw_camMsg_any := { /** * @desc Receive template for CAM PDU for vehicle * @see mw_camMsg_any */ template CamPdu mw_camMsg_anyVehicle modifies mw_camMsg_any := { cam := { stationCharacteristics := {?, ?, ?}, camParameters := { Loading Loading @@ -210,7 +235,12 @@ module LibItsCam_Templates { } } template CamPdu mw_camMsg_basicIRS modifies mw_camMsg_any := { /** * @desc Receive template for CAM PDU for road-side unit * @see mw_camMsg_any */ template CamPdu mw_camMsg_basicIRS modifies mw_camMsg_any := { cam := { stationCharacteristics := {false, false, false}, referencePosition := { Loading @@ -226,7 +256,14 @@ module LibItsCam_Templates { } } template CamPdu m_camMsg_valid( /** * @desc Send template for CAM PDU * @param p_generationTime Timestamp of the generated message * @param p_stationID Station ID of the source * @param p_stationCharacteristics Characteristics of the sending station * @param p_referencePosition Position of the sending station */ template (value) CamPdu m_camMsg_valid( TimeStamp p_generationTime, StationID p_stationID, CoopAwareness.stationCharacteristics p_stationCharacteristics, Loading @@ -245,7 +282,12 @@ module LibItsCam_Templates { } }; template CamPdu mw_camMsg_basicVehicle modifies mw_camMsg_anyVehicle := { /** * @desc Receive template for CAM PDU for vehicle * @see mw_camMsg_anyVehicle */ template CamPdu mw_camMsg_basicVehicle modifies mw_camMsg_anyVehicle := { cam := { stationCharacteristics := {true, false, true}, camParameters := { Loading @@ -254,7 +296,12 @@ module LibItsCam_Templates { } } template CamPdu mw_camMsg_emergencyVehicle modifies mw_camMsg_anyVehicle := { /** * @desc Receive template for CAM PDU for emergency vehicle * @see mw_camMsg_anyVehicle */ template CamPdu mw_camMsg_emergencyVehicle modifies mw_camMsg_anyVehicle := { cam := { stationCharacteristics := {true, false, true}, camParameters := { Loading @@ -269,7 +316,12 @@ module LibItsCam_Templates { } }; template CamPdu mw_camMsg_publicTransportVehicle modifies mw_camMsg_basicVehicle := { /** * @desc Receive template for CAM PDU for public transport vehicle * @see mw_camMsg_anyVehicle */ template CamPdu mw_camMsg_publicTransportVehicle modifies mw_camMsg_basicVehicle := { cam := { stationCharacteristics := {true, false, true}, camParameters := { Loading @@ -287,31 +339,88 @@ module LibItsCam_Templates { group exteriorLights { template ExteriorLights m_lowBeamLightsOff := '0???????'B ; template ExteriorLights m_lowBeamLightsOn := '1???????'B ; /** * @desc Receive template for exterior lights with low beam lights off */ template ExteriorLights mw_lowBeamLightsOff := '0???????'B ; template ExteriorLights m_highBeamLightsOff := '?0??????'B ; template ExteriorLights m_highBeamLightsOn := '?1??????'B ; /** * @desc Receive template for exterior lights with low beam lights on */ template ExteriorLights mw_lowBeamLightsOn := '1???????'B ; template ExteriorLights m_leftTurnSignalOff := '??0?????'B ; template ExteriorLights m_leftTurnSignalOn := '??1?????'B ; /** * @desc Receive template for exterior lights with high beam lights off */ template ExteriorLights mw_highBeamLightsOff := '?0??????'B ; template ExteriorLights m_rightTurnSignalOff := '???0????'B ; template ExteriorLights m_rightTurnSignalOn := '???1????'B ; /** * @desc Receive template for exterior lights with high beam lights on */ template ExteriorLights mw_highBeamLightsOn := '?1??????'B ; template ExteriorLights m_automaticLightControlOff := '????0???'B ; template ExteriorLights m_automaticLightControlOn := '????1???'B ; /** * @desc Receive template for exterior lights with left turn signal off */ template ExteriorLights mw_leftTurnSignalOff := '??0?????'B ; /** * @desc Receive template for exterior lights with left turn signal on */ template ExteriorLights mw_leftTurnSignalOn := '??1?????'B ; template ExteriorLights m_daytimeRunningLightOff := '?????0??'B ; template ExteriorLights m_daytimeRunningLightOn := '?????1??'B ; /** * @desc Receive template for exterior lights with right turn signal off */ template ExteriorLights mw_rightTurnSignalOff := '???0????'B ; /** * @desc Receive template for exterior lights with right turn signal on */ template ExteriorLights mw_rightTurnSignalOn := '???1????'B ; template ExteriorLights m_fogLightOff := '??????0?'B ; template ExteriorLights m_fogLightOn := '??????1?'B ; /** * @desc Receive template for exterior lights with automatic light control off */ template ExteriorLights mw_automaticLightControlOff := '????0???'B ; /** * @desc Receive template for exterior lights with automatic light control on */ template ExteriorLights mw_automaticLightControlOn := '????1???'B ; template ExteriorLights m_parkingLightsOff := '???????0'B ; template ExteriorLights m_parkingLightsOn := '???????1'B ; /** * @desc Receive template for exterior lights with day time running lights off */ template ExteriorLights mw_daytimeRunningLightOff := '?????0??'B ; template ExteriorLights m_hazardConditionOn := '??11????'B ; /** * @desc Receive template for exterior lights with day time running lights on */ template ExteriorLights mw_daytimeRunningLightOn := '?????1??'B ; /** * @desc Receive template for exterior lights with fog lights off */ template ExteriorLights mw_fogLightOff := '??????0?'B ; /** * @desc Receive template for exterior lights with fog lights on */ template ExteriorLights mw_fogLightOn := '??????1?'B ; /** * @desc Receive template for exterior lights with parking lights off */ template ExteriorLights mw_parkingLightsOff := '???????0'B ; /** * @desc Receive template for exterior lights with parking lights on */ template ExteriorLights mw_parkingLightsOn := '???????1'B ; /** * @desc Receive template for exterior lights with hazard lights on */ template ExteriorLights mw_hazardConditionOn := '??11????'B ; } // end group exteriorLights Loading
ttcn/GeoNetworking/LibItsGeoNetworking_Templates.ttcn +8 −8 Original line number Diff line number Diff line Loading @@ -120,7 +120,7 @@ module LibItsGeoNetworking_Templates { * @desc Testsystem will start beaconing for the given neighbor * @param p_beaconHeader The neighbor information */ template (value) AcGNEvent m_startBeaconing(BeaconHeader p_beaconHeader) := { template (value) AcGNEvent m_startBeaconing(template (value) BeaconHeader p_beaconHeader) := { startBeaconing := { beaconHeader := p_beaconHeader } Loading @@ -139,7 +139,7 @@ module LibItsGeoNetworking_Templates { * @desc Testsystem will pass received to the TTCN-3 * @param p_beaconHeader The neighbor information */ template AcGNEvent m_startPassBeaconing(BeaconHeader p_beaconHeader) := { template AcGNEvent m_startPassBeaconing(template (value) BeaconHeader p_beaconHeader) := { startPassBeaconing := { beaconHeader := p_beaconHeader } Loading