ItsRSUsSimulator_Pics.ttcn 79.4 KB
Newer Older
garciay's avatar
garciay committed
module ItsRSUsSimulator_Pics {
    
    // LibCommon
    import from LibCommon_BasicTypesAndValues all;
    
    // LibIts
    import from ITS_Container language "ASN.1:1997" all;
    import from CAM_PDU_Descriptions language "ASN.1:1997" all;
    import from DENM_PDU_Descriptions language "ASN.1:1997" all;
    import from MAPEM_PDU_Descriptions language "ASN.1:1997" all;
    import from SPATEM_PDU_Descriptions language "ASN.1:1997" all;
    import from IVIM_PDU_Descriptions language "ASN.1:1997" all;
    import from SREM_PDU_Descriptions language "ASN.1:1997" all;
    import from SSEM_PDU_Descriptions language "ASN.1:1997" all;
    
    // LibItsBtp
    import from LibItsBtp_TypesAndValues all;
    import from LibItsBtp_Templates all;
    
    // LibItsGeoNetworking
    import from LibItsGeoNetworking_TypesAndValues all;
    
    // ItsRSUsSimulator
    import from ItsRSUsSimulator_TypesAndValues all;
    
    /**
     * @desc This group describes the RSUs installed on the track
     */
garciay's avatar
garciay committed
    group rsuParameters {
        
garciay's avatar
garciay committed
        group rsu1 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU1 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
garciay's avatar
garciay committed
            } // End of PICS_RSU_GN_ADDRESS_RSU1
            
garciay's avatar
garciay committed
                gnAddress := PICS_RSU_GN_ADDRESS_RSU1,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU1,
                    timestamp_    := 0,
garciay's avatar
garciay committed
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
garciay's avatar
garciay committed
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU1
garciay's avatar
garciay committed
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU1 := {};
            
        } // End of group rsu1
        
garciay's avatar
garciay committed
        group rsu2 {
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU2 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE02'O
            } // End of PICS_RSU_GN_ADDRESS_RSU2
            
            modulepar RsuParm PICS_RSU2 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU2,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU2,
                    timestamp_    := 0,
                    latitude      := 43551128,
                    longitude     := 10299473,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111102,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU2
            } // End of PICS_RSU2
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU2 := {};
            
        } // End of group rsu2
        
        /**
         * @desc RSU #3
         */
        group rsu3 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU3 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE03'O
            } // End of PICS_RSU_GN_ADDRESS_RSU3
            
            modulepar RsuParm PICS_RSU3 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU3,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU3,
                    timestamp_    := 0,
                    latitude      := 43551209,
                    longitude     := 10300251,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111103,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU3
            } // End of PICS_RSU3
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU3 := {};
            
        } // End of group rsu3
        
        /**
         * @desc RSU #4
         */
        group rsu4 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU4 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE04'O
            } // End of PICS_RSU_GN_ADDRESS_RSU4
            
            modulepar RsuParm PICS_RSU4 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU4,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU4,
                    timestamp_    := 0,
                    latitude      := 43558215,
                    longitude     := 10306517,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111104,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU4
            } // End of PICS_RSU4
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU4 := {};
            
        } // End of group rsu4
        
        /**
         * @desc RSU #5
         */
        group rsu5 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU5 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE05'O
            } // End of PICS_RSU_GN_ADDRESS_RSU5
            
            modulepar RsuParm PICS_RSU5 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU5,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU5,
                    timestamp_    := 0,
                    latitude      := 43556350,
                    longitude     := 10304745,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111105,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU5
            } // End of PICS_RSU5
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU5 := {};
            
        } // End of group rsu5
        
        /**
         * @desc RSU #6
         */
        group rsu6 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU6 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE06'O
            } // End of PICS_RSU_GN_ADDRESS_RSU6
            
            modulepar RsuParm PICS_RSU6 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU6,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU6,
                    timestamp_    := 0,
                    latitude      := 43557066,
                    longitude     := 10301917,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111106,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU6
            } // End of PICS_RSU6
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU6 := {};
            
        } // End of group rsu6
        
        /**
         * @desc RSU #7
         */
        group rsu7 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU7 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE07'O
            } // End of PICS_RSU_GN_ADDRESS_RSU7
            
            modulepar RsuParm PICS_RSU7 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU7,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU7,
                    timestamp_    := 0,
                    latitude      := 43555058,
                    longitude     := 10303298,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111107,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU7
            } // End of PICS_RSU7
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU7 := {};
            
        } // End of group rsu7
        
        /**
         * @desc RSU #8
         */
        group rsu8 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU8 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE08'O
            } // End of PICS_RSU_GN_ADDRESS_RSU8
            
            modulepar RsuParm PICS_RSU8 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU8,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU8,
                    timestamp_    := 0,
                    latitude      := 43554663,
                    longitude     := 10304190,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111108,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU8
            } // End of PICS_RSU8
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU8 := {};
            
        } // End of group rsu8
        
        /**
         * @desc RSU #9
         */
        group rsu9 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU9 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE09'O
            } // End of PICS_RSU_GN_ADDRESS_RSU9
            
            modulepar RsuParm PICS_RSU9 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU9,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU9,
                    timestamp_    := 0,
                    latitude      := 43554128,
                    longitude     := 10301578,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111109,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU9
            } // End of PICS_RSU9
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU9 := {};
            
        } // End of group rsu9
        
        /**
         * @desc RSU #10
         */
        group rsu10 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU10 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE0A'O
            } // End of PICS_RSU_GN_ADDRESS_RSU10
            
            modulepar RsuParm PICS_RSU10 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU10,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU10,
                    timestamp_    := 0,
                    latitude      := 43553552,
                    longitude     := 10301039,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111110,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU10
            } // End of PICS_RSU10
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU10 := {};
            
        } // End of group rsu10
        
        /**
         * @desc RSU #11
         */
        group rsu11 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU11 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE0B'O
            } // End of PICS_RSU_GN_ADDRESS_RSU11
            
            modulepar RsuParm PICS_RSU11 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU11,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU11,
                    timestamp_    := 0,
                    latitude      := 43552915,
                    longitude     := 10301052,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111111,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU11
            } // End of PICS_RSU11
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU11 := {};
            
        } // End of group rsu11
        
        /**
         * @desc RSU #12
         */
        group rsu12 {
            
            /**
             * @desc RSU GN address
             */
            modulepar GN_Address PICS_RSU_GN_ADDRESS_RSU12 := {
                typeOfAddress         := e_manual,
                stationType           := e_roadSideUnit,
                stationCountryCode    := 33,
                mid                   := 'AABBCCDDEE0C'O
            } // End of PICS_RSU_GN_ADDRESS_RSU12
            
            modulepar RsuParm PICS_RSU12 := {
                gnAddress := PICS_RSU_GN_ADDRESS_RSU12,
                longPosVector := {
                    gnAddr        := PICS_RSU_GN_ADDRESS_RSU12,
                    timestamp_    := 0,
                    latitude      := 43553123,
                    longitude     := 10302479,
                    pai           := '0'B,
                    speed         := 0,
                    heading       := 0
                },
                stationID := 1111112,
                geoShape := e_geoCircle,
                geoParms := {
                    radius := 500
                },
                pathHistory := PICS_RSU_PATH_HISTORY_RSU12
            } // End of PICS_RSU12
            
            /**
             * @desc Path history to approch the RSU
             */
            modulepar PathHistory PICS_RSU_PATH_HISTORY_RSU12 := {};
            
        } // End of group rsu12
garciay's avatar
garciay committed
        
        modulepar RsuParmList PICS_RSU_PARAMS := {
            PICS_RSU1,
            PICS_RSU2,
            PICS_RSU3,
            PICS_RSU4,
            PICS_RSU5,
            PICS_RSU6,
            PICS_RSU7,
            PICS_RSU8,
            PICS_RSU9,
            PICS_RSU10,
            PICS_RSU11,
            PICS_RSU12
garciay's avatar
garciay committed
        } // End of PICS_RSU_PARAMS
        
    } // End of group rsuParameters 
    
    /**
     * @desc This group describes the CAM common settings for the RSUs CAM message broadcast
     */
garciay's avatar
garciay committed
    group camParams {
        
garciay's avatar
garciay committed
            
            modulepar BtpPortId PICS_CAM_BTP_DESTINATION_PORT := 2001;
            
garciay's avatar
garciay committed
            modulepar BtpPortId PICS_CAM_BTP_SOURCE_PORT      := 0;
garciay's avatar
garciay committed
        
    } // End of group rsuParameters 
    
    /**
     * @desc This group describes the DENM common settings for the each use cases and for each RSU.
     */
garciay's avatar
garciay committed
    group denmEvents {
        
garciay's avatar
garciay committed
            
            modulepar BtpPortId PICS_DENM_BTP_DESTINATION_PORT := 2002;
            
garciay's avatar
garciay committed
            modulepar BtpPortId PICS_DENM_BTP_SOURCE_PORT      := 0;
garciay's avatar
garciay committed
            
            modulepar PosConfidenceEllipse PICS_DENM_POSITION_CONFIDENCE_ELLIPSE := {
                semiMajorConfidence   := SemiAxisLength_oneCentimeter_,
                semiMinorConfidence   := SemiAxisLength_oneCentimeter_,
                semiMajorOrientation  := HeadingValue_wgs84North_
            } // End of PICS_DENM_POSITION_CONFIDENCE_ELLIPSE
            
            modulepar Altitude PICS_DENM_ALTITUDE := {
                altitudeValue := AltitudeValue_referenceEllipsoidSurface_,
                altitudeConfidence := unavailable
            } // End of PICS_DENM_ALTITUDE
            
            /**
             * @desc DENM repetition interval, in ms
             */
            modulepar TransmissionInterval PICS_DENM_REPETITION_INTERVAL := 1000;
            
        /**
         * @desc Use case #1: Z1-D1-SL/Speed limit
         */
        group denmUseCase1 {
            
            /**
             * @desc Use case #1: Z1-D1-EP/Event position
             */
            group denmZone1 {
                
                group denmZone1_D1 {
                    
                    /**
                     * @desc Z1-D1-EP/POS1
                     */
                    modulepar ReferencePosition PICS_Z1_D1_EP := {
                        latitude                                    := 435525352,                               // Z1-D1-EP/latitude
                        longitude                                   := 103003415,                               // Z1-D1-EP/longitude
                        positionConfidenceEllipse                   := PICS_DENM_POSITION_CONFIDENCE_ELLIPSE,
                        altitude                                    := PICS_DENM_ALTITUDE
                    }; // End of PICS_Z1_D1_EP
                    
                    /**
                     * @desc Z1-D1-EP/EventHistory1
                     */
                    modulepar EventHistory PICS_Z1_D1_Hx := { 
                        { // Z1_D1_H1
                            eventPosition := {
                                deltaLatitude                       := -2546,
                                deltaLongitude                      := -3697,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
garciay's avatar
garciay committed
                        },
                        { // Z1_D1_H2
                            eventPosition := {
                                deltaLatitude                       := -3699,
                                deltaLongitude                      := -5788,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
                        }
                    }; // End of PICS_Z1_D1_Hx
                    
                    /**
                     * @desc Z1-D1-Traces/Trace1
                     */
                    modulepar Traces PICS_Z1_D1_Tx := {
                        {
                        { // Z1-D1-T1
                            pathPosition := {
                                deltaLatitude                       := 4659,
                                deltaLongitude                      := 7205,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
garciay's avatar
garciay committed
                        },
                        { // Z1-D1-T2
                            pathPosition := {
                                deltaLatitude                       := 510,
                                deltaLongitude                      := 720,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
garciay's avatar
garciay committed
                        },
                        { // Z1-D1-T3
                            pathPosition := {
                                deltaLatitude                       := 208,
                                deltaLongitude                      := 531,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
garciay's avatar
garciay committed
                        },
                        { // Z1-D1-T4
                            pathPosition := {
                                deltaLatitude                       := 154,
                                deltaLongitude                      := 409,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
garciay's avatar
garciay committed
                        },
                        { // Z1-D1-T5
                            pathPosition := {
                                deltaLatitude                       := 160,
                                deltaLongitude                      := 1041,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        }
                        }
                    }; // End of PICS_Z1_D1_Tx
                    
                    modulepar DenmParm PICS_Z1_D1 := {
                        eventPosition                               := PICS_Z1_D1_EP,
                        causeCodeType                               := CauseCodeType_roadworks_,
                        eventHistory                                := PICS_Z1_D1_Hx,
                        traces                                      := PICS_Z1_D1_Tx,
                        roadWorksContainerExtended := {
                            lightBarSirenInUse                      := omit,
                            closedLanes := {
                                hardShoulderStatus                  := availableForDriving,
                                drivingLaneStatus                   := '0001'B
                            },
                            restriction                             := omit,
                            speedLimit                              := 30,
                            incidentIndication                      := omit,
                            recommendedPath                         := omit,
                            startingPointSpeedLimit := {
                                deltaLatitude                       := 0,
                                deltaLongitude                      := 0,
                                deltaAltitude                       := 0
                            },
                            trafficFlowRule                         := passToRight,
                            referenceDenms                          := omit
                        }
                    } // End of PICS_Z1_D1
                    
                } // End of group denmZone1_D1
                
                group denmZone1_D2 {
                    
                    /**
                     * @desc Z1-D2-EP/POS2
                     */
                    modulepar ReferencePosition PICS_Z1_D2_EP := {
                        latitude                                    := 435519107,                               // Z1-D2-EP/latitude
                        longitude                                   := 102993930,                               // Z1-D2-EP/longitude
                        positionConfidenceEllipse                   := PICS_DENM_POSITION_CONFIDENCE_ELLIPSE,
                        altitude                                    := PICS_DENM_ALTITUDE
                    }; // End of PICS_Z1_D2_EP
                    
                    /**
                     * @desc Z1-D2-EP/EventHistory2
                     */
                    modulepar EventHistory PICS_Z1_D2_Hx := { 
                        { // Z1_D2_H1
                            eventPosition := {
                                deltaLatitude                       := -2750,
                                deltaLongitude                      := -4251,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
garciay's avatar
garciay committed
                        },
                        { // Z1_D2_H2
                            eventPosition := {
                                deltaLatitude                       := -2936,
                                deltaLongitude                      := -3641,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
                        }
                    }; // End of PICS_Z1_D2_Hx
                    
                    /**
                     * @desc Z1-D2-Traces/Trace2
                     */
                    modulepar Traces PICS_Z1_D2_Tx := {
                        {
                        { // Z1-D2-T1
                            pathPosition := {
                                deltaLatitude                       := 3699,
                                deltaLongitude                      := 5788,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z1-D2-T2
                            pathPosition := {
                                deltaLatitude                       := 456,
                                deltaLongitude                      := 598,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z1-D2-T3
                            pathPosition := {
                                deltaLatitude                       := 450,
                                deltaLongitude                      := 697,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z1-D2-T4
                            pathPosition := {
                                deltaLatitude                       := 619,
                                deltaLongitude                      := 963,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z1-D2-T5
                            pathPosition := {
                                deltaLatitude                       := 510,
                                deltaLongitude                      := 719,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        }
                        }
                    }; // End of PICS_Z1_D2_Tx
                    
                    modulepar DenmParm PICS_Z1_D2 := {
                        eventPosition                               := PICS_Z1_D2_EP,
                        causeCodeType                               := CauseCodeType_roadworks_,
                        eventHistory                                := PICS_Z1_D2_Hx,
                        traces                                      := PICS_Z1_D2_Tx,
                        roadWorksContainerExtended := {
                            lightBarSirenInUse                      := omit,
                            closedLanes := {
                                hardShoulderStatus                  := availableForDriving,
                                drivingLaneStatus                   := '0011'B
                            },
                            restriction                             := omit,
                            speedLimit                              := 30,
                            incidentIndication                      := omit,
                            recommendedPath                         := omit,
                            startingPointSpeedLimit := {
                                deltaLatitude                       := 0,
                                deltaLongitude                      := 0,
                                deltaAltitude                       := 0
                            },
                            trafficFlowRule                         := passToRight,
                            referenceDenms                          := omit
                        }
                        
                    } // End of PICS_Z1_D2
                    
                } // End of group denmZone1_D2
                
                group denmZone1_D3 {
                    
                    /**
                     * @desc Z1-D3-EP/POS3
                     */
                    modulepar ReferencePosition PICS_Z1_D3_EP := {
                        latitude                                    := 435513421,                               // Z1-D3-EP/latitude
                        longitude                                   := 102986038,                               // Z1-D3-EP/longitude
                        positionConfidenceEllipse                   := PICS_DENM_POSITION_CONFIDENCE_ELLIPSE,
                        altitude                                    := PICS_DENM_ALTITUDE
                    }; // End of PICS_Z1_D3_EP
                    
                    /**
                     * @desc Z1-D3-EP/EventHistory1
                     */
                    modulepar EventHistory PICS_Z1_D3_Hx := { 
                        { // Z1_D3_H1
                            eventPosition := {
                                deltaLatitude                       := -1158,
                                deltaLongitude                      := -45,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
                        },
                        { // Z1_D3_H2
                            eventPosition := {
                                deltaLatitude                       := -1299,
                                deltaLongitude                      := -819,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
                        }
                    }; // End of PICS_Z1_D3_Hx
                    
                    /**
                     * @desc Z1-D3-Traces/Trace1
                     */
                    modulepar Traces PICS_Z1_D3_Tx := {
                        {
                        { // Z1-D3-T1
                            pathPosition := {
                                deltaLatitude                       := 3435,
                                deltaLongitude                      := 4483,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z1-D3-T2
                            pathPosition := {
                                deltaLatitude                       := 626,
                                deltaLongitude                      := 863,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z1-D3-T3
                            pathPosition := {
                                deltaLatitude                       := 500,
                                deltaLongitude                      := 541,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z1-D3-T4
                            pathPosition := {
                                deltaLatitude                       := 564,
                                deltaLongitude                      := 841,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        }
                        }
                    }; // End of PICS_Z1_D3_Tx
                    
                    modulepar DenmParm PICS_Z1_D3 := {
                        eventPosition                               := PICS_Z1_D3_EP,
                        causeCodeType                               := CauseCodeType_roadworks_,
                        eventHistory                                := PICS_Z1_D3_Hx,
                        traces                                      := PICS_Z1_D3_Tx,
                        roadWorksContainerExtended := {
                            lightBarSirenInUse                      := omit,
                            closedLanes := {
                                hardShoulderStatus                  := closed,
                                drivingLaneStatus                   := '01'B
                            },
                            restriction                             := omit,
                            speedLimit                              := 30,
                            incidentIndication                      := omit,
                            recommendedPath                         := omit,
                            startingPointSpeedLimit := {
                                deltaLatitude                       := 0,
                                deltaLongitude                      := 0,
                                deltaAltitude                       := 0
                            },
                            trafficFlowRule                         := passToRight,
                            referenceDenms                          := omit
                        }
                        
                    } // End of PICS_Z1_D3
                    
                } // End of denmZone1_D3
                
            } // End of group denmZone1 
929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258
            group denmZone2 {
                
                group denmZone2_D1 {
                    
                    /**
                     * @desc Z2-D1-EP/POS1
                     */
                    modulepar ReferencePosition PICS_Z2_D1_EP := {
                        latitude                                    := 435525352,                               // Z2-D1-EP/latitude
                        longitude                                   := 103003415,                               // Z2-D1-EP/longitude
                        positionConfidenceEllipse                   := PICS_DENM_POSITION_CONFIDENCE_ELLIPSE,
                        altitude                                    := PICS_DENM_ALTITUDE
                    }; // End of PICS_Z2_D1_EP
                    
                    /**
                     * @desc Z2-D1-EP/EventHistory1
                     */
                    modulepar EventHistory PICS_Z2_D1_Hx := { 
                        { // Z2_D1_H1
                            eventPosition := {
                                deltaLatitude                       := -2546,
                                deltaLongitude                      := -3697,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
                        },
                        { // Z2_D1_H2
                            eventPosition := {
                                deltaLatitude                       := -3699,
                                deltaLongitude                      := -5788,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
                        }
                    }; // End of PICS_Z2_D1_Hx
                    
                    /**
                     * @desc Z2-D1-Traces/Trace1
                     */
                    modulepar Traces PICS_Z2_D1_Tx := {
                        {
                        { // Z2-D1-T1
                            pathPosition := {
                                deltaLatitude                       := 4659,
                                deltaLongitude                      := 7205,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D1-T2
                            pathPosition := {
                                deltaLatitude                       := 510,
                                deltaLongitude                      := 720,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D1-T3
                            pathPosition := {
                                deltaLatitude                       := 208,
                                deltaLongitude                      := 531,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D1-T4
                            pathPosition := {
                                deltaLatitude                       := 154,
                                deltaLongitude                      := 409,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D1-T5
                            pathPosition := {
                                deltaLatitude                       := 160,
                                deltaLongitude                      := 1041,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        }
                        }
                    }; // End of PICS_Z2_D1_Tx
                    
                    modulepar DenmParm PICS_Z2_D1 := {
                        eventPosition                               := PICS_Z2_D1_EP,
                        causeCodeType                               := CauseCodeType_roadworks_,
                        eventHistory                                := PICS_Z2_D1_Hx,
                        traces                                      := PICS_Z2_D1_Tx,
                        roadWorksContainerExtended := {
                            lightBarSirenInUse                      := omit,
                            closedLanes := {
                                hardShoulderStatus                  := availableForDriving,
                                drivingLaneStatus                   := '0001'B
                            },
                            restriction                             := omit,
                            speedLimit                              := 30,
                            incidentIndication                      := omit,
                            recommendedPath                         := omit,
                            startingPointSpeedLimit := {
                                deltaLatitude                       := 0,
                                deltaLongitude                      := 0,
                                deltaAltitude                       := 0
                            },
                            trafficFlowRule                         := passToRight,
                            referenceDenms                          := omit
                        }
                    } // End of PICS_Z2_D1
                    
                } // End of group denmZone2_D1
                
                group denmZone2_D2 {
                    
                    /**
                     * @desc Z2-D2-EP/POS2
                     */
                    modulepar ReferencePosition PICS_Z2_D2_EP := {
                        latitude                                    := 435519107,                               // Z2-D2-EP/latitude
                        longitude                                   := 102993930,                               // Z2-D2-EP/longitude
                        positionConfidenceEllipse                   := PICS_DENM_POSITION_CONFIDENCE_ELLIPSE,
                        altitude                                    := PICS_DENM_ALTITUDE
                    }; // End of PICS_Z2_D2_EP
                    
                    /**
                     * @desc Z2-D2-EP/EventHistory2
                     */
                    modulepar EventHistory PICS_Z2_D2_Hx := { 
                        { // Z2_D2_H1
                            eventPosition := {
                                deltaLatitude                       := -2750,
                                deltaLongitude                      := -4251,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
                        },
                        { // Z2_D2_H2
                            eventPosition := {
                                deltaLatitude                       := -2936,
                                deltaLongitude                      := -3641,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
                        }
                    }; // End of PICS_Z2_D2_Hx
                    
                    /**
                     * @desc Z2-D2-Traces/Trace2
                     */
                    modulepar Traces PICS_Z2_D2_Tx := {
                        {
                        { // Z2-D2-T1
                            pathPosition := {
                                deltaLatitude                       := 3699,
                                deltaLongitude                      := 5788,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D2-T2
                            pathPosition := {
                                deltaLatitude                       := 456,
                                deltaLongitude                      := 598,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D2-T3
                            pathPosition := {
                                deltaLatitude                       := 450,
                                deltaLongitude                      := 697,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D2-T4
                            pathPosition := {
                                deltaLatitude                       := 619,
                                deltaLongitude                      := 963,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D2-T5
                            pathPosition := {
                                deltaLatitude                       := 510,
                                deltaLongitude                      := 719,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        }
                        }
                    }; // End of PICS_Z2_D2_Tx
                    
                    modulepar DenmParm PICS_Z2_D2 := {
                        eventPosition                               := PICS_Z2_D2_EP,
                        causeCodeType                               := CauseCodeType_roadworks_,
                        eventHistory                                := PICS_Z2_D2_Hx,
                        traces                                      := PICS_Z2_D2_Tx,
                        roadWorksContainerExtended := {
                            lightBarSirenInUse                      := omit,
                            closedLanes := {
                                hardShoulderStatus                  := availableForDriving,
                                drivingLaneStatus                   := '0011'B
                            },
                            restriction                             := omit,
                            speedLimit                              := 30,
                            incidentIndication                      := omit,
                            recommendedPath                         := omit,
                            startingPointSpeedLimit := {
                                deltaLatitude                       := 0,
                                deltaLongitude                      := 0,
                                deltaAltitude                       := 0
                            },
                            trafficFlowRule                         := passToRight,
                            referenceDenms                          := omit
                        }
                        
                    } // End of PICS_Z2_D2
                    
                } // End of group denmZone2_D2
                
                group denmZone2_D3 {
                    
                    /**
                     * @desc Z2-D3-EP/POS3
                     */
                    modulepar ReferencePosition PICS_Z2_D3_EP := {
                        latitude                                    := 435513421,                               // Z2-D3-EP/latitude
                        longitude                                   := 102986038,                               // Z2-D3-EP/longitude
                        positionConfidenceEllipse                   := PICS_DENM_POSITION_CONFIDENCE_ELLIPSE,
                        altitude                                    := PICS_DENM_ALTITUDE
                    }; // End of PICS_Z2_D3_EP
                    
                    /**
                     * @desc Z2-D3-EP/EventHistory1
                     */
                    modulepar EventHistory PICS_Z2_D3_Hx := { 
                        { // Z2_D3_H1
                            eventPosition := {
                                deltaLatitude                       := -1158,
                                deltaLongitude                      := -45,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
                        },
                        { // Z2_D3_H2
                            eventPosition := {
                                deltaLatitude                       := -1299,
                                deltaLongitude                      := -819,
                                deltaAltitude                       := 0
                            },
                            eventDeltaTime                          := omit,
                            informationQuality                      := 0
                        }
                    }; // End of PICS_Z2_D3_Hx
                    
                    /**
                     * @desc Z2-D3-Traces/Trace1
                     */
                    modulepar Traces PICS_Z2_D3_Tx := {
                        {
                        { // Z2-D3-T1
                            pathPosition := {
                                deltaLatitude                       := 3435,
                                deltaLongitude                      := 4483,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D3-T2
                            pathPosition := {
                                deltaLatitude                       := 626,
                                deltaLongitude                      := 863,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D3-T3
                            pathPosition := {
                                deltaLatitude                       := 500,
                                deltaLongitude                      := 541,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                        },
                        { // Z2-D3-T4
                            pathPosition := {
                                deltaLatitude                       := 564,
                                deltaLongitude                      := 841,
                                deltaAltitude                       := 0
                            },
                            pathDeltaTime                           := omit
                            }
                        }
                    }; // End of PICS_Z2_D3_Tx
                    
                    modulepar DenmParm PICS_Z2_D3 := {
                        eventPosition                               := PICS_Z2_D3_EP,
                        causeCodeType                               := CauseCodeType_roadworks_,
                        eventHistory                                := PICS_Z2_D3_Hx,
                        traces                                      := PICS_Z2_D3_Tx,
                        roadWorksContainerExtended := {
                            lightBarSirenInUse                      := omit,
                            closedLanes := {
                                hardShoulderStatus                  := closed,
                                drivingLaneStatus                   := '01'B
                            },
                            restriction                             := omit,
                            speedLimit                              := 30,
                            incidentIndication                      := omit,
                            recommendedPath                         := omit,
                            startingPointSpeedLimit := {
                                deltaLatitude                       := 0,
                                deltaLongitude                      := 0,
                                deltaAltitude                       := 0
                            },
                            trafficFlowRule                         := passToRight,
                            referenceDenms                          := omit
                        }
                        
                    } // End of PICS_Z2_D3
                    
                } // End of denmZone2_D3
                
            } // End of group denmZone2
garciay's avatar
garciay committed
            
            modulepar DenmEventsParmsUseCase PICS_DENM_PARMS_UC1_RWW := {
garciay's avatar
garciay committed
            } // End of PICS_DENM_PARMS_UC1_RWW
            
        } // End of group denmUseCase1 
        
        group denmUseCase2 {
            // TODO To be done
        } // End of group denmUseCase2 
            
        modulepar DenmEventsParmsUseCaseRsu PICS_DENM_EVENTS_RSU := {
            PICS_DENM_PARMS_UC1_RWW
        } // End of PICS_DENM_EVENTS_RSU
        
    } // End of group denmEvents 
    
    group mapemEvents {
        
        group mapemCommonParams {
            
garciay's avatar
garciay committed
            modulepar BtpPortId PICS_MAPEM_BTP_DESTINATION_PORT  := 2003;
garciay's avatar
garciay committed
            modulepar BtpPortId PICS_MAPEM_BTP_SOURCE_PORT       := 0;
garciay's avatar
garciay committed
            
        } // End of group mapemCommonParams
        
        group mapemZone1 {
garciay's avatar
garciay committed
            
            modulepar MapemParm PICS_MAPEM_PARMS_RSU_1 := {
                intersections := {
                    { // Start of intersection #0
                        name                                := "PICS_MAPEM_PARMS_RSU_1",
                        id := {
                            region                          := 0,
                            id                              := 0
                        },
                        revision                            := 0,
                        refPoint := {
                            lat                             := 435517392,
                            long                            := 103018217,
                            elevation                       := omit,
                            regional                        := omit
                        },
                        laneWidth                           := omit,
                        speedLimits                         := omit,
                        laneSet := {
                            { // Start of Lane #1
                                laneID                      :=  1,
                                name                        := omit,
                                ingressApproach             := 1,
                                egressApproach              := 1,
                                laneAttributes := {
                                    directionalUse          := '10'B,
                                    sharedWith              := '0000000000'B,
                                    laneType := {
                                        vehicle             := '00000000'B
                                    },
                                    regional                := omit
                                },
                                maneuvers                   := omit,
                                nodeList := {
                                    nodes := {
                                        {
                                            delta := {
                                                node_XY1 := {
                                                    x       := -10,
                                                    y       := 10
                                                }
                                            },
                                            attributes      := omit
                                        },
                                        {
                                            delta := {
                                                node_XY1 := {
                                                    x       := -10,
                                                    y       := 10
                                                }
                                            },
                                            attributes      := omit
                                        }
                                    }
                                },
                                connectsTo := {
                                    {
                                        connectingLane := {
                                            lane            := 1,
                                            maneuver        := omit
                                        }, 
                                        remoteIntersection  := omit,  
                                        signalGroup         := 1,    
                                        userClass           := omit, 
                                        connectionID        := omit
                                    }
                                },
                                overlays                    := omit,
                                regional                    := omit
                            }, // End of Lane #1
                            { // Start of Lane #2
                                laneID                      :=  1,
                                name                        := omit,
                                ingressApproach             := 1,
                                egressApproach              := 2,
                                laneAttributes := {
                                    directionalUse          := '01'B,
                                    sharedWith              := '0000000000'B,
                                    laneType := {
                                        vehicle             := '00000000'B
                                    },
                                    regional                := omit
                                },
                                maneuvers                   := omit,
                                nodeList := {
                                    nodes := {
                                        {
                                            delta := {
                                                node_XY1 := {
                                                    x       := -10,
                                                    y       := 10
                                                }
                                            },
                                            attributes      := omit
                                        },
                                        {
                                            delta := {
                                                node_XY1 := {
                                                    x       := -10,
                                                    y       := 10
                                                }
                                            },
                                            attributes      := omit
                                        }
                                    }
                                },
                                connectsTo                  := omit,
                                overlays                    := omit,
                                regional                    := omit
                            } // End of Lane #1
                        }, // End of LaneSet
                        preemptPriorityData                 := omit,
                        regional                            := omit
                    } // End of intersection #0
                }, // End of field intersections
                roadSegments := omit
            } // End of PICS_MAPEM_PARMS_RSU_1
garciay's avatar
garciay committed
            
garciay's avatar
garciay committed
        } // End of group mapemZone1 
        
        group mapemZone2 {
garciay's avatar
garciay committed
            
            modulepar MapemParm PICS_MAPEM_PARMS_RSU_2 := {
                intersections := {
                    { // Start of intersection #0
                        name                                := "PICS_MAPEM_PARMS_RSU_1",
                        id := {
                            region                          := 0,
                            id                              := 0
                        },
                        revision                            := 0,
                        refPoint := {
                            lat                             := 435517392,
                            long                            := 103018217,
                            elevation                       := omit,
                            regional                        := omit
                        },
                        laneWidth                           := omit,
                        speedLimits                         := omit,
                        laneSet := {
                            { // Start of Lane #1
                                laneID                      :=  1,
                                name                        := omit,
                                ingressApproach             := 1,
                                egressApproach              := 1,
                                laneAttributes := {
                                    directionalUse          := '10'B,
                                    sharedWith              := '0000000000'B,
                                    laneType := {
                                        vehicle             := '00000000'B
                                    },
                                    regional                := omit
                                },
                                maneuvers                   := omit,
                                nodeList := {
                                    nodes := {
                                        {
                                            delta := {
                                                node_XY1 := {
                                                    x       := -10,
                                                    y       := 10
                                                }
                                            },
                                            attributes      := omit
                                        },
                                        {
                                            delta := {
                                                node_XY1 := {
                                                    x       := -10,
                                                    y       := 10
                                                }
                                            },
                                            attributes      := omit
                                        }
                                    }
                                },
                                connectsTo := {
                                    {
                                        connectingLane := {
                                            lane            := 1,
                                            maneuver        := omit
                                        }, 
                                        remoteIntersection  := omit,  
                                        signalGroup         := 1,    
                                        userClass           := omit, 
                                        connectionID        := omit
                                    }
                                },
                                overlays                    := omit,
                                regional                    := omit
                            }, // End of Lane #1
                            { // Start of Lane #2
                                laneID                      :=  1,
                                name                        := omit,
                                ingressApproach             := 1,
                                egressApproach              := 2,
                                laneAttributes := {
                                    directionalUse          := '01'B,
                                    sharedWith              := '0000000000'B,
                                    laneType := {
                                        vehicle             := '00000000'B
                                    },
                                    regional                := omit
                                },
                                maneuvers                   := omit,
                                nodeList := {
                                    nodes := {
                                        {
                                            delta := {
                                                node_XY1 := {
                                                    x       := -10,
                                                    y       := 10
                                                }
                                            },
                                            attributes      := omit
                                        },
                                        {
                                            delta := {
                                                node_XY1 := {
                                                    x       := -10,
                                                    y       := 10
                                                }
                                            },
                                            attributes      := omit
                                        }
                                    }
                                },
                                connectsTo                  := omit,
                                overlays                    := omit,
                                regional                    := omit
                            } // End of Lane #1
                        }, // End of LaneSet
                        preemptPriorityData                 := omit,
                        regional                            := omit
                    } // End of intersection #0
                }, // End of field intersections
                roadSegments := omit
            } // End of PICS_MAPEM_PARMS_RSU_2
garciay's avatar
garciay committed
            
garciay's avatar
garciay committed
        } // End of group mapemZone2 
        
        modulepar MapemParmListRsu PICS_MAPEM_PARMS_RSUs := {
garciay's avatar
garciay committed
            PICS_MAPEM_PARMS_RSU_1,
            PICS_MAPEM_PARMS_RSU_2
        } // End of PICS_MAPEM_PARMS_RSU
garciay's avatar
garciay committed
        
    } // End of group mapemEvents 
    
    group spatemEvents {
        
        group spatemCommonParams {
            
            modulepar BtpPortId PICS_SPATEM_BTP_DESTINATION_PORT := 2004;
            
            modulepar BtpPortId PICS_SPATEM_BTP_SOURCE_PORT      := 0;
            
        } // End of group spatemCommonParams
        
        group spatemZone1 {
            
            modulepar SignalGroupParm PICS_SPATEM_PARMS_SG_1_RS_1 := {
                signalGroupID                               := 1,
                intersections := {
                    {
                        name                                := "PICS_SPATEM_PARMS_SG_1_RS_1",
                        id := {
                            region                          := 0,
                            id                              := 0
                        },
                        revision                            := 0,   
                        status                              := int2bit(0, 16),
                        moy                                 := omit,
                        timeStamp                           := omit, 
                        enabledLanes                        := omit,  
                        states := {
                            {
                               movementName                 := "protected-Movement-Allowed",
                               signalGroup                  := 1, 
                               state_time_speed:= {
                                   {
                                       eventState           := protected_Movement_Allowed,
                                       timing               := omit,
                                       speeds               := omit,
                                       regional             := omit
                                   }
                               },   
                               maneuverAssistList           := omit,
                               regional                     := omit
                            },
                            {
                               movementName                 := "protected-clearance",
                               signalGroup                  := 1, 
                               state_time_speed:= {
                                   {
                                       eventState           := protected_clearance,
                                       timing               := omit,
                                       speeds               := omit,
                                       regional             := omit
                                   }
                               },   
                               maneuverAssistList           := omit,
                               regional                     := omit
                            },
                            {
                               movementName                 := "stop_Then_Proceed",
                               signalGroup                  := 1, 
                               state_time_speed:= {
                                   {
                                       eventState           := stop_Then_Proceed,
                                       timing               := omit,
                                       speeds               := omit,
                                       regional             := omit
                                   }
                               },   
                               maneuverAssistList           := omit,
                               regional                     := omit
                            }
                        },
                        maneuverAssistList                  := omit,
                        regional                            := omit
                    }
                } // End of field states
            } // End of type PICS_SPATEM_PARMS_SG_1_RS_1
            
            modulepar SignalGroupParmList PICS_SPATEM_PARMS_RSU_1 := {
                PICS_SPATEM_PARMS_SG_1_RS_1
            } // End of type PICS_SPATEM_PARMS_RSU_1
            
        }
        
        group spatemZone2 {
            
            modulepar SignalGroupParm PICS_SPATEM_PARMS_SG_1_RS_2 := {
                signalGroupID                               := 1,
                intersections := {
                    {
                        name                                := "PICS_SPATEM_PARMS_SG_1_RS_2",
                        id := {
                            region                          := 0,
                            id                              := 0
                        },
                        revision                            := 0,   
                        status                              := int2bit(0, 16),
                        moy                                 := omit,
                        timeStamp                           := omit, 
                        enabledLanes                        := omit,  
                        states := {
                            {
                               movementName                 := "stop_Then_Proceed",
                               signalGroup                  := 1, 
                               state_time_speed:= {
                                   {
                                       eventState           := stop_Then_Proceed,
                                       timing               := omit,
                                       speeds               := omit,
                                       regional             := omit
                                   }
                               },   
                               maneuverAssistList           := omit,
                               regional                     := omit
                            }
                        },
                        maneuverAssistList                  := omit,
                        regional                            := omit
                    }
                } // End of field states
            } // End of type PICS_SPATEM_PARMS_SG_1_RS_2
            
            modulepar SignalGroupParmList PICS_SPATEM_PARMS_RSU_2 := {
                PICS_SPATEM_PARMS_SG_1_RS_2
            } // End of type PICS_SPATEM_PARMS_RSU_1_RS_2
            
        }
        
        modulepar SpatemParmRsu PICS_SPATEM_PARMS_RSUs := {
            PICS_SPATEM_PARMS_RSU_1,
            PICS_SPATEM_PARMS_RSU_2
        } // End of PICS_SPATEM_PARMS_RSUs
        
    } // End of group spatemEvents
    
garciay's avatar
garciay committed
    group ivimEvents {
        
        group ivimCommonParams {
            
            modulepar BtpPortId PICS_IVIM_BTP_DESTINATION_PORT := 2006;
garciay's avatar
garciay committed
            modulepar BtpPortId PICS_IVIM_BTP_SOURCE_PORT      := 0;
garciay's avatar
garciay committed
            
        } // End of group ivimCommonParams
        
        group ivimZone1 {
            
            modulepar IvimParm PICS_IVIM_PARMS_RSU_1 := {
                provider := {
                    countryCode                                := '0000000001'B,
                    providerIdentifier                         := 13
                },
                iviIdentificationNumber                        := 12
            } // End of PICS_IVIM_PARMS_RSU_1
            
garciay's avatar
garciay committed
        } // End of group ivimZone1 
        
        group ivimZone2 {
            // TODO To be done
        } // End of group ivimZone2 
        
        modulepar IvimParmListRsu PICS_IVIM_PARMS_RSUs := {
            PICS_IVIM_PARMS_RSU_1
        } // End of PICS_IVIM_PARMS_RSUs
garciay's avatar
garciay committed
        
    } // End of group ivimEvents 
    
    group ssemEvents {
        
        group ssemCommonParams {
            
            modulepar BtpPortId PICS_SSEM_BTP_DESTINATION_PORT := 2008;
            
            modulepar BtpPortId PICS_SSEM_BTP_SOURCE_PORT      := 0;
            
        } // End of group ssemCommonParams
        
    } // End of group ssemEvents
    
    group sremEvents {
        
        group sremCommonParams {
            
            modulepar BtpPortId PICS_SREM_BTP_DESTINATION_PORT := 2007;
            
            modulepar BtpPortId PICS_SREM_BTP_SOURCE_PORT      := 0;
            
        } // End of group sremCommonParams
        
    } // End of group sremEvents
    
garciay's avatar
garciay committed
    group generationFrequencies {
        
        modulepar boolean PICS_GENERATE_CAM := true;
        
        modulepar boolean PICS_GENERATE_DENM := true;
        
        modulepar boolean PICS_GENERATE_IVIM := true;
        
garciay's avatar
garciay committed
        modulepar boolean PICS_GENERATE_MAPEM := true;
        
        modulepar boolean PICS_GENERATE_SPATEM := true;
        
        modulepar boolean PICS_GENERATE_SSEM := true;
        
garciay's avatar
garciay committed
        /**
         * @desc CAM frequency timer
         */
        modulepar float PICS_CAM_FREQUENY       := 0.1;
        
        /**
         * @desc DENM frequency timer
         */
        modulepar float PICS_DENM_FREQUENY      := int2float(PICS_DENM_REPETITION_INTERVAL) / 1000.0;
garciay's avatar
garciay committed
        
        /**
         * @desc MAPEM frequency timer
         */
        modulepar float PICS_MAPEM_FREQUENY     := 5.0;
garciay's avatar
garciay committed
        
        /**
         * @desc SPATEMM frequency timer
         */
        modulepar float PICS_SPATEM_FREQUENY    := 5.0;
garciay's avatar
garciay committed
        
        /**
         * @desc IVIM frequency timer
         */
        modulepar float PICS_IVIM_FREQUENY      := 5.0;
garciay's avatar
garciay committed
        
    } // End of group generationFrequencies 
    
} // End of module ItsRSUsSimulator_Pics