WlanInformationAPI_Templates.ttcn 24.2 KB
Newer Older
YannGarcia's avatar
YannGarcia committed
1
2
module WlanInformationAPI_Templates {

3
4
5
6
7
8
9
10
11
12
  // JSON
  import from JSON all;

  // LibCommon
  import from LibCommon_BasicTypesAndValues all;

  // LibMec/WlanInformationAPI
  import from WlanInformationAPI_TypesAndValues all;
  import from WlanInformationAPI_Pixits all;

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  template (value) TimeStamp m_time_stamp(
                                          in Seconds p_seconds,
                                          in NanoSeconds p_nanoSeconds := 0
                                          ) := {
    seconds     := p_seconds,
    nanoSeconds := p_nanoSeconds
  } // End of template m_time_stamp

  template (present) TimeStamp mw_time_stamp(
                                             template (present) Seconds p_seconds := ?,
                                             template (present) NanoSeconds p_nanoSeconds := ?
                                             ) := {
    seconds     := p_seconds,
    nanoSeconds := p_nanoSeconds
  } // End of template mw_time_stamp

29
30
31
  template (omit) ApInfo m_ap_info(
                                   in template (value) ApIdentity p_apId,
                                   in template (omit) UInt32 p_channel := omit,
YannGarcia's avatar
YannGarcia committed
32
33
                                   in template (omit) WlanCapabilities p_wlanCap := omit,
                                   in template (omit) WanMetrics p_wanMetrics := omit,
34
35
                                   in template (omit) BssLoad p_bssLoad := omit,
                                   in template (omit) ExtBssLoad p_extBssLoad := omit,
YannGarcia's avatar
YannGarcia committed
36
                                   in template (omit) OBssLoad p_oBssLoad := omit,
37
38
39
40
41
42
                                   in template (omit) ApLocation p_apLocation := omit,
                                   in template (omit) TimeStamp p_timeStamp := omit
                                   ) := {
    timeStamp  := p_timeStamp,
    apId       := p_apId,
    channel    := p_channel,
YannGarcia's avatar
YannGarcia committed
43
44
    wlanCap    := p_wlanCap,
    wanMetrics := p_wanMetrics,
45
46
    bssLoad    := p_bssLoad,
    extBssLoad := p_extBssLoad,
YannGarcia's avatar
YannGarcia committed
47
48
    oBssLoad   := p_oBssLoad,
    apLocation := p_apLocation
49
50
51
52
53
  } // End of template m_ap_info

  template (present) ApInfo mw_ap_info(
                                       template (present) ApIdentity p_apId := ?,
                                       template UInt32 p_channel := *,
YannGarcia's avatar
YannGarcia committed
54
55
                                       template WlanCapabilities p_wlanCap := *,
                                       template WanMetrics p_wanMetrics := *,
56
57
                                       template BssLoad p_bssLoad := *,
                                       template ExtBssLoad p_extBssLoad := *,
YannGarcia's avatar
YannGarcia committed
58
                                       template OBssLoad p_oBssLoad := *,
59
60
61
62
63
64
                                       template ApLocation p_apLocation := *,
                                       template TimeStamp p_timeStamp := *
                                       ) := {
    timeStamp  := p_timeStamp,
    apId       := p_apId,
    channel    := p_channel,
YannGarcia's avatar
YannGarcia committed
65
66
    wlanCap    := p_wlanCap,
    wanMetrics := p_wanMetrics,
67
68
    bssLoad    := p_bssLoad,
    extBssLoad := p_extBssLoad,
YannGarcia's avatar
YannGarcia committed
69
70
    oBssLoad   := p_oBssLoad,
    apLocation := p_apLocation
71
72
73
  } // End of template mw_ap_info

  template (omit) StaInfo m_sta_info(
YannGarcia's avatar
YannGarcia committed
74
                                     in template (value) StaIdentity p_staId,
75
76
77
78
79
80
                                     in template (omit) UInt32 p_channel := omit,
                                     in template (omit) ApAssociated p_apAssociated := omit,
                                     in template (omit) Rssi p_rssi := omit,
                                     in template (omit) StaDataRate p_staDataRate := omit,
                                     in template (omit) StaStatistics p_staStatistics := omit,
                                     in template (omit) BeaconReport p_beaconReport := omit,
YannGarcia's avatar
YannGarcia committed
81
82
                                     in template (omit) NeighborReport p_neighborReport := omit,
                                     in template (omit) ChannelLoad p_channelLoad := omit,
83
84
                                     in template (omit) TimeStamp p_timeStamp := omit
                                     ) := {
YannGarcia's avatar
YannGarcia committed
85
86
87
88
89
90
91
92
93
94
    timeStamp      := p_timeStamp,
    staId          := p_staId,
    channel        := p_channel,
    apAssociated   := p_apAssociated,
    rssi           := p_rssi,
    staDataRate    := p_staDataRate,
    staStatistics  := p_staStatistics,
    beaconReport   := p_beaconReport,
    neighborReport := p_neighborReport,
    channelLoad    := p_channelLoad
95
96
97
  } // End of template m_sta_info

  template (present) StaInfo mw_sta_info(
YannGarcia's avatar
YannGarcia committed
98
99
100
101
102
103
104
105
106
107
                                         template (present) StaIdentity p_staId := ?,
                                         template UInt32 p_channel := *,
                                         template ApAssociated p_apAssociated := *,
                                         template Rssi p_rssi := *,
                                         template StaDataRate p_staDataRate := *,
                                         template StaStatistics p_staStatistics := *,
                                         template BeaconReport p_beaconReport := *,
                                         template NeighborReport p_neighborReport := *,
                                         template ChannelLoad p_channelLoad := *,
                                         template TimeStamp p_timeStamp := *
108
                                         ) := {
YannGarcia's avatar
YannGarcia committed
109
110
111
112
113
114
115
116
117
118
    timeStamp      := p_timeStamp,
    staId          := p_staId,
    channel        := p_channel,
    apAssociated   := p_apAssociated,
    rssi           := p_rssi,
    staDataRate    := p_staDataRate,
    staStatistics  := p_staStatistics,
    beaconReport   := p_beaconReport,
    neighborReport := p_neighborReport,
    channelLoad    := p_channelLoad
119
120
121
122
123
  } // End of template mw_sta_info

  template (omit) AssocStaSubscription m_assoc_sta_subscription(
                                                                in template (value) JSON.AnyURI p_callbackReference,
                                                                in template (value) ApIdentity p_apId,
YannGarcia's avatar
YannGarcia committed
124
125
                                                                in template (omit) JSON.Bool p_requestTestNotification := omit,
                                                                in template (omit) WebsockNotifConfig p_websockNotifConfig := omit,
126
                                                                in template (omit) LinkTypes p_links := omit,
YannGarcia's avatar
YannGarcia committed
127
128
                                                                in template (omit) UInt8 p_notificationPeriod := omit,
                                                                in template (omit) NotificationEvent p_notificationEvent := omit,
129
130
                                                                in template (omit) TimeStamp p_expiryDeadline := omit
                                                                ) := {
YannGarcia's avatar
YannGarcia committed
131
132
133
134
135
136
137
138
139
    subscriptionType        := "AssocStaSubscription",
    callbackReference       := p_callbackReference,
    requestTestNotification := p_requestTestNotification,
    websockNotifConfig      := p_websockNotifConfig,
    links                   := p_links,
    apId                    := p_apId,
    notificationPeriod      := p_notificationPeriod,
    notificationEvent       := p_notificationEvent,
    expiryDeadline          := p_expiryDeadline
140
141
142
143
144
  } // End of template m_assoc_sta_subscription

  template (omit) AssocStaSubscription m_assoc_sta_subscription_invalid(
                                                                        in template (value) JSON.AnyURI p_callbackReference,
                                                                        in template (value) ApIdentity p_apId,
YannGarcia's avatar
YannGarcia committed
145
146
                                                                        in template (omit) JSON.Bool p_requestTestNotification := omit,
                                                                        in template (omit) WebsockNotifConfig p_websockNotifConfig := omit,
147
                                                                        in template (omit) LinkTypes p_links := omit,
YannGarcia's avatar
YannGarcia committed
148
149
                                                                        in template (omit) UInt8 p_notificationPeriod := omit,
                                                                        in template (omit) NotificationEvent p_notificationEvent := omit,
150
151
                                                                        in template (omit) TimeStamp p_expiryDeadline := omit
                                                                        ) := {
YannGarcia's avatar
YannGarcia committed
152
153
154
155
156
157
158
159
160
    subscriptionType        := "InvalidAssocStaSubscription",
    callbackReference       := p_callbackReference,
    requestTestNotification := p_requestTestNotification,
    websockNotifConfig      := p_websockNotifConfig,
    links                   := p_links,
    apId                    := p_apId,
    notificationPeriod      := p_notificationPeriod,
    notificationEvent       := p_notificationEvent,
    expiryDeadline          := p_expiryDeadline
161
162
163
164
165
  } // End of template m_assoc_sta_subscription_invalid

  template (present) AssocStaSubscription mw_assoc_sta_subscription(
                                                                    template (present) JSON.AnyURI p_callbackReference := ?,
                                                                    template (present) ApIdentity p_apId := ?,
YannGarcia's avatar
YannGarcia committed
166
167
                                                                    template JSON.Bool p_requestTestNotification := *,
                                                                    template WebsockNotifConfig p_websockNotifConfig := *,
168
                                                                    template LinkTypes p_links := *,
YannGarcia's avatar
YannGarcia committed
169
170
                                                                    template UInt8 p_notificationPeriod := *,
                                                                    template NotificationEvent p_notificationEvent := *,
171
172
                                                                    template TimeStamp p_expiryDeadline := *
                                                                    ) := {
YannGarcia's avatar
YannGarcia committed
173
174
175
176
177
178
179
180
181
    subscriptionType        := "AssocStaSubscription",
    callbackReference       := p_callbackReference,
    requestTestNotification := p_requestTestNotification,
    websockNotifConfig      := p_websockNotifConfig,
    links                   := p_links,
    apId                    := p_apId,
    notificationPeriod      := p_notificationPeriod,
    notificationEvent       := p_notificationEvent,
    expiryDeadline          := p_expiryDeadline
182
183
184
185
186
  } // End of template mw_assoc_sta_subscription

  template (omit) StaDataRateSubscription m_sta_data_rate_subscription(
                                                                       in template (value) JSON.AnyURI p_callbackReference,
                                                                       in template (value) StaIdentities p_staId,
YannGarcia's avatar
YannGarcia committed
187
188
                                                                       in template (omit) JSON.Bool p_requestTestNotification := omit,
                                                                       in template (omit) WebsockNotifConfig p_websockNotifConfig := omit,
189
                                                                       in template (omit) LinkTypes p_links := omit,
YannGarcia's avatar
YannGarcia committed
190
191
                                                                       in template (omit) UInt8 p_notificationPeriod := omit,
                                                                       in template (omit) NotificationEvent p_notificationEvent := omit,
192
193
                                                                       in template (omit) TimeStamp p_expiryDeadline := omit
                                                                       ) := {
YannGarcia's avatar
YannGarcia committed
194
195
196
197
198
199
200
201
202
    subscriptionType        := "StaDataRateSubscription",
    callbackReference       := p_callbackReference,
    requestTestNotification := p_requestTestNotification,
    websockNotifConfig      := p_websockNotifConfig,
    links                   := p_links,
    staId                   := p_staId,
    notificationPeriod      := p_notificationPeriod,
    notificationEvent       := p_notificationEvent,
    expiryDeadline          := p_expiryDeadline
203
204
205
206
207
  } // End of template m_sta_data_rate_subscription

  template (omit) StaDataRateSubscription m_sta_data_rate_subscription_invalid(
                                                                               in template (value) JSON.AnyURI p_callbackReference,
                                                                               in template (value) StaIdentities p_staId,
YannGarcia's avatar
YannGarcia committed
208
209
                                                                               in template (omit) JSON.Bool p_requestTestNotification := omit,
                                                                               in template (omit) WebsockNotifConfig p_websockNotifConfig := omit,
210
                                                                               in template (omit) LinkTypes p_links := omit,
YannGarcia's avatar
YannGarcia committed
211
212
                                                                               in template (omit) UInt8 p_notificationPeriod := omit,
                                                                               in template (omit) NotificationEvent p_notificationEvent := omit,
213
214
                                                                               in template (omit) TimeStamp p_expiryDeadline := omit
                                                                               ) := {
YannGarcia's avatar
YannGarcia committed
215
216
217
218
219
220
221
222
223
    subscriptionType        := "InvalidStaDataRateSubscription",
    callbackReference       := p_callbackReference,
    requestTestNotification := p_requestTestNotification,
    websockNotifConfig      := p_websockNotifConfig,
    links                   := p_links,
    staId                   := p_staId,
    notificationPeriod      := p_notificationPeriod,
    notificationEvent       := p_notificationEvent,
    expiryDeadline          := p_expiryDeadline
224
225
226
227
228
  } // End of template m_sta_data_rate_subscription_invalid

  template (present) StaDataRateSubscription mw_sta_data_rate_subscription(
                                                                           template (present) JSON.AnyURI p_callbackReference := ?,
                                                                           template (present) StaIdentities p_staId := ?,
YannGarcia's avatar
YannGarcia committed
229
230
                                                                           template JSON.Bool p_requestTestNotification := *,
                                                                           template WebsockNotifConfig p_websockNotifConfig := *,
231
                                                                           template LinkTypes p_links := *,
YannGarcia's avatar
YannGarcia committed
232
233
234
                                                                           template UInt8 p_notificationPeriod := *,
                                                                           template NotificationEvent p_notificationEvent := *,
                                                                           template TimeStamp p_expiryDeadline := *
235
                                                                           ) := {
YannGarcia's avatar
YannGarcia committed
236
237
238
239
240
241
242
243
244
    subscriptionType        := "StaDataRateSubscription",
    callbackReference       := p_callbackReference,
    requestTestNotification := p_requestTestNotification,
    websockNotifConfig      := p_websockNotifConfig,
    links                   := p_links,
    staId                   := p_staId,
    notificationPeriod      := p_notificationPeriod,
    notificationEvent       := p_notificationEvent,
    expiryDeadline          := p_expiryDeadline
245
246
  } // End of template mw_sta_data_rate_subscription

247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
  template (omit) StaIdentity m_sta_identity(
                                             in JSON.String p_macId,
                                             in template (omit) JSON.String p_ssid := omit,
                                             in template (omit) JSON.String p_aid := omit,
                                             in template (omit) JSON.String p_ipAddress := omit
                                             ) := {
    macId     := p_macId,
    ssid      := p_ssid,
    aid       := p_aid,
    ipAddress := p_ipAddress
  } // End of template m_sta_identity

  template (present) StaIdentity mw_sta_identity(
                                                 template (present) JSON.String p_macId := ?,
                                                 template JSON.String p_ssid := *,
                                                 template JSON.String p_aid := *,
                                                 template JSON.String p_ipAddress := *
                                                 ) := {
    macId     := p_macId,
    ssid      := p_ssid,
    aid       := p_aid,
    ipAddress := p_ipAddress
  } // End of template mw_sta_identity

271
272
  template (omit) SubscriptionLinkList m_subscription_link_list(
                                                                in template (value) LinkTypes p_links,
YannGarcia's avatar
YannGarcia committed
273
                                                                in template (omit) Subscription p_subscription := omit
274
                                                                ) := {
YannGarcia's avatar
YannGarcia committed
275
276
    links        := p_links,
    subscription := p_subscription
277
278
279
280
  } // End of template m_subscription_link_list

  template (present) SubscriptionLinkList mw_subscription_link_list(
                                                                    template (present) LinkTypes p_links := ?,
YannGarcia's avatar
YannGarcia committed
281
                                                                    template Subscription p_subscription := *
282
                                                                    ) := {
YannGarcia's avatar
YannGarcia committed
283
284
    links        := p_links,
    subscription := p_subscription
285
286
287
  } // End of template mw_subscription_link_list

  template (omit) ApIdentity m_ap_identity(
288
                                           in JSON.String p_bssid,
289
290
291
                                           in template (omit) SsidList p_ssid := omit,
                                           in template (omit) IpAddressList p_ipAddress := omit
                                           ) := {
292
    bssid := p_bssid,
293
294
295
296
297
    ssid := p_ssid,
    ipAddress := p_ipAddress
  } // End of template m_ap_identity

  template (present) ApIdentity mw_ap_identity(
298
                                               template (present) JSON.String p_bssid := ?,
299
300
301
                                               template SsidList p_ssid := *,
                                               template IpAddressList p_ipAddress := *
                                               ) := {
302
    bssid := p_bssid,
303
304
305
306
    ssid := p_ssid,
    ipAddress := p_ipAddress
  } // End of template mw_ap_identity

YannGarcia's avatar
YannGarcia committed
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
  template (omit) MeasurementConfigLinkList m_measurement_config_list(
                                                                      in template (omit) LinkTypes p_links := omit,
                                                                      in template (value) MeasurementConfig_MeasurementConfigLinkList p_measurementConfig
                                                                      ) := {
    links := p_links,
    measurementConfig := p_measurementConfig
  } // End of template m_measurement_config_list

  template (present) MeasurementConfigLinkList mw_measurement_config_list(
                                                                          template LinkTypes p_links := *,
                                                                          template (present) MeasurementConfig_MeasurementConfigLinkList p_measurementConfig := ?
                                                                          ) := {
    links := p_links,
    measurementConfig := p_measurementConfig
  } // End of template mw_measurement_config_list

323
324
325
326
  template (value) MeasurementConfig_MeasurementConfigLinkList m_measurement_config_link_list(
                                                                                              in JSON.AnyURI p_href,
                                                                                              in JSON.String p_measurementId
                                                                                              ) := {
YannGarcia's avatar
YannGarcia committed
327
328
    href := p_href,
    measurementId := p_measurementId
329
  } // End of template m_measurement_config_link_list
YannGarcia's avatar
YannGarcia committed
330

331
332
333
334
  template (present) MeasurementConfig_MeasurementConfigLinkList mw_measurement_config_link_list(
                                                                                                 template (present) JSON.AnyURI p_href := ?,
                                                                                                 template (present) JSON.String p_measurementId := ?
                                                                                                 ) := {
YannGarcia's avatar
YannGarcia committed
335
336
    href := p_href,
    measurementId := p_measurementId
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
  } // End of template mw_measurement_config_link_list

  template (omit) MeasurementConfig m_measurement_config(
                                                         in template (omit) LinkTypes p_links := omit,
                                                         in template (value) StaIdentities p_staId,
                                                         in JSON.String p_measurementId,
                                                         in template (value) MeasurementInfo p_measurementInfo
                                                         ) := {
    links           := p_links,
    staId           := p_staId,
    measurementId   := p_measurementId,
    measurementInfo := p_measurementInfo
  } // End of template m_measurement_config

  template (present) MeasurementConfig mw_measurement_config(
                                                             template LinkTypes p_links := *,
                                                             template (present) StaIdentities p_staId := ?,
                                                             template (present) JSON.String p_measurementId := ?,
                                                             template (present) MeasurementInfo p_measurementInfo := ?
                                                             ) := {
    links           := p_links,
    staId           := p_staId,
    measurementId   := p_measurementId,
    measurementInfo := p_measurementInfo
YannGarcia's avatar
YannGarcia committed
361
362
  } // End of template mw_measurement_config

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
  template (omit) MeasurementInfo m_measurement_info(
                                                     in template (omit) UInt16 p_measurementDuration := omit,
                                                     in template (omit) UInt16 p_randomInterval:= omit,
                                                     in template (omit) ChannelLoadConfig p_channelLoadConf := omit,
                                                     in template (omit) BeaconRequestConfig p_beaconRequestConf := omit,
                                                     in template (omit) StaStatisticsConfig p_staStatisticsConf := omit,
                                                     in template (omit) NeighborReportConfig p_neighborReportConf := omit
                                                     ) := {
    measurementDuration := p_measurementDuration,
    randomInterval      := p_randomInterval,
    channelLoadConf	    := p_channelLoadConf,
    beaconRequestConf   := p_beaconRequestConf,
    staStatisticsConf   := p_staStatisticsConf,
    neighborReportConf  := p_neighborReportConf
  } // End of template m_measurement_info

  template MeasurementInfo mw_measurement_info(
                                               template UInt16 p_measurementDuration := *,
                                               template UInt16 p_randomInterval:= *,
                                               template ChannelLoadConfig p_channelLoadConf := *,
                                               template BeaconRequestConfig p_beaconRequestConf := *,
                                               template StaStatisticsConfig p_staStatisticsConf := *,
                                               template NeighborReportConfig p_neighborReportConf := *
                                               ) := {
    measurementDuration := p_measurementDuration,
    randomInterval      := p_randomInterval,
    channelLoadConf	    := p_channelLoadConf,
    beaconRequestConf   := p_beaconRequestConf,
    staStatisticsConf   := p_staStatisticsConf,
    neighborReportConf  := p_neighborReportConf
  } // End of template mw_measurement_info

YannGarcia's avatar
YannGarcia committed
395
} // End of module WlanInformationAPI_Templates