ItsRSUsSimulator_TypesAndValues.ttcn 9.71 KB
Newer Older
garciay's avatar
garciay committed
1
2
3
4
5
6
7
8
9
10
11
12
module ItsRSUsSimulator_TypesAndValues {
    
    // 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;
13
    import from IVI language "ASN.1:1997" all;
garciay's avatar
garciay committed
14
    import from EVCSN_PDU_Descriptions language "ASN.1:1997" all;
garciay's avatar
garciay committed
15
    import from SSEM_PDU_Descriptions language "ASN.1:1997" all;
garciay's avatar
garciay committed
16
    import from DSRC language "ASN.1:1997" all;
garciay's avatar
garciay committed
17
    import from DSRC_REGION_noCircular language "ASN.1:1997" all;
18
    import from EfcDsrcApplication language "ASN.1:1997" all;
garciay's avatar
garciay committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
    
    // LibItsGeoNetworking
    import from LibItsGeoNetworking_TypesAndValues all;
    
    /**
     * @desc Data structures used to build IS messages & event for a specific RSU
     */
    group rsiSimulatordataStructures {
        
        /**
         * @desc This is the list of DENM events hosted by a single RSU
         */
        type record of DENM DENMs;
        
33
34
35
36
37
        /**
         * @desc This is the list of SPATEM events hosted by a single RSU
         */
        type record of SPATEM SPATEMs;
        
garciay's avatar
garciay committed
38
39
40
41
42
        /**
         * @desc TODO
         */
        type record of UInt32 SpatemRepetionDuration;
        
garciay's avatar
garciay committed
43
44
45
46
47
48
        /**
         * @desc Defines the list of messages to be sent by a single RSU
         * @member cam      CAM message that a RSU shall send
         * @member denms    List of DENM events that a RSU shall send
         */
        type record RsuMessagesValue {
49
50
51
52
53
54
            octetstring    beacon optional,
            CAM            cam optional,
            DENMs          denms optional,
            MAPEM          mapem optional,
            SPATEMs        spatems optional,
            IVIM           ivim optional,
garciay's avatar
garciay committed
55
            EvcsnPdu       evcsn optional,
56
            SSEM           ssem optional
garciay's avatar
garciay committed
57
58
59
60
61
62
63
64
65
66
67
        } // End of type RsuMessagesValue
        
        /**
         * @desc List of the RSU settings (for future usage (e.g. dynamic change of the RSU ID)
         */
        type record of RsuMessagesValue RsuMessagesValueList;
        
        type record DenmParmContainers { 
            ManagementContainer managementContainer,
            SituationContainer  situationContainer,
            LocationContainer   locationContainer
68
        } // End of type DenmParmContainers
garciay's avatar
garciay committed
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
        
        /**
         * @desc This is the list of DENM dynamic parameters for the different events hosted by a single RSU
         */
        type record of DenmParmContainers DenmParmContainersList;
        
        /**
         * @desc This is the list of DENM dynamic parameters for the different events hosted for all RSUs
         */
        type record of DenmParmContainersList DenmParmContainersListRsu;
        
    } // End of group rsiSimulatordataStructures
    
    /**
     * @desc Data structures used to set up IS messages & event according to the track configuration
     */
    group picsDataStructures {
        
        /**
         * @desc CAM setup
         */
        group camDataStructures {
            
            /**
             * @desc Describe the parameter for each CAM event
             */
            type record RsuParm {
garciay's avatar
garciay committed
96
97
98
99
100
                LongPosVector                 longPosVector,
                StationID                     stationID,
                ITS_Container.StationType     stationType,
                VehicleRole                   vehicleRole,
                GeoShape                      geoShape,
garciay's avatar
garciay committed
101
                union {
garciay's avatar
garciay committed
102
                    UInt16                    radius
garciay's avatar
garciay committed
103
                } geoParms,
garciay's avatar
garciay committed
104
                PathHistory                   pathHistory
garciay's avatar
garciay committed
105
106
107
108
109
110
111
112
113
114
            } // End of type CamParm
            
            /**
             * @desc List of CAM parms per RSU
             * <pre>
             *     vc_longPosVectorRsu := PICS_RSU_PARAMS[PX_RSU_ID - 1].longPosVector;
             * </pre>
             */
            type record of RsuParm RsuParmList;
            
garciay's avatar
garciay committed
115
116
117
            /**
             * @desc List of simulated vehicle positions for UC6
             */
garciay's avatar
garciay committed
118
            //type record of ReferencePosition Usecase6VehiclePositions;
garciay's avatar
garciay committed
119
            
garciay's avatar
garciay committed
120
121
122
123
124
125
        } // End of group camDataStructures
        
        /**
         * @desc MAPEM setup
         */
        group mapemDataStructures {
garciay's avatar
garciay committed
126
127
128
129
130
            
            /**
             * @desc Describe the parameter for each MAPEM event
             */
            type record MapemParm {
garciay's avatar
garciay committed
131
                IntersectionGeometryList intersections optional,
132
                RoadSegmentList          roadSegments optional
garciay's avatar
garciay committed
133
134
            } // End of type MapemParm
            
135
            /** 
garciay's avatar
garciay committed
136
137
138
139
140
             * @desc List of MAPEM parms per RSU
             * <pre>
             *     v_intersection := PICS_MAPEM_PARMS_RSUs[PX_RSU_ID - 1].intersections[v_idx];
             * </pre>
             */
141
            type record of MapemParm MapemParmListRsu;
garciay's avatar
garciay committed
142
            
garciay's avatar
garciay committed
143
144
        } // End of group mapemDataStructures
        
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
        /**
         * @desc SPATEM setup
         */
        group spatemDataStructures {
            /**
             * @desc Describe the parameter for each SPATEM event
             */
            type record SignalGroupParm {
                SignalGroupID         signalGroupID,
                IntersectionStateList intersections
            } // End of type SignalGroupParm
            
            /** 
             * @desc List of SignalGroup parms for one RSU
             * <pre>
             *     v_movementEvent := PICS_SPATEM_PARMS_RSU_1[v_signalGroupID].states[v_idx];
             * </pre>
             */
            type record of SignalGroupParm SignalGroupParmList;
            
            /** 
             * @desc List of all RSUs SignalGroups parms
             * <pre>
             *     v_movementEvent := PICS_SPATEM_PARMS_RSU_1[PX_RSU_ID - 1].states[v_idx];
             * </pre>
             */
            type record of SignalGroupParmList SpatemParmRsu;
            
            type record of MovementList MovementListPerIntersection;
            
            type record of MovementListPerIntersection MovementListPerIntersectionRsu;
            
        } // End of group spatemDataStructures
        
garciay's avatar
garciay committed
179
180
181
182
        /**
         * @desc IVIM setup
         */
        group ivimDataStructures {
183
            
garciay's avatar
garciay committed
184
185
            type record length (1 .. 8) of IviContainer IviContainers;
            
186
187
188
189
            /**
             * @desc Describe the parameter for each IVIM event
             */
            type record IvimParm {
garciay's avatar
garciay committed
190
191
192
                Provider                 provider optional,
                IviIdentificationNumber  iviIdentificationNumber optional,
                IviContainers            iviContainers optional
193
194
195
196
197
198
199
200
201
            } // End of type IvimParm
            
            /** 
             * @desc List of IVIM parms per RSU
             * <pre>
             *     v_provider := PICS_IVIM_PARMS_RSUs[PX_RSU_ID - 1].povider;
             * </pre>
             */
            type record of IvimParm IvimParmListRsu;
202
            
garciay's avatar
garciay committed
203
        } // End of group ivimDataStructures
garciay's avatar
garciay committed
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
        
        /**
         * @desc evcsn setup
         */
        group evcsnDataStructures {
            
            type record length (1 .. 256) of ItsChargingStationData ItsChargingStationDatas;
            
            /** 
             * @desc List of evcsn parms per RSU
             * <pre>
             *     v_provider := PICS_evcsn_PARMS_RSUs[PX_RSU_ID - 1].povider;
             * </pre>
             */
            type record of ItsChargingStationData PoimParmListRsu;
            
        } // End of group evcsnDataStructures
garciay's avatar
garciay committed
221
222
223
224
225
226
227
228
229
230
        
        /**
         * @desc DENM setup
         */
        group denmDataStructures {
            
            /**
             * @desc Describe the parameter for each DENM event
             */
            type record DenmParm {
231
232
233
                ReferencePosition             eventPosition,
                CauseCodeType                 causeCodeType,
                EventHistory                  eventHistory,
234
                Traces                        traces,
235
                RoadWorksContainerExtended    roadWorksContainerExtended optional
garciay's avatar
garciay committed
236
237
            } // End of type DenmParm
            
238
239
240
241
            /**
             * @desc List of DENM events per use case
             * @see <wiki URL>
             * <pre>
garciay's avatar
garciay committed
242
             *     v_denmParm := PICS_DENM_PARMS_UC1_RWW[PX_ETSI_ZONE_ID - 1][vc_eventId];
243
244
245
246
247
             *     vc_eventId := (vc_eventId + 1) mod lengthof(PICS_DENM_PARMS_UC1_RWW)
             * </pre>
             */
            type record of DenmParm DenmEventsParmsPerZone;
            
garciay's avatar
garciay committed
248
249
250
251
252
253
254
255
            /**
             * @desc List of DENM events per use case
             * @see <wiki URL>
             * <pre>
             *     v_denmParm := PICS_DENM_PARMS_UC1_RWW[vc_eventId];
             *     vc_eventId := (vc_eventId + 1) mod lengthof(PICS_DENM_PARMS_UC1_RWW)
             * </pre>
             */
256
            type record of DenmEventsParmsPerZone DenmEventsParmsUseCase;
garciay's avatar
garciay committed
257
258
259
260
            
            /**
             * @desc  List of DENM events per use case and per RSUs
             * <pre>
261
262
             *     v_denmParm := PICS_DENM_EVENTS_RSU[PX_RSU_ID - 1][PX_ETSI_USE_CASE_ID - 1][vc_eventId];
             *     vc_eventId := (vc_eventId + 1) mod lengthof(PICS_DENM_EVENTS_RSU[PX_RSU_ID - 1][PX_ETSI_USE_CASE_ID - 1])
garciay's avatar
garciay committed
263
264
265
266
267
268
269
270
271
             * </pre>
             */
            type record of DenmEventsParmsUseCase DenmEventsParmsUseCaseRsu;
            
        } // End of group denmDataStructures
        
    } // End of group picsDataStructures
    
} // End of module ItsRSUsSimulator_TypesAndValues