Commit 4276dfb2 authored by Bostjan Pintar's avatar Bostjan Pintar
Browse files

New TP functions related to TP_IS_IVI

parent 1116f412
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -11,6 +11,12 @@ import from IVI language "ASN.1:1997" all;
        const IviStatus IviStatus_cancellation_ := 2;
        const IviStatus IviStatus_cancellation_ := 2;
        const IviStatus IviStatus_negation_ := 3;
        const IviStatus IviStatus_negation_ := 3;
        
        
        const IviType IviType_immediateDangerWarningMessages_ := 0;
        const IviType IviType_regulatoryMessages_ := 1;
        const IviType IviType_trafficRelatedInformationMessages_ := 2; 
        const IviType IviType_pollutionMessages_ := 3;
        const IviType IviType_notTrafficRelatedInformationMessages_ := 4;
      
  
  
  } // end IVI_constants
  } // end IVI_constants
  
  
+7 −0
Original line number Original line Diff line number Diff line
@@ -27,6 +27,13 @@ module LibItsIvim_Pixits {
        providerIdentifier  := 0
        providerIdentifier  := 0
    }
    }
    
    
    /**
     * @desc IUT IVI identifier
     *      IVI identification number
     * @see  ETSI TS 103 191-3 Table B.8
     */
    modulepar integer PX_IVI_ID := 2;
    
    /**
    /**
     * @desc IUT ZoneId 1 identifier
     * @desc IUT ZoneId 1 identifier
     *       ZoneId 1 used in IVIM messages sent by the tester
     *       ZoneId 1 used in IVIM messages sent by the tester
+57 −8
Original line number Original line Diff line number Diff line
@@ -341,11 +341,12 @@ module LibItsIvim_Templates {
                                                                        in template (value) Provider p_serviceProviderId, 
                                                                        in template (value) Provider p_serviceProviderId, 
                                                                        in template (value) IviIdentificationNumber p_iviIdentificationNumber,
                                                                        in template (value) IviIdentificationNumber p_iviIdentificationNumber,
                                                                        in template (value) IviStatus p_iviStatus,
                                                                        in template (value) IviStatus p_iviStatus,
                                                                        in template (omit) IVIManagementContainer.connectedIviStructures p_connectedIviStructures := omit
                                                                        in template (omit) IVIManagementContainer.connectedIviStructures p_connectedIviStructures := omit,
                                                                        in template (omit) IVIManagementContainer.timeStamp p_timeStamp := f_getCurrentTime()
        ) := {
        ) := {
            serviceProviderId       := p_serviceProviderId, 
            serviceProviderId       := p_serviceProviderId, 
            iviIdentificationNumber := p_iviIdentificationNumber,
            iviIdentificationNumber := p_iviIdentificationNumber,
            timeStamp               := f_getCurrentTime(),
            timeStamp               := p_timeStamp,
            validFrom               := omit,
            validFrom               := omit,
            validTo                 := omit,
            validTo                 := omit,
            connectedIviStructures  := p_connectedIviStructures,
            connectedIviStructures  := p_connectedIviStructures,
@@ -559,6 +560,37 @@ module LibItsIvim_Templates {
            zone            := p_zone
            zone            := p_zone
        } // End of template mw_glcPart
        } // End of template mw_glcPart
        
        
        template (value) ReferencePosition m_referencePosition(
                                          in template (value) Latitude p_latitude := 10000, 
                                          in template (value) Longitude p_longitude := 10000,
                                          in template (value) PosConfidenceEllipse p_position,
                                          in template (value) Altitude p_altitude
        ) := {
            latitude                  := p_latitude,
            longitude                 := p_longitude,
            positionConfidenceEllipse := p_position,
            altitude                  := p_altitude
        } // End of template m_referencePosition
        
        template (value) ReferencePosition m_referencePosition_sample(
                                          in template (value) Latitude p_latitude := 10000, 
                                          in template (value) Longitude p_longitude := 10000
        ) := {
            latitude                  := p_latitude,
            longitude                 := p_longitude,
            positionConfidenceEllipse := 
            {
                semiMajorConfidence  := 1000,
                semiMinorConfidence  := 1000,
                semiMajorOrientation := 1000
            },
            altitude                  := 
            {
                altitudeValue      := 10000,
                altitudeConfidence := alt_000_01//unavailable
            }
        } // End of template m_referencePosition
        
    } // End of group geographicLocationContainerGroup
    } // End of group geographicLocationContainerGroup
    
    
    group generalIviContainerGroup {
    group generalIviContainerGroup {
@@ -583,7 +615,17 @@ module LibItsIvim_Templates {
            preStoredlayoutId       := omit,
            preStoredlayoutId       := omit,
            roadSignCodes           := p_roadSignCodes,
            roadSignCodes           := p_roadSignCodes,
            extraText               := omit
            extraText               := omit
        } // End of template m_gicPart
        } // End of template m_gicPart_basic
        
        template (value) GicPart m_gicPart_relavanceZoneId(
                                                 in template (value) IviType p_iviType := IviType_regulatoryMessages_,
                                                 in template (value) GicPart.roadSignCodes p_roadSignCodes := {m_rSCode_itisCodes},
                                                 in template (value) GicPart.relevanceZoneIds p_relevanceZoneIds := {PX_RELAVANCE_ZONEID}
        ) modifies m_gicPart_basic:= {
            relevanceZoneIds        := p_relevanceZoneIds, 
            iviType                 := p_iviType,
            roadSignCodes           := p_roadSignCodes
        } // End of template m_gicPart_relavanceZoneId
        
        
        template (present) GicPart mw_gicPart_basic(
        template (present) GicPart mw_gicPart_basic(
                                                    template (present) IviType p_iviType := ?,
                                                    template (present) IviType p_iviType := ?,
@@ -632,7 +674,7 @@ module LibItsIvim_Templates {
        } // End of template mw_gicPart
        } // End of template mw_gicPart
        
        
        template (present) RSCode mw_rSCode(
        template (present) RSCode mw_rSCode(
                                                    template (present) RSCode.layoutComponentId p_layoutComponentId := ?,
                                                    template RSCode.layoutComponentId p_layoutComponentId := *,
                                                    template (present) RSCode.code p_code := ?
                                                    template (present) RSCode.code p_code := ?
        )  := {
        )  := {
            layoutComponentId       := p_layoutComponentId,
            layoutComponentId       := p_layoutComponentId,
@@ -640,7 +682,7 @@ module LibItsIvim_Templates {
        } // End of template mw_rSCode
        } // End of template mw_rSCode
        
        
        template (present) RSCode mw_rSCode_viennaConvention(
        template (present) RSCode mw_rSCode_viennaConvention(
                                                    template (present) RSCode.layoutComponentId p_layoutComponentId := ?
                                                    template RSCode.layoutComponentId p_layoutComponentId := *
        )  := {
        )  := {
            layoutComponentId       := p_layoutComponentId,
            layoutComponentId       := p_layoutComponentId,
            code                    := {
            code                    := {
@@ -649,7 +691,7 @@ module LibItsIvim_Templates {
        } // End of template mw_rSCode_viennaConvention
        } // End of template mw_rSCode_viennaConvention
        
        
        template (present) RSCode mw_rSCode_iso14823(
        template (present) RSCode mw_rSCode_iso14823(
                                                    template (present) RSCode.layoutComponentId p_layoutComponentId := ?
                                                    template RSCode.layoutComponentId p_layoutComponentId := *
        )  := {
        )  := {
            layoutComponentId       := p_layoutComponentId,
            layoutComponentId       := p_layoutComponentId,
            code                    := {
            code                    := {
@@ -658,7 +700,7 @@ module LibItsIvim_Templates {
        } // End of template mw_rSCode_iso14823
        } // End of template mw_rSCode_iso14823
        
        
        template (present) RSCode mw_rSCode_itisCodes(
        template (present) RSCode mw_rSCode_itisCodes(
                                                    template (present) RSCode.layoutComponentId p_layoutComponentId := ?
                                                    template RSCode.layoutComponentId p_layoutComponentId := *
        )  := {
        )  := {
            layoutComponentId       := p_layoutComponentId,
            layoutComponentId       := p_layoutComponentId,
            code                    := {
            code                    := {
@@ -667,7 +709,7 @@ module LibItsIvim_Templates {
        } // End of template mw_rSCode_itisCodes
        } // End of template mw_rSCode_itisCodes
        
        
        template (present) RSCode mw_rSCode_anyCatalogue(
        template (present) RSCode mw_rSCode_anyCatalogue(
                                                    template (present) RSCode.layoutComponentId p_layoutComponentId := ?
                                                    template RSCode.layoutComponentId p_layoutComponentId := *
        )  := {
        )  := {
            layoutComponentId       := p_layoutComponentId,
            layoutComponentId       := p_layoutComponentId,
            code                    := {
            code                    := {
@@ -675,6 +717,13 @@ module LibItsIvim_Templates {
            }
            }
        } // End of template mw_rSCode_anyCatalogue
        } // End of template mw_rSCode_anyCatalogue
        
        
        template (value) RSCode m_rSCode_itisCodes  := {
            layoutComponentId       := omit,
            code                    := {
                itisCodes := 100
            }
        } // End of template m_rSCode_itisCodes
        
    } // End of group generalIviContainerGroup
    } // End of group generalIviContainerGroup
    
    
    group roadConfigurationContainerGroup {
    group roadConfigurationContainerGroup {