WlanInformationAPI_Templates.ttcn 11.6 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 (omit) ApInfo m_ap_info(
                                   in template (value) ApIdentity p_apId,
                                   in template (omit) UInt32 p_channel := omit,
                                   in template (omit) BssLoad p_bssLoad := omit,
                                   in template (omit) ExtBssLoad p_extBssLoad := omit,
                                   in template (omit) ApLocation p_apLocation := omit,
                                   in template (omit) NeighborReport p_apNeighbor := omit,
                                   in template (omit) TimeStamp p_timeStamp := omit
                                   ) := {
    timeStamp  := p_timeStamp,
    apId       := p_apId,
    channel    := p_channel,
    bssLoad    := p_bssLoad,
    extBssLoad := p_extBssLoad,
    apLocation := p_apLocation,
    apNeighbor := p_apNeighbor
  } // End of template m_ap_info

  template (present) ApInfo mw_ap_info(
                                       template (present) ApIdentity p_apId := ?,
                                       template UInt32 p_channel := *,
                                       template BssLoad p_bssLoad := *,
                                       template ExtBssLoad p_extBssLoad := *,
                                       template ApLocation p_apLocation := *,
                                       template NeighborReport p_apNeighbor := *,
                                       template TimeStamp p_timeStamp := *
                                       ) := {
    timeStamp  := p_timeStamp,
    apId       := p_apId,
    channel    := p_channel,
    bssLoad    := p_bssLoad,
    extBssLoad := p_extBssLoad,
    apLocation := p_apLocation,
    apNeighbor := p_apNeighbor
  } // End of template mw_ap_info

  template (omit) StaInfo m_sta_info(
                                     in template (value) ApIdentity p_apId,
                                     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,
                                     in template (omit) TimeStamp p_timeStamp := omit
                                     ) := {
    timeStamp     := p_timeStamp,
    apId          := p_apId,
    channel       := p_channel,
    apAssociated  := p_apAssociated,
    rssi          := p_rssi,
    staDataRate   := p_staDataRate,
    staStatistics := p_staStatistics,
    beaconReport  := p_beaconReport
  } // End of template m_sta_info

  template (present) StaInfo mw_sta_info(
                                         template (present) ApIdentity p_apId := ?,
                                         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 TimeStamp p_timeStamp := ?
                                         ) := {
    timeStamp     := p_timeStamp,
    apId          := p_apId,
    channel       := p_channel,
    apAssociated  := p_apAssociated,
    rssi          := p_rssi,
    staDataRate   := p_staDataRate,
    staStatistics := p_staStatistics,
    beaconReport  := p_beaconReport
  } // 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,
                                                                in template (omit) LinkTypes p_links := omit,
                                                                in template (omit) TimeStamp p_expiryDeadline := omit
                                                                ) := {
    subscriptionType  := "AssocStaSubscription",
    callbackReference := p_callbackReference,
    links             := p_links,
    apId              := p_apId,
    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,
                                                                        in template (omit) LinkTypes p_links := omit,
                                                                        in template (omit) TimeStamp p_expiryDeadline := omit
                                                                        ) := {
    subscriptionType  := "InvalidAssocStaSubscription",
    callbackReference := p_callbackReference,
    links             := p_links,
    apId              := p_apId,
    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 := ?,
                                                                    template LinkTypes p_links := *,
                                                                    template TimeStamp p_expiryDeadline := *
                                                                    ) := {
    subscriptionType  := "AssocStaSubscription",
    callbackReference := p_callbackReference,
    links             := p_links,
    apId              := p_apId,
    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,
                                                                       in template (omit) LinkTypes p_links := omit,
                                                                       in template (omit) TimeStamp p_expiryDeadline := omit
                                                                       ) := {
    subscriptionType  := "StaDataRateSubscription",
    callbackReference := p_callbackReference,
    links             := p_links,
    staId             := p_staId,
    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,
                                                                               in template (omit) LinkTypes p_links := omit,
                                                                               in template (omit) TimeStamp p_expiryDeadline := omit
                                                                               ) := {
    subscriptionType  := "InvalidStaDataRateSubscription",
    callbackReference := p_callbackReference,
    links             := p_links,
    staId             := p_staId,
    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 := ?,
                                                                           template LinkTypes p_links := *,
                                                                           template  TimeStamp p_expiryDeadline := *
                                                                           ) := {
    subscriptionType  := "StaDataRateSubscription",
    callbackReference := p_callbackReference,
    links             := p_links,
    staId             := p_staId,
    expiryDeadline    := p_expiryDeadline
  } // End of template mw_sta_data_rate_subscription

  template (omit) SubscriptionLinkList m_subscription_link_list(
                                                                in template (value) LinkTypes p_links,
                                                                in template (omit) AssocStaSubscriptionList p_assocStaSubscription := omit,
                                                                in template (omit) StaDataRateSubscriptionList p_staDataRateSubscription := omit
                                                                ) := {
    links                   := p_links,
    assocStaSubscription    := p_assocStaSubscription,
    staDataRateSubscription := p_staDataRateSubscription
  } // End of template m_subscription_link_list

  template (present) SubscriptionLinkList mw_subscription_link_list(
                                                                    template (present) LinkTypes p_links := ?,
                                                                    template AssocStaSubscriptionList p_assocStaSubscription := *,
                                                                    template StaDataRateSubscriptionList p_staDataRateSubscription := *
                                                                    ) := {
    links                   := p_links,
    assocStaSubscription    := p_assocStaSubscription,
    staDataRateSubscription := p_staDataRateSubscription
  } // End of template mw_subscription_link_list

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

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

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