LibItsV2G_TypesAndValues.ttcn 2.35 KB
Newer Older
reinaortega's avatar
reinaortega committed
/**
 *  @author   ETSI / STFS46
 *  @version  $URL: svn+ssh://vcs.etsi.org/TTCN3/LIB/LibIts/trunk/ttcn/V2G/LibItsV2G_TypesAndValues.ttcn $
 *            $Id: LibItsV2G_TypesAndValues.ttcn 429 2012-03-13 16:11:47Z reinaortega $
 *  @desc     Module containing types and values for V2G application layer protocols
 *
 */
module LibItsV2G_TypesAndValues {

    // LibCommon
    import from LibCommon_BasicTypesAndValues all;
    
    // LibIts
    /*import from V2G_PDU_Descriptions language "XML" {
        type V2Gpdu
    };*/
    
    group v2gPdus {
     
        
    } // end v2gPdus
    
    group v2gHeaders {
        
             
    } // end v2gHeaders

    group v2gPayload {
        
        /**
         * @desc The payload of the V2G packet
         * @remark Change it to concrete union value if necessary
         */
        type union V2Gpayload {
            V2Gpdu v2gPacket,
            octetstring otherPayload
        }
        
    } //end v2gPayload

    group utPrimitives {
    	
    	group utCommonPrimitives {
    		
	        /**
	         * @desc Upper Tester message to initialize IUT 
	         */
	        type union UtInitialize {
	            UtV2Ginitialize utV2Ginitialize
	        }
	
	        /**
	         * @desc Upper Tester message describing an action/event 
	         */
	        type union UtEvent {
	            UtV2Gevent utV2Gevent
	        }
	                
	        /**
	         * @desc Upper Tester message to trigger an action on IUT 
	         */
	        type record UtTrigger {
	            UtEvent utEvent
	        }
	        
	        /**
	         * @desc Upper Tester message to check event/status on IUT 
	         */    
	        type record UtCheck {
	            UtEvent utEvent
	        }
	        
	        /**
	         * @desc Upper Tester response message  
	         */    
	        type boolean UtResult;
        }
        with {
            encode "LibItsCommon_TypesAndValues"
        }
                
        /**
         * @desc Upper Tester message to initialize V2G IUT 
         */
        type record UtV2Ginitialize {
        }
        
        /**
         * @desc Upper Tester message generating V2G packet
         */
        type union UtV2gEvent {
            V2Gheader   v2gHeader,
            V2Gpayload  payload
        }
        
    } // end utPrimitives
    
}
with {
    encode "LibItsV2G_TypesAndValues"
}