From 1b0389a72315d0847d39e3b56a94438d64c4478f Mon Sep 17 00:00:00 2001 From: garciay Date: Tue, 7 May 2019 05:42:24 -0700 Subject: [PATCH] Update data types --- .../ttcn/LocationAPI_TypesAndValues.ttcn | 86 ++++++++++++++++++- 1 file changed, 85 insertions(+), 1 deletion(-) diff --git a/ttcn/LibMec/LocationAPI/ttcn/LocationAPI_TypesAndValues.ttcn b/ttcn/LibMec/LocationAPI/ttcn/LocationAPI_TypesAndValues.ttcn index 9bced74..bb13124 100644 --- a/ttcn/LibMec/LocationAPI/ttcn/LocationAPI_TypesAndValues.ttcn +++ b/ttcn/LibMec/LocationAPI/ttcn/LocationAPI_TypesAndValues.ttcn @@ -2,7 +2,7 @@ module LocationAPI_TypesAndValues { // LibCommon import from LibCommon_BasicTypesAndValues all; - + type record TimeStamp { UInt32 seconds, UInt32 nanoSeconds @@ -10,6 +10,12 @@ module LocationAPI_TypesAndValues { /** * @desc A type containing user information. + * @member address_ Address of user (e.g. \"sip\" URI, \"tel\" URI, \"acr\" URI). + * @member accessPointId Identifier of access point, (reference ETSI TS 129 171). + * @member zoneId Identifier of zone + * @member resourceURL Self referring URL. + * @member timeStamp Indicates the time of day for zonal presence notification. + * @member locationInfo A type containing location information with latitude, longitude and altitude, in addition the accuracy of the information are provided. */ type record UserInfo { universal charstring address_, @@ -23,9 +29,24 @@ module LocationAPI_TypesAndValues { } with { variant (address_) "name as 'address'"; } // End of type UserInfo + + /** + * @desc A type containing list of users. + * @member user Collection of the zone information list. + * @member resourceURL Self referring URL. + */ + type record of UserInfo UserInfos; + type record UserList { + UserInfos user optional, + universal charstring resourceURL + } /** * @desc A type containing location information with latitude, longitude and altitude, in addition the accuracy of the information are provided. + * @member latitude + * @member longitude + * @member altitude + * @member accuracy */ type record LocationInfo { float latitude, @@ -36,6 +57,11 @@ module LocationAPI_TypesAndValues { /** * @desc A type containing zone information. + * @member zoneId Identifier of zone + * @member numberOfAccessPoints The number of access points within the zone + * @member numberOfUnservicableAccessPoints Number of inoperable access points within the zone. + * @member numberOfUsers The number of users currently on the access point. + * @member resourceURL Self referring URL. */ type record ZoneInfo { universal charstring zoneId, @@ -44,6 +70,64 @@ module LocationAPI_TypesAndValues { UInt32 numberOfUsers, universal charstring resourceURL } + + /** + * @desc Collection of the zone information list. + * @member zone Collection of the zone information list. + * @member resourceURL Self referring URL. + */ + type record of ZoneInfo ZoneInfos; + type record ZoneList { + ZoneInfos zone optional, + universal charstring resourceURL + } + + /** + * @desc The connection type for the access point. + */ + type enumerated ConnectionType { + e_femto, + e_lte_femto, + e_smallcell, + e_lte_smallcell, + e_wifi, + e_pico, + e_micro, + e_macro, + e_wimax, + e_unknown + } + + /** + * @desc The operation status of the access point + */ + type enumerated OperationStatus { + e_serviceable, + e_unserviceable, + e_unknown + } + + /** + * @desc A type containing access point information. + * @member accessPointId + * @member connectionType The connection type for the access poin + * @member operationStatus The operation status of the access point + * @member numberOfUsers The number of users currently on the access point. + * @member resourceURL Self referring URL. + */ + type record AccessPointInfo { + universal charstring accessPointId, + ConnectionType connectionType, + OperationStatus operationStatus, + UInt32 numberOfUsers, + universal charstring resourceURL + } + + type record of AccessPointInfo AccessPointInfos + type record AccessPointInfoList { + AccessPointInfos AccessPointInfo optional, + universal charstring resourceURL + } } with { encode "JSON" -- GitLab