LibItsCam_Templates.ttcn 1.5 KB
Newer Older
/**
 *	@author 	ETSI / STF405
berge's avatar
berge committed
 *  @version 	$URL$
 *				$Id$
 *	@desc		Module containing base template definitions for CAM
 *
 */
module LibItsCam_Templates {
fischer's avatar
fischer committed
	import from CAM_PDU_Descriptions language "ASN.1:1997" all;
    import from LibIts_Interface all;
fischer's avatar
fischer committed
    
	template CamInd mw_camInd (in template CoopAwareness camMsg) := { msgIn := camMsg };

	template CamReq mw_camReq (in template CoopAwareness camMsg) := { msgOut := camMsg };
	    
	template CoopAwareness mw_camMsg_any := {
		protocolVersion :=?,
    	messageID := ?,
    	generationTime := ?,
    	stationId := ?,
    	referencePosition := ?,
    	stationCharacteristics := ?,
    	profile := ?
	};
	 
	template CoopAwareness mw_camMsg_basicVehicle := {
		protocolVersion := 0,
		messageID := 0,
		generationTime := ?,
		stationId := ?,
		referencePosition := ?,
		stationCharacteristics := {true, true, true},
		profile := {
			basicVehicle := {
				vehicleType := ?,
				stationLength := ?,
				stationLengthConfidence := *,
				stationWidth := ?,
				stationWidthConfidence := *,
				vehicleSpeed := ?,
				vehicleSpeedConfidence := ?,
				longAcceleration := ?,
				accelerationControl := ?,
				exteriorLights := ?,
				turnAdvice := *,
				distanceToStopLine := *,
				occupancy := *,
				doorOpen := *,
				posConfidenceEllipse := ?,
				curvature := ?,
				curvatureGradient := *,
				crashStatus := *,
				headingConfidence := ?,
				dangerousGoods := *
			}
		}
	}
	 
} // end LibItsCam_Templates