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

  // JSON
  import from JSON all;

  // LibCommon
  import from LibCommon_BasicTypesAndValues all;

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

  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

  template (omit) ApInfo m_ap_info(
                                   in template (value) ApIdentity p_apId,
                                   in template (omit) UInt32 p_channel := omit,
YannGarcia's avatar
YannGarcia committed
                                   in template (omit) WlanCapabilities p_wlanCap := omit,
                                   in template (omit) WanMetrics p_wanMetrics := omit,
                                   in template (omit) BssLoad p_bssLoad := omit,
                                   in template (omit) ExtBssLoad p_extBssLoad := omit,
YannGarcia's avatar
YannGarcia committed
                                   in template (omit) OBssLoad p_oBssLoad := omit,
                                   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
    wlanCap    := p_wlanCap,
    wanMetrics := p_wanMetrics,
    bssLoad    := p_bssLoad,
    extBssLoad := p_extBssLoad,
YannGarcia's avatar
YannGarcia committed
    oBssLoad   := p_oBssLoad,
    apLocation := p_apLocation
  } // 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
                                       template WlanCapabilities p_wlanCap := *,
                                       template WanMetrics p_wanMetrics := *,
                                       template BssLoad p_bssLoad := *,
                                       template ExtBssLoad p_extBssLoad := *,
YannGarcia's avatar
YannGarcia committed
                                       template OBssLoad p_oBssLoad := *,
                                       template ApLocation p_apLocation := *,
                                       template TimeStamp p_timeStamp := *
                                       ) := {
    timeStamp  := p_timeStamp,
    apId       := p_apId,
    channel    := p_channel,
YannGarcia's avatar
YannGarcia committed
    wlanCap    := p_wlanCap,
    wanMetrics := p_wanMetrics,
    bssLoad    := p_bssLoad,
    extBssLoad := p_extBssLoad,
YannGarcia's avatar
YannGarcia committed
    oBssLoad   := p_oBssLoad,
    apLocation := p_apLocation
  } // End of template mw_ap_info

  template (omit) StaInfo m_sta_info(
YannGarcia's avatar
YannGarcia committed
                                     in template (value) StaIdentity p_staId,
                                     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
                                     in template (omit) NeighborReport p_neighborReport := omit,
                                     in template (omit) ChannelLoad p_channelLoad := omit,
                                     in template (omit) TimeStamp p_timeStamp := omit
                                     ) := {
YannGarcia's avatar
YannGarcia committed
    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
  } // End of template m_sta_info

  template (present) StaInfo mw_sta_info(
YannGarcia's avatar
YannGarcia committed
                                         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 := *
YannGarcia's avatar
YannGarcia committed
    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
  } // 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
                                                                in template (omit) JSON.Bool p_requestTestNotification := omit,
                                                                in template (omit) WebsockNotifConfig p_websockNotifConfig := omit,
                                                                in template (omit) LinkTypes p_links := omit,
YannGarcia's avatar
YannGarcia committed
                                                                in template (omit) UInt8 p_notificationPeriod := omit,
                                                                in template (omit) NotificationEvent p_notificationEvent := omit,
                                                                in template (omit) TimeStamp p_expiryDeadline := omit
                                                                ) := {
YannGarcia's avatar
YannGarcia committed
    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
  } // 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
                                                                        in template (omit) JSON.Bool p_requestTestNotification := omit,
                                                                        in template (omit) WebsockNotifConfig p_websockNotifConfig := omit,
                                                                        in template (omit) LinkTypes p_links := omit,
YannGarcia's avatar
YannGarcia committed
                                                                        in template (omit) UInt8 p_notificationPeriod := omit,
                                                                        in template (omit) NotificationEvent p_notificationEvent := omit,
                                                                        in template (omit) TimeStamp p_expiryDeadline := omit
                                                                        ) := {
YannGarcia's avatar
YannGarcia committed
    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
  } // 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
                                                                    template JSON.Bool p_requestTestNotification := *,
                                                                    template WebsockNotifConfig p_websockNotifConfig := *,
                                                                    template LinkTypes p_links := *,
YannGarcia's avatar
YannGarcia committed
                                                                    template UInt8 p_notificationPeriod := *,
                                                                    template NotificationEvent p_notificationEvent := *,
                                                                    template TimeStamp p_expiryDeadline := *
                                                                    ) := {
YannGarcia's avatar
YannGarcia committed
    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
  } // 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
                                                                       in template (omit) JSON.Bool p_requestTestNotification := omit,
                                                                       in template (omit) WebsockNotifConfig p_websockNotifConfig := omit,
                                                                       in template (omit) LinkTypes p_links := omit,
YannGarcia's avatar
YannGarcia committed
                                                                       in template (omit) UInt8 p_notificationPeriod := omit,
                                                                       in template (omit) NotificationEvent p_notificationEvent := omit,
                                                                       in template (omit) TimeStamp p_expiryDeadline := omit
                                                                       ) := {
YannGarcia's avatar
YannGarcia committed
    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
  } // 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
                                                                               in template (omit) JSON.Bool p_requestTestNotification := omit,
                                                                               in template (omit) WebsockNotifConfig p_websockNotifConfig := omit,
                                                                               in template (omit) LinkTypes p_links := omit,
YannGarcia's avatar
YannGarcia committed
                                                                               in template (omit) UInt8 p_notificationPeriod := omit,
                                                                               in template (omit) NotificationEvent p_notificationEvent := omit,
                                                                               in template (omit) TimeStamp p_expiryDeadline := omit
                                                                               ) := {
YannGarcia's avatar
YannGarcia committed
    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
  } // 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
                                                                           template JSON.Bool p_requestTestNotification := *,
                                                                           template WebsockNotifConfig p_websockNotifConfig := *,
                                                                           template LinkTypes p_links := *,
YannGarcia's avatar
YannGarcia committed
                                                                           template UInt8 p_notificationPeriod := *,
                                                                           template NotificationEvent p_notificationEvent := *,
                                                                           template TimeStamp p_expiryDeadline := *
YannGarcia's avatar
YannGarcia committed
    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
  } // End of template mw_sta_data_rate_subscription

  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

  template (omit) SubscriptionLinkList m_subscription_link_list(
                                                                in template (value) LinkTypes p_links,
YannGarcia's avatar
YannGarcia committed
                                                                in template (omit) Subscription p_subscription := omit
YannGarcia's avatar
YannGarcia committed
    links        := p_links,
    subscription := p_subscription
  } // End of template m_subscription_link_list

  template (present) SubscriptionLinkList mw_subscription_link_list(
                                                                    template (present) LinkTypes p_links := ?,
YannGarcia's avatar
YannGarcia committed
                                                                    template Subscription p_subscription := *
YannGarcia's avatar
YannGarcia committed
    links        := p_links,
    subscription := p_subscription
  } // End of template mw_subscription_link_list

  template (omit) ApIdentity m_ap_identity(
                                           in JSON.String p_bssid,
                                           in template (omit) SsidList p_ssid := omit,
                                           in template (omit) IpAddressList p_ipAddress := omit
                                           ) := {
    bssid := p_bssid,
    ssid := p_ssid,
    ipAddress := p_ipAddress
  } // End of template m_ap_identity

  template (present) ApIdentity mw_ap_identity(
                                               template (present) JSON.String p_bssid := ?,
                                               template SsidList p_ssid := *,
                                               template IpAddressList p_ipAddress := *
                                               ) := {
    bssid := p_bssid,
    ssid := p_ssid,
    ipAddress := p_ipAddress
  } // End of template mw_ap_identity

YannGarcia's avatar
YannGarcia committed
  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

  template (value) MeasurementConfig_MeasurementConfigLinkList m_measurement_config_link_list(
                                                                                              in JSON.AnyURI p_href,
                                                                                              in JSON.String p_measurementId
                                                                                              ) := {
YannGarcia's avatar
YannGarcia committed
    href := p_href,
    measurementId := p_measurementId
  } // End of template m_measurement_config_link_list
YannGarcia's avatar
YannGarcia committed

  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
    href := p_href,
    measurementId := p_measurementId
  } // 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
  } // End of template mw_measurement_config

  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
} // End of module WlanInformationAPI_Templates