Commit a8b43864 authored by garciay's avatar garciay
Browse files

Implement IICP TSS&TPs

parent 1c553e0f
Loading
Loading
Loading
Loading
+10 −1
Changes for ttcn/CALM/IICP/LibItsIicp_Functions.ttcn3: 10 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ module LibItsIicp_Functions {
            ITS_SCUtype 
    };
    import from LibItsMgt_TypesAndValues {
        type IParamNoList, IParamList 
        type IParamNoList, IParamList, ErrorsList 
    };
    import from LibItsIicp_Templates all;
    import from LibItsIicp_Pics all;
@@ -394,6 +394,15 @@ module LibItsIicp_Functions {
            return PX_MI_IPARAMLIST;
        }
        
        /**
         * @desc    TODO
         * @return  TODO
         * @see     PX_MI_ERRORSLIST
         */
        function f_getIutErrorsList() return ErrorsList { 
            return PX_MI_ERRORSLIST;
        }
        
    } // End of group iutFunctions
    
} // End of module LibItsIicp_Functions
 No newline at end of file
+21 −1
Changes for ttcn/CALM/IICP/LibItsIicp_Pixits.ttcn3: 21 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ module LibItsIicp_Pixits {
        type PortNumber
    };
    import from LibItsMgt_TypesAndValues {
        type IParamNoList, IParamList
        type IParamNoList, IParamList, ErrorsList 
    };
    
    /**
@@ -146,6 +146,11 @@ module LibItsIicp_Pixits {
        1 // ControlChannel 
    }
    
    /**
     * @desc List of reference parameter to be monitored
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     * @see ISO 21218 Table A.1 — I parameters
     */
    modulepar IParamList PX_MI_IPARAMLIST := {
        { 
            fill := '00'B, 
@@ -161,5 +166,20 @@ module LibItsIicp_Pixits {
            } // End of field 'param_'
        } // End of list
    }
    /**
     * @desc List of errors 
     * NOTE that this PIXIT is used just for compiling purposes. The real PIXIT shall be written according to the IUT capabilities
     * @see ISO 21218 Clause A.2.53 Errors (I-Param.No=255)
     */
    modulepar ErrorsList PX_MI_ERRORSLIST := {
        { 
            { 
                paramNo := 0, 
                fill := '0000000'B,
                med := { },
                errStatus := 0
            } // End of SingleError list 
        } // End of list
    }
    
} // End of module LibItsIicp_Pixits
+255 −63

File changed.

Preview size limit exceeded, changes collapsed.

+10 −15
Changes for ttcn/CALM/MGT/LibItsMgt_Functions.ttcn3: 10 added lines, 15 removed lines.
Original line number Diff line number Diff line
@@ -89,13 +89,21 @@ module LibItsMgt_Functions {
//                    log("*** a_mgtMFSapPortDefault: INFO: MF-SAP service primitive received in default ***");
//                    repeat;
//                }
                [] mgtMFSapPort.receive(mw_mgtMFSapCommandConfirm(mdw_mfCommandConfirm(0))) { // Receive any MF-REQUEST.confirm message with success status
                    log("*** a_mgtMFSapPortDefault: INFO: MF-SAP service primitive received in default ***");
                    repeat;
                }
                [] mgtMFSapPort.receive(mw_mgtMFSapCommandConfirm(mdw_mfCommandConfirm(?))) { // Receive any MF-REQUEST.confirm message with error status
                    log("*** a_mgtMFSapPortDefault: INFO: MF-SAP/MF-COMMAND.Confirm error status ***");
                    repeat;
                }
                [] mgtMFSapPort.receive(mw_mgtMFSapRequestConfirm(mw_mfRequestConfirm(0))) { // Receive any MF-REQUEST.confirm message with success status
                    log("*** a_mgtMFSapPortDefault: INFO: MF-SAP service primitive received in default ***");
                    repeat;
                }
                [] mgtMFSapPort.receive(mw_mgtMFSapRequestConfirm(mw_mfRequestConfirm(?))) { // Receive any MF-REQUEST.confirm message with error status
                    f_selfOrClientSyncAndVerdict("error", e_error);
                    log("*** a_mgtMFSapPortDefault: ERROR: Received MF-SAP error status ***");
                    log("*** a_mgtMFSapPortDefault: ERROR: Received MF-SAP/MF-REQUEST.Confirm error status ***");
                }
                [] mgtMFSapPort.receive { // Receive unknown message
                    f_selfOrClientSyncAndVerdict("error", e_error);
@@ -103,19 +111,6 @@ module LibItsMgt_Functions {
                }
            } // End of altstep a_mgtMFSapPortDefault
            
//            /**
//             * @desc  Wait for REQUEST.confirm/GCregServer MF-REQUEST.confirm
//             * @param p_commandRef Unique cyclic reference number of command. Same value as in related MN-REQUEST.request
//             * @verdict Unchanged
//             */
//            altstep a_mgtAwaitGCregServerReqConf(in CommandRef p_commandRef) runs on ItsMgt {
//                
//                [] mgtMFSapPort.receive(mw_mgtMFSapRequestConfirm(mdw_gCregServerRequestConf(p_commandRef))) {
//                    log("*** a_mgtAwaitGCregServerReqConf: INFO: MF-SAP GCregServer service primitive received ***");
//                    repeat;
//                }
//            } // End of altstep a_mgtAwaitGCregServerReqConf
            
        } // End of group mfSap
        
        group mnSap {
@@ -125,7 +120,7 @@ module LibItsMgt_Functions {
             * @see ISO/CD 24102-3 Clause 8.2
             */
            altstep a_mgtMNSapPortDefault() runs on ItsMgt {
                [] mgtMNSapPort.receive(mw_mgtMNSapCommandConfirm(mw_mnCommandConfirm_any)) { // Receive any MF-COMMAND.confirm message
                [] mgtMNSapPort.receive(mw_mgtMNSapCommandConfirm(mdw_mnCommandConfirm_any)) { // Receive any MF-COMMAND.confirm message
                    log("*** a_mgtMNSapPortDefault: INFO: MN-SAP service primitive MF-COMMAND.confirm received in default ***");
                    repeat;
                }
+164 −24

File changed.

Preview size limit exceeded, changes collapsed.

Loading