LibItsCommon_Templates.ttcn 3.31 KB
Newer Older
garciay's avatar
garciay committed
 *  @author      ETSI / STF405 / STF449 / STF484 / STF517
 *  @version     $URL$
 *               $Id$
 *  @desc        Module containing base template definitions for DENM
garciay's avatar
garciay committed
 *  @copyright   ETSI Copyright Notification
 *               No part may be reproduced except as authorized by written permission.
 *               The copyright and the foregoing restriction extend to reproduction in all media.
 *               All rights reserved.
 *
 */
module LibItsCommon_Templates {
    
    import from ITS_Container language "ASN.1:1997" all;

    // LibItsCommon
    import from LibItsCommon_TypesAndValues all;
    
    group taPrimitives {
        
        template (value) AdapterControlResults m_acSecResponseSuccess := {acSecResponse:=true};
        /**
         * @desc Enable security support
         */
        template (value) AcSecPrimitive m_acEnableSecurity(
                                                           in charstring p_certificate_id, 
                                                           in boolean p_enforceSecurity := false
                certificateId   := p_certificate_id,
                enforceSecurity := p_enforceSecurity
        } // End of template m_acEnableSecurity
        
        /**
         * @desc Disable security support
         */
        template (value) AcSecPrimitive m_acDisableSecurity := {
            acDisableSecurity := {
                disable := true
            }
        } // End of template m_acDisableSecurity
        template AdapterControlResults m_acGnssResponseSuccess := {acGnssResponse:=true};

YannGarcia's avatar
YannGarcia committed
        template (value) AdapterControlResults m_acGnssDistanceCovered := {
            acGnssDistanceCovered:=true
        };
        
        /**
         * @desc Testsystem will load GNSS scenario
         */
YannGarcia's avatar
YannGarcia committed
        template (value) AcGnssPrimitive m_loadScenario(Scenario p_scenario) := {
            loadScenario := {
                scenario := p_scenario
            }
        }
        
        /**
         * @desc Testsystem will start GNSS scenario
         */
YannGarcia's avatar
YannGarcia committed
        template (value) AcGnssPrimitive m_startScenario := {
            startScenario := {
            }
        }
        
        /**
         * @desc Testsystem will stop GNSS scenario
         */
YannGarcia's avatar
YannGarcia committed
        template (value) AcGnssPrimitive m_stopScenario := {
            stopScenario := {
            }
        }
        
        /**
         * @desc Testsystem will request indication if distance was covered
         */
YannGarcia's avatar
YannGarcia committed
        template (value) AcGnssPrimitive m_distanceToCover(float p_distance) := {
            distanceToCover := {
                distance := p_distance
            }
        }
        
        /**
         * @desc Testsystem will change the speed (delta value)
         */
YannGarcia's avatar
YannGarcia committed
        template (value) AcGnssPrimitive m_changeScenarioSpeed(SpeedValue p_deltaSpeedValue) := {
            changeSpeed := {
                deltaSpeed := p_deltaSpeedValue
            }
        }
        
        /**
         * @desc Testsystem will change the heading (delta value)
         */
YannGarcia's avatar
YannGarcia committed
        template (value) AcGnssPrimitive m_changeScenarioHeading(HeadingValue p_deltaHeadingValue) := {
            changeHeading := {
                deltaHeading := p_deltaHeadingValue
            }
        }
        
    } // end taPrimitives
    
}