Skip to content
LibItsCommon_TypesAndValues.ttcn 3.67 KiB
Newer Older
tepelmann's avatar
tepelmann committed
 *  @author      ETSI / STF405 / STF449
 *  @version     $URL$
 *               $Id$
 *  @desc        Module containing common types and values for ITS Protocols
 *
 */
module LibItsCommon_TypesAndValues {
    
tepelmann's avatar
tepelmann committed
    import from ITS_Container language "ASN.1:1997" all;

    group utPrimitives {
        
        /**
         * @desc Upper Tester message to initialize DENM IUT 
         */
        type record UtInitialize {
        	// empty on purpose
        }
        
        /**
         * @desc Upper Tester result message of the initialization request 
         */
        type boolean UtInitializeResult;
        
        /**
         * @desc Upper Tester message to change the position of IUT. Values a relatives 
         */
        type record UtChangePosition {
            integer latitude,
            integer longitude,
            integer elevation
        }
        
        /**
         * @desc Upper Tester result message of change position request of IUT 
         */
        type boolean UtChangePositionResult;
    }
	with {
		encode "UpperTester"
	}
	
tepelmann's avatar
tepelmann committed
    group commonConstants {
        
        const AltitudeValue c_seaLevel := 0; 
        const AltitudeValue c_oneMeter := 1; 
tepelmann's avatar
tepelmann committed
        
        const SemiAxisLength c_semiAxisLengthOneCentimeter := 1; 
        const SemiAxisLength c_semiAxisLengthUnavailable := 4095; 
tepelmann's avatar
tepelmann committed
        /**
         * @remark check this values
         */
        group causeCodes {
            
            const CauseCodeType c_causeReserved := 0; 
            const CauseCodeType c_causeTrafficCondition := 1; 
            const CauseCodeType c_causeAccident := 2; 
            const CauseCodeType c_causeRoadworks := 3; 
            const CauseCodeType c_causeAdverseWeatherCondition_Adhesion := 6; 
            const CauseCodeType c_causeHazardousLocation_SurfaceCondition := 9; 
            const CauseCodeType c_causeHazardousLocation_ObstacleOnTheRoad := 10; 
            const CauseCodeType c_causeHazardousLocation_AnimalOnTheRoad := 11; 
            const CauseCodeType c_causeHumanPresenceOnTheRoad := 12; 
            const CauseCodeType c_causeWrongWayDriving := 14; 
            const CauseCodeType c_causeRescueAndRecoveryWorkInProgress := 15; 
            const CauseCodeType c_causeAdverseWeatherCondition_ExtremeWeatherCondition := 17; 
            const CauseCodeType c_causeAdverseWeatherCondition_Visibility := 18; 
            const CauseCodeType c_causeAdverseWeatherCondition_Precipitation := 19; 
            const CauseCodeType c_causeSlowVehicle := 26; 
            const CauseCodeType c_causeDangerousEndOfQueue := 27; 
            const CauseCodeType c_causeVehicleBreakdown := 91; 
            const CauseCodeType c_causePostCrash := 92; 
            const CauseCodeType c_causeHumanProblem := 93; 
            const CauseCodeType c_causeStationaryVehicle := 94; 
            const CauseCodeType c_causeEmergencyVehicleApproaching := 95; 
            const CauseCodeType c_causeHazardousLocation_DangerousCurve := 96; 
            const CauseCodeType c_causeCollisionRisk := 97; 
            const CauseCodeType c_causeSignalViolation := 98; 
            const CauseCodeType c_causeDangerousSituation := 99; 
            
        } // end group causeCodes
        
        /**
         * @remark check this values
         */
        group subCauseCodes {
            
tepelmann's avatar
tepelmann committed
            const SubCauseCodeType c_subCauseCode_Unavailable := 0; 
tepelmann's avatar
tepelmann committed
            const VehicleBreakdownSubCauseCode c_vehicleBreakDownSubCauseCode_engineProblem := 3;
            const SlowVehicleSubCauseCode c_slowVehicleSubCauseCode_convoy := 5; 
            
tepelmann's avatar
tepelmann committed
        } // end group subCauseCodes
        
        
    } // end commonConstants
    encode "LibItsCommon"