LibItsV2G_TestSystem.ttcn 2.79 KB
Newer Older
reinaortega's avatar
reinaortega committed
/**
 *    @author     ETSI / STFS46
 *  @version     $URL: svn+ssh://vcs.etsi.org/TTCN3/LIB/LibIts/trunk/ttcn/LibItsV2G_TestSystem.ttcn $
 *                $Id: LibItsV2G_TestSystem.ttcn 408 2012-02-28 13:49:56Z reinaortega $
 *    @desc        Test System module for ITS V2G
 *
 */
module LibItsV2G_TestSystem {
    
    // LibCommon
    import from LibCommon_Time {modulepar all};
    import from LibCommon_Sync all;
    
    // LibIts
    import from LibItsCommon_TestSystem all;
    import from LibItsV2G_TypesAndValues all;
    
    group portDefinitions {
    
        /**
         * @desc Upper Tester port
         */
        type port UpperTesterPort message {
            out 
                UtInitialize, UtTrigger, UtCheck;
            in 
                UtResult;
        } // end UpperTesterPort
        
    } // end portDefinitions

    group interfacePorts {

        group v2gApplicationLayerPorts {
            
            group xxxPorts {

                /**
                 * @desc XXX V2G Application Layer Port  
                 */
                type port V2Gport message {
                    in V2Gind;
                    out V2Greq;
                } // end V2Gport
                                
            } // End of group xxxPorts
            
        } // End of group v2gApplicationLayerPorts
    
    } // End of group interfacePorts
    
    group componentDefinitions {

        /**
         * @desc ITS System Adapter
         */
        type component ItsV2Gsystem {
            
            port UpperTesterPort utPort;
            
            // NT1 ports 
            port V2Gport v2gPort;
            
        } // end component ItsAdapter
        
    } // End of group componentDefinitions
    
    /**
     * @desc Test component for ITS V2G Application layer 
     */
    type component ItsV2G extends ItsBaseComponent {
        
        port UpperTesterPort utPort;
        
        // NT1 ports 
        port V2Gport v2gPort;
                
        // timers
                
    } // End of component ItsV2G
        
    group v2gApplicationLayerPrimitives { 
            
        group xxxPrimitives {

            /**
             * @desc XXX V2G Indication Primitive 
             */
            type record V2Gind {
                V2Gpacket msgIn
            }
        
            /**
             * @desc XXX V2G Request Primitive 
             */
            type record V2Greq {
                V2Gpacket msgOut
            }
                        
        } // end xxxPrimitives
        
    } // End of group v2gApplicationLayerPrimitives    
    with {
        encode "LibIts_Interface"
    } // end interfacePrimitives    
     
} // End of module LibItsV2G_TestSystem