From 0e85dacbe2ebf89f4dabf07a05ea7aa4a96efcf6 Mon Sep 17 00:00:00 2001 From: mjames-upc Date: Thu, 18 Jun 2015 10:25:33 -0600 Subject: [PATCH] add dynamicserialize --- .../DynamicSerializationManager.py | 69 +++ .../SelfDescribingBinaryProtocol.py | 132 ++++++ .../ThriftSerializationContext.py | 418 ++++++++++++++++++ dynamicserialize/__init__.py | 58 +++ .../adapters/ActiveTableModeAdapter.py | 51 +++ .../adapters/ByteBufferAdapter.py | 46 ++ dynamicserialize/adapters/CalendarAdapter.py | 46 ++ dynamicserialize/adapters/CoordAdapter.py | 50 +++ .../adapters/DatabaseIDAdapter.py | 44 ++ dynamicserialize/adapters/DateAdapter.py | 45 ++ dynamicserialize/adapters/EnumSetAdapter.py | 57 +++ .../adapters/FloatBufferAdapter.py | 46 ++ .../adapters/GeometryTypeAdapter.py | 56 +++ .../adapters/GregorianCalendarAdapter.py | 46 ++ .../adapters/GridDataHistoryAdapter.py | 47 ++ .../adapters/JTSEnvelopeAdapter.py | 51 +++ .../LocalizationLevelSerializationAdapter.py | 56 +++ .../LocalizationTypeSerializationAdapter.py | 50 +++ dynamicserialize/adapters/LockTableAdapter.py | 88 ++++ dynamicserialize/adapters/ParmIDAdapter.py | 44 ++ dynamicserialize/adapters/PointAdapter.py | 50 +++ .../adapters/StackTraceElementAdapter.py | 52 +++ .../adapters/TimeConstraintsAdapter.py | 46 ++ .../adapters/TimeRangeTypeAdapter.py | 63 +++ dynamicserialize/adapters/TimestampAdapter.py | 44 ++ dynamicserialize/adapters/WsIdAdapter.py | 58 +++ dynamicserialize/adapters/__init__.py | 85 ++++ dynamicserialize/dstypes/__init__.py | 29 ++ dynamicserialize/dstypes/com/__init__.py | 28 ++ .../dstypes/com/raytheon/__init__.py | 27 ++ .../dstypes/com/raytheon/uf/__init__.py | 27 ++ .../com/raytheon/uf/common/__init__.py | 41 ++ .../uf/common/activetable/ActiveTableMode.py | 28 ++ .../activetable/DumpActiveTableRequest.py | 103 +++++ .../activetable/DumpActiveTableResponse.py | 51 +++ .../activetable/GetActiveTableDictRequest.py | 44 ++ .../activetable/GetActiveTableDictResponse.py | 40 ++ .../activetable/GetFourCharSitesRequest.py | 32 ++ .../activetable/GetFourCharSitesResponse.py | 32 ++ .../activetable/GetVtecAttributeRequest.py | 44 ++ .../activetable/GetVtecAttributeResponse.py | 30 ++ .../OperationalActiveTableRecord.py | 280 ++++++++++++ .../activetable/PracticeActiveTableRecord.py | 278 ++++++++++++ .../PracticeProductOfftimeRequest.py | 47 ++ .../activetable/SendPracticeProductRequest.py | 33 ++ .../uf/common/activetable/VTECChange.py | 54 +++ .../VTECTableChangeNotification.py | 59 +++ .../uf/common/activetable/__init__.py | 58 +++ .../request/ClearPracticeVTECTableRequest.py | 40 ++ .../request/MergeActiveTableRequest.py | 94 ++++ .../RetrieveRemoteActiveTableRequest.py | 99 +++++ .../request/SendActiveTableRequest.py | 140 ++++++ .../uf/common/activetable/request/__init__.py | 34 ++ .../response/ActiveTableSharingResponse.py | 40 ++ .../common/activetable/response/__init__.py | 28 ++ .../uf/common/alertviz/AlertVizRequest.py | 68 +++ .../raytheon/uf/common/alertviz/__init__.py | 28 ++ .../com/raytheon/uf/common/auth/__init__.py | 28 ++ .../auth/resp/AbstractFailedResponse.py | 38 ++ .../auth/resp/AuthServerErrorResponse.py | 33 ++ .../common/auth/resp/SuccessfulExecution.py | 40 ++ .../uf/common/auth/resp/UserNotAuthorized.py | 36 ++ .../raytheon/uf/common/auth/resp/__init__.py | 34 ++ .../uf/common/auth/user/AuthenticationData.py | 26 ++ .../raytheon/uf/common/auth/user/__init__.py | 27 ++ .../raytheon/uf/common/dataaccess/__init__.py | 29 ++ .../dataaccess/impl/DefaultDataRequest.py | 94 ++++ .../uf/common/dataaccess/impl/__init__.py | 28 ++ .../request/AbstractDataAccessRequest.py | 46 ++ .../request/AbstractIdentifierRequest.py | 45 ++ .../request/GetAvailableLevelsRequest.py | 38 ++ .../GetAvailableLocationNamesRequest.py | 40 ++ .../request/GetAvailableParametersRequest.py | 38 ++ .../request/GetAvailableTimesRequest.py | 48 ++ .../request/GetGeometryDataRequest.py | 54 +++ .../dataaccess/request/GetGridDataRequest.py | 53 +++ .../request/GetOptionalIdentifiersRequest.py | 40 ++ .../request/GetRequiredIdentifiersRequest.py | 38 ++ .../request/GetSupportedDatatypesRequest.py | 36 ++ .../uf/common/dataaccess/request/__init__.py | 48 ++ .../response/AbstractResponseData.py | 59 +++ .../response/GeometryResponseData.py | 53 +++ .../response/GetGeometryDataResponse.py | 40 ++ .../response/GetGridDataResponse.py | 61 +++ .../dataaccess/response/GridResponseData.py | 59 +++ .../uf/common/dataaccess/response/__init__.py | 36 ++ .../raytheon/uf/common/dataplugin/__init__.py | 34 ++ .../uf/common/dataplugin/events/__init__.py | 27 ++ .../dataplugin/events/hazards/__init__.py | 27 ++ .../hazards/requests/RegionLookupRequest.py | 46 ++ .../events/hazards/requests/__init__.py | 28 ++ .../common/dataplugin/gfe/GridDataHistory.py | 97 ++++ .../uf/common/dataplugin/gfe/__init__.py | 36 ++ .../dataplugin/gfe/config/ProjectionData.py | 116 +++++ .../common/dataplugin/gfe/config/__init__.py | 28 ++ .../uf/common/dataplugin/gfe/db/__init__.py | 27 ++ .../dataplugin/gfe/db/objects/DatabaseID.py | 212 +++++++++ .../dataplugin/gfe/db/objects/GFERecord.py | 115 +++++ .../dataplugin/gfe/db/objects/GridLocation.py | 136 ++++++ .../dataplugin/gfe/db/objects/GridParmInfo.py | 210 +++++++++ .../dataplugin/gfe/db/objects/ParmID.py | 151 +++++++ .../gfe/db/objects/TimeConstraints.py | 100 +++++ .../dataplugin/gfe/db/objects/__init__.py | 38 ++ .../dataplugin/gfe/discrete/DiscreteKey.py | 106 +++++ .../dataplugin/gfe/discrete/__init__.py | 28 ++ .../common/dataplugin/gfe/grid/Grid2DByte.py | 53 +++ .../common/dataplugin/gfe/grid/Grid2DFloat.py | 52 +++ .../uf/common/dataplugin/gfe/grid/__init__.py | 30 ++ .../gfe/request/AbstractGfeRequest.py | 44 ++ .../gfe/request/CommitGridsRequest.py | 47 ++ .../request/ConfigureTextProductsRequest.py | 54 +++ .../request/ExecuteIfpNetCDFGridRequest.py | 187 ++++++++ .../gfe/request/ExecuteIscMosaicRequest.py | 234 ++++++++++ .../gfe/request/ExportGridsRequest.py | 79 ++++ .../gfe/request/GetASCIIGridsRequest.py | 68 +++ .../gfe/request/GetGridDataRequest.py | 63 +++ .../gfe/request/GetGridInventoryRequest.py | 47 ++ .../gfe/request/GetLatestDbTimeRequest.py | 70 +++ .../gfe/request/GetLatestModelDbIdRequest.py | 63 +++ .../gfe/request/GetLockTablesRequest.py | 47 ++ .../gfe/request/GetOfficialDbNameRequest.py | 40 ++ .../gfe/request/GetParmListRequest.py | 47 ++ .../gfe/request/GetSelectTimeRangeRequest.py | 47 ++ .../gfe/request/GetSingletonDbIdsRequest.py | 40 ++ .../gfe/request/GetSiteTimeZoneInfoRequest.py | 40 ++ .../dataplugin/gfe/request/GridLocRequest.py | 40 ++ .../gfe/request/IscDataRecRequest.py | 47 ++ .../gfe/request/LockChangeRequest.py | 47 ++ .../gfe/request/ProcessReceivedConfRequest.py | 46 ++ .../ProcessReceivedDigitalDataRequest.py | 46 ++ .../gfe/request/PurgeGfeGridsRequest.py | 42 ++ .../gfe/request/SaveASCIIGridsRequest.py | 47 ++ .../ServiceBackupStatusUpdateRequest.py | 47 ++ .../gfe/request/SmartInitRequest.py | 61 +++ .../common/dataplugin/gfe/request/__init__.py | 78 ++++ .../common/dataplugin/gfe/server/__init__.py | 30 ++ .../common/dataplugin/gfe/server/lock/Lock.py | 76 ++++ .../dataplugin/gfe/server/lock/LockTable.py | 55 +++ .../dataplugin/gfe/server/lock/__init__.py | 30 ++ .../gfe/server/message/ServerMsg.py | 33 ++ .../gfe/server/message/ServerResponse.py | 65 +++ .../dataplugin/gfe/server/message/__init__.py | 30 ++ .../server/notify/DBInvChangeNotification.py | 61 +++ .../gfe/server/notify/GfeNotification.py | 38 ++ .../server/notify/GridUpdateNotification.py | 71 +++ .../gfe/server/notify/LockNotification.py | 44 ++ .../server/notify/UserMessageNotification.py | 60 +++ .../dataplugin/gfe/server/notify/__init__.py | 36 ++ .../gfe/server/request/CommitGridRequest.py | 54 +++ .../gfe/server/request/GetGridRequest.py | 54 +++ .../gfe/server/request/LockRequest.py | 54 +++ .../gfe/server/request/LockTableRequest.py | 40 ++ .../dataplugin/gfe/server/request/__init__.py | 34 ++ .../dataplugin/gfe/slice/AbstractGridSlice.py | 53 +++ .../dataplugin/gfe/slice/DiscreteGridSlice.py | 46 ++ .../gfe/slice/PythonWeatherGridSlice.py | 49 ++ .../dataplugin/gfe/slice/ScalarGridSlice.py | 38 ++ .../dataplugin/gfe/slice/VectorGridSlice.py | 45 ++ .../dataplugin/gfe/slice/WeatherGridSlice.py | 46 ++ .../common/dataplugin/gfe/slice/__init__.py | 38 ++ .../dataplugin/gfe/weather/WeatherKey.py | 69 +++ .../dataplugin/gfe/weather/WeatherSubKey.py | 28 ++ .../common/dataplugin/gfe/weather/__init__.py | 30 ++ .../uf/common/dataplugin/grib/__init__.py | 27 ++ .../grib/request/DeleteAllModelDataRequest.py | 33 ++ .../dataplugin/grib/request/__init__.py | 28 ++ .../uf/common/dataplugin/grid/__init__.py | 27 ++ .../grid/request/DeleteAllGridDataRequest.py | 33 ++ .../dataplugin/grid/request/__init__.py | 28 ++ .../uf/common/dataplugin/level/Level.py | 90 ++++ .../uf/common/dataplugin/level/MasterLevel.py | 71 +++ .../uf/common/dataplugin/level/__init__.py | 30 ++ .../message/DataURINotificationMessage.py | 40 ++ .../uf/common/dataplugin/message/__init__.py | 28 ++ .../uf/common/dataplugin/radar/__init__.py | 28 ++ .../request/GetRadarDataRecordRequest.py | 62 +++ .../dataplugin/radar/request/__init__.py | 28 ++ .../response/GetRadarDataRecordResponse.py | 39 ++ .../radar/response/RadarDataRecord.py | 88 ++++ .../dataplugin/radar/response/__init__.py | 30 ++ .../uf/common/dataplugin/text/__init__.py | 28 ++ .../dataplugin/text/dbsrv/TextDBRequest.py | 33 ++ .../common/dataplugin/text/dbsrv/__init__.py | 28 ++ .../text/request/SubscriptionRequest.py | 39 ++ .../dataplugin/text/request/__init__.py | 28 ++ .../raytheon/uf/common/datastorage/Request.py | 59 +++ .../common/datastorage/StorageProperties.py | 40 ++ .../uf/common/datastorage/StorageStatus.py | 38 ++ .../uf/common/datastorage/__init__.py | 45 ++ .../datastorage/records/ByteDataRecord.py | 108 +++++ .../datastorage/records/FloatDataRecord.py | 108 +++++ .../datastorage/records/IntegerDataRecord.py | 107 +++++ .../datastorage/records/LongDataRecord.py | 108 +++++ .../datastorage/records/ShortDataRecord.py | 107 +++++ .../datastorage/records/StringDataRecord.py | 125 ++++++ .../uf/common/datastorage/records/__init__.py | 50 +++ .../localization/LocalizationContext.py | 56 +++ .../common/localization/LocalizationLevel.py | 75 ++++ .../common/localization/LocalizationType.py | 37 ++ .../uf/common/localization/__init__.py | 34 ++ .../localization/msgs/DeleteUtilityCommand.py | 47 ++ .../msgs/DeleteUtilityResponse.py | 59 +++ .../localization/msgs/ListResponseEntry.py | 81 ++++ .../localization/msgs/ListUtilityCommand.py | 61 +++ .../localization/msgs/ListUtilityResponse.py | 60 +++ .../msgs/PrivilegedUtilityRequestMessage.py | 42 ++ .../msgs/UtilityRequestMessage.py | 33 ++ .../msgs/UtilityResponseMessage.py | 33 ++ .../uf/common/localization/msgs/__init__.py | 42 ++ .../AbstractLocalizationStreamRequest.py | 62 +++ .../stream/LocalizationStreamGetRequest.py | 45 ++ .../stream/LocalizationStreamPutRequest.py | 68 +++ .../uf/common/localization/stream/__init__.py | 32 ++ .../raytheon/uf/common/management/__init__.py | 28 ++ .../request/ChangeContextRequest.py | 40 ++ .../management/request/PassThroughRequest.py | 47 ++ .../uf/common/management/request/__init__.py | 31 ++ .../diagnostic/GetClusterMembersRequest.py | 26 ++ .../request/diagnostic/GetContextsRequest.py | 33 ++ .../request/diagnostic/StatusRequest.py | 26 ++ .../management/request/diagnostic/__init__.py | 32 ++ .../uf/common/management/response/__init__.py | 27 ++ .../diagnostic/ClusterMembersResponse.py | 39 ++ .../response/diagnostic/ContextsResponse.py | 43 ++ .../response/diagnostic/StatusResponse.py | 50 +++ .../response/diagnostic/__init__.py | 32 ++ .../com/raytheon/uf/common/message/Body.py | 33 ++ .../com/raytheon/uf/common/message/Header.py | 43 ++ .../com/raytheon/uf/common/message/Message.py | 40 ++ .../raytheon/uf/common/message/Property.py | 40 ++ .../com/raytheon/uf/common/message/WsId.py | 96 ++++ .../raytheon/uf/common/message/__init__.py | 47 ++ .../com/raytheon/uf/common/plugin/__init__.py | 27 ++ .../uf/common/plugin/nwsauth/__init__.py | 27 ++ .../uf/common/plugin/nwsauth/user/User.py | 45 ++ .../uf/common/plugin/nwsauth/user/UserId.py | 38 ++ .../uf/common/plugin/nwsauth/user/__init__.py | 30 ++ .../raytheon/uf/common/pointdata/__init__.py | 27 ++ .../requests/NewAdaptivePlotRequest.py | 54 +++ .../uf/common/pointdata/requests/__init__.py | 28 ++ .../raytheon/uf/common/pypies/PointTest.py | 33 ++ .../com/raytheon/uf/common/pypies/__init__.py | 30 ++ .../uf/common/pypies/request/CopyRequest.py | 74 ++++ .../pypies/request/CreateDatasetRequest.py | 40 ++ .../pypies/request/DatasetDataRequest.py | 47 ++ .../pypies/request/DatasetNamesRequest.py | 40 ++ .../pypies/request/DeleteFilesRequest.py | 39 ++ .../uf/common/pypies/request/DeleteRequest.py | 47 ++ .../uf/common/pypies/request/GroupsRequest.py | 47 ++ .../uf/common/pypies/request/RepackRequest.py | 39 ++ .../common/pypies/request/RetrieveRequest.py | 54 +++ .../uf/common/pypies/request/StoreRequest.py | 47 ++ .../uf/common/pypies/request/__init__.py | 45 ++ .../common/pypies/response/DeleteResponse.py | 33 ++ .../common/pypies/response/ErrorResponse.py | 33 ++ .../pypies/response/FileActionResponse.py | 39 ++ .../pypies/response/RetrieveResponse.py | 33 ++ .../common/pypies/response/StoreResponse.py | 47 ++ .../uf/common/pypies/response/__init__.py | 35 ++ .../SerializableExceptionWrapper.py | 63 +++ .../uf/common/serialization/__init__.py | 41 ++ .../uf/common/serialization/comm/__init__.py | 39 ++ .../comm/response/ServerErrorResponse.py | 31 ++ .../serialization/comm/response/__init__.py | 40 ++ .../com/raytheon/uf/common/site/__init__.py | 28 ++ .../notify/ClusterActivationNotification.py | 58 +++ .../site/notify/SiteActivationNotification.py | 89 ++++ .../uf/common/site/notify/__init__.py | 30 ++ .../site/requests/ActivateSiteRequest.py | 45 ++ .../site/requests/DeactivateSiteRequest.py | 45 ++ .../site/requests/GetActiveSitesRequest.py | 27 ++ .../uf/common/site/requests/__init__.py | 32 ++ .../com/raytheon/uf/common/time/DataTime.py | 174 ++++++++ .../com/raytheon/uf/common/time/TimeRange.py | 152 +++++++ .../com/raytheon/uf/common/time/__init__.py | 30 ++ .../dstypes/com/vividsolutions/__init__.py | 27 ++ .../com/vividsolutions/jts/__init__.py | 27 ++ .../com/vividsolutions/jts/geom/Coordinate.py | 46 ++ .../com/vividsolutions/jts/geom/Envelope.py | 68 +++ .../com/vividsolutions/jts/geom/Geometry.py | 37 ++ .../com/vividsolutions/jts/geom/__init__.py | 32 ++ dynamicserialize/dstypes/gov/__init__.py | 8 + dynamicserialize/dstypes/gov/noaa/__init__.py | 8 + .../dstypes/gov/noaa/nws/__init__.py | 8 + .../dstypes/gov/noaa/nws/ncep/__init__.py | 8 + .../gov/noaa/nws/ncep/common/__init__.py | 8 + .../nws/ncep/common/dataplugin/__init__.py | 10 + .../ncep/common/dataplugin/gempak/__init__.py | 8 + .../gempak/request/GetGridDataRequest.py | 62 +++ .../gempak/request/GetGridInfoRequest.py | 21 + .../gempak/request/GetGridNavRequest.py | 21 + .../gempak/request/GetStationsRequest.py | 13 + .../gempak/request/GetTimesRequest.py | 21 + .../gempak/request/GetTimesResponse.py | 14 + .../dataplugin/gempak/request/Station.py | 56 +++ .../gempak/request/StationDataRequest.py | 42 ++ .../dataplugin/gempak/request/__init__.py | 22 + .../ncep/common/dataplugin/gpd/__init__.py | 6 + .../gpd/query/GenericPointDataReqMsg.py | 84 ++++ .../common/dataplugin/gpd/query/__init__.py | 8 + .../common/dataplugin/pgen/ActivityInfo.py | 77 ++++ .../common/dataplugin/pgen/DerivedProduct.py | 28 ++ .../pgen/ResponseMessageValidate.py | 42 ++ .../ncep/common/dataplugin/pgen/__init__.py | 14 + .../request/RetrieveAllProductsRequest.py | 14 + .../pgen/request/StoreActivityRequest.py | 21 + .../request/StoreDerivedProductRequest.py | 21 + .../dataplugin/pgen/request/__init__.py | 13 + dynamicserialize/dstypes/java/__init__.py | 30 ++ dynamicserialize/dstypes/java/awt/Point.py | 56 +++ dynamicserialize/dstypes/java/awt/__init__.py | 40 ++ .../dstypes/java/lang/StackTraceElement.py | 73 +++ .../dstypes/java/lang/__init__.py | 28 ++ .../dstypes/java/sql/Timestamp.py | 42 ++ dynamicserialize/dstypes/java/sql/__init__.py | 27 ++ .../dstypes/java/util/Calendar.py | 50 +++ dynamicserialize/dstypes/java/util/Date.py | 40 ++ dynamicserialize/dstypes/java/util/EnumSet.py | 68 +++ .../dstypes/java/util/GregorianCalendar.py | 50 +++ .../dstypes/java/util/__init__.py | 34 ++ dynamicserialize/setup.py | 8 + 321 files changed, 16625 insertions(+) create mode 100644 dynamicserialize/DynamicSerializationManager.py create mode 100644 dynamicserialize/SelfDescribingBinaryProtocol.py create mode 100644 dynamicserialize/ThriftSerializationContext.py create mode 100644 dynamicserialize/__init__.py create mode 100644 dynamicserialize/adapters/ActiveTableModeAdapter.py create mode 100644 dynamicserialize/adapters/ByteBufferAdapter.py create mode 100644 dynamicserialize/adapters/CalendarAdapter.py create mode 100644 dynamicserialize/adapters/CoordAdapter.py create mode 100644 dynamicserialize/adapters/DatabaseIDAdapter.py create mode 100644 dynamicserialize/adapters/DateAdapter.py create mode 100644 dynamicserialize/adapters/EnumSetAdapter.py create mode 100644 dynamicserialize/adapters/FloatBufferAdapter.py create mode 100644 dynamicserialize/adapters/GeometryTypeAdapter.py create mode 100644 dynamicserialize/adapters/GregorianCalendarAdapter.py create mode 100644 dynamicserialize/adapters/GridDataHistoryAdapter.py create mode 100644 dynamicserialize/adapters/JTSEnvelopeAdapter.py create mode 100644 dynamicserialize/adapters/LocalizationLevelSerializationAdapter.py create mode 100644 dynamicserialize/adapters/LocalizationTypeSerializationAdapter.py create mode 100644 dynamicserialize/adapters/LockTableAdapter.py create mode 100644 dynamicserialize/adapters/ParmIDAdapter.py create mode 100644 dynamicserialize/adapters/PointAdapter.py create mode 100644 dynamicserialize/adapters/StackTraceElementAdapter.py create mode 100644 dynamicserialize/adapters/TimeConstraintsAdapter.py create mode 100644 dynamicserialize/adapters/TimeRangeTypeAdapter.py create mode 100644 dynamicserialize/adapters/TimestampAdapter.py create mode 100644 dynamicserialize/adapters/WsIdAdapter.py create mode 100644 dynamicserialize/adapters/__init__.py create mode 100644 dynamicserialize/dstypes/__init__.py create mode 100644 dynamicserialize/dstypes/com/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/ActiveTableMode.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/DumpActiveTableRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/DumpActiveTableResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetActiveTableDictRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetActiveTableDictResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetFourCharSitesRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetFourCharSitesResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetVtecAttributeRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetVtecAttributeResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/OperationalActiveTableRecord.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/PracticeActiveTableRecord.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/PracticeProductOfftimeRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/SendPracticeProductRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/VTECChange.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/VTECTableChangeNotification.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/ClearPracticeVTECTableRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/MergeActiveTableRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/RetrieveRemoteActiveTableRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/SendActiveTableRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/response/ActiveTableSharingResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/activetable/response/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/alertviz/AlertVizRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/alertviz/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/auth/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/AbstractFailedResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/AuthServerErrorResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/SuccessfulExecution.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/UserNotAuthorized.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/auth/user/AuthenticationData.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/auth/user/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/impl/DefaultDataRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/impl/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/AbstractDataAccessRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/AbstractIdentifierRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableLevelsRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableLocationNamesRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableParametersRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableTimesRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetGeometryDataRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetGridDataRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetOptionalIdentifiersRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetRequiredIdentifiersRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetSupportedDatatypesRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/AbstractResponseData.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GeometryResponseData.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGeometryDataResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGridDataResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GridResponseData.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/requests/RegionLookupRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/requests/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/GridDataHistory.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/DatabaseID.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GFERecord.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GridLocation.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GridParmInfo.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/ParmID.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/TimeConstraints.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/discrete/DiscreteKey.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/discrete/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/Grid2DByte.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/Grid2DFloat.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/AbstractGfeRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/CommitGridsRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ConfigureTextProductsRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExecuteIfpNetCDFGridRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExecuteIscMosaicRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExportGridsRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetASCIIGridsRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetGridDataRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetGridInventoryRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLatestDbTimeRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLatestModelDbIdRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLockTablesRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetOfficialDbNameRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetParmListRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSelectTimeRangeRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSingletonDbIdsRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSiteTimeZoneInfoRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GridLocRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/IscDataRecRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/LockChangeRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ProcessReceivedConfRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ProcessReceivedDigitalDataRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/PurgeGfeGridsRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/SaveASCIIGridsRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ServiceBackupStatusUpdateRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/SmartInitRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/Lock.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/LockTable.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/ServerMsg.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/ServerResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/DBInvChangeNotification.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/GfeNotification.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/GridUpdateNotification.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/LockNotification.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/UserMessageNotification.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/CommitGridRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/GetGridRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/LockRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/LockTableRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/AbstractGridSlice.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/DiscreteGridSlice.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/PythonWeatherGridSlice.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/ScalarGridSlice.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/VectorGridSlice.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/WeatherGridSlice.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/WeatherKey.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/WeatherSubKey.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/request/DeleteAllModelDataRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/request/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/request/DeleteAllGridDataRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/request/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/Level.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/MasterLevel.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/message/DataURINotificationMessage.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/message/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/request/GetRadarDataRecordRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/request/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/GetRadarDataRecordResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/RadarDataRecord.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/dbsrv/TextDBRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/dbsrv/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/request/SubscriptionRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/request/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/Request.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/StorageProperties.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/StorageStatus.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/ByteDataRecord.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/FloatDataRecord.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/IntegerDataRecord.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/LongDataRecord.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/ShortDataRecord.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/StringDataRecord.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationContext.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationLevel.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationType.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/DeleteUtilityCommand.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/DeleteUtilityResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListResponseEntry.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListUtilityCommand.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListUtilityResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/PrivilegedUtilityRequestMessage.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/UtilityRequestMessage.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/UtilityResponseMessage.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/AbstractLocalizationStreamRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/LocalizationStreamGetRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/LocalizationStreamPutRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/request/ChangeContextRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/request/PassThroughRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/request/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/GetClusterMembersRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/GetContextsRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/StatusRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/response/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/ClusterMembersResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/ContextsResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/StatusResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/message/Body.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/message/Header.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/message/Message.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/message/Property.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/message/WsId.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/message/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/plugin/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/plugin/nwsauth/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/plugin/nwsauth/user/User.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/plugin/nwsauth/user/UserId.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/plugin/nwsauth/user/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pointdata/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pointdata/requests/NewAdaptivePlotRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pointdata/requests/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/PointTest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/CopyRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/CreateDatasetRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/DatasetDataRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/DatasetNamesRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/DeleteFilesRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/DeleteRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/GroupsRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/RepackRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/RetrieveRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/StoreRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/request/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/response/DeleteResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/response/ErrorResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/response/FileActionResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/response/RetrieveResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/response/StoreResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/pypies/response/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/serialization/SerializableExceptionWrapper.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/serialization/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/serialization/comm/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/serialization/comm/response/ServerErrorResponse.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/serialization/comm/response/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/site/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/site/notify/ClusterActivationNotification.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/site/notify/SiteActivationNotification.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/site/notify/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/site/requests/ActivateSiteRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/site/requests/DeactivateSiteRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/site/requests/GetActiveSitesRequest.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/site/requests/__init__.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/time/DataTime.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/time/TimeRange.py create mode 100644 dynamicserialize/dstypes/com/raytheon/uf/common/time/__init__.py create mode 100644 dynamicserialize/dstypes/com/vividsolutions/__init__.py create mode 100644 dynamicserialize/dstypes/com/vividsolutions/jts/__init__.py create mode 100644 dynamicserialize/dstypes/com/vividsolutions/jts/geom/Coordinate.py create mode 100644 dynamicserialize/dstypes/com/vividsolutions/jts/geom/Envelope.py create mode 100644 dynamicserialize/dstypes/com/vividsolutions/jts/geom/Geometry.py create mode 100644 dynamicserialize/dstypes/com/vividsolutions/jts/geom/__init__.py create mode 100644 dynamicserialize/dstypes/gov/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridDataRequest.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridInfoRequest.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridNavRequest.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetStationsRequest.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetTimesRequest.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetTimesResponse.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/Station.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/StationDataRequest.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/query/GenericPointDataReqMsg.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/query/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/ActivityInfo.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/DerivedProduct.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/ResponseMessageValidate.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/__init__.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/RetrieveAllProductsRequest.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/StoreActivityRequest.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/StoreDerivedProductRequest.py create mode 100644 dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/__init__.py create mode 100644 dynamicserialize/dstypes/java/__init__.py create mode 100644 dynamicserialize/dstypes/java/awt/Point.py create mode 100644 dynamicserialize/dstypes/java/awt/__init__.py create mode 100644 dynamicserialize/dstypes/java/lang/StackTraceElement.py create mode 100644 dynamicserialize/dstypes/java/lang/__init__.py create mode 100644 dynamicserialize/dstypes/java/sql/Timestamp.py create mode 100644 dynamicserialize/dstypes/java/sql/__init__.py create mode 100644 dynamicserialize/dstypes/java/util/Calendar.py create mode 100644 dynamicserialize/dstypes/java/util/Date.py create mode 100644 dynamicserialize/dstypes/java/util/EnumSet.py create mode 100644 dynamicserialize/dstypes/java/util/GregorianCalendar.py create mode 100644 dynamicserialize/dstypes/java/util/__init__.py create mode 100644 dynamicserialize/setup.py diff --git a/dynamicserialize/DynamicSerializationManager.py b/dynamicserialize/DynamicSerializationManager.py new file mode 100644 index 0000000..98b21eb --- /dev/null +++ b/dynamicserialize/DynamicSerializationManager.py @@ -0,0 +1,69 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# A port of the Java DynamicSerializeManager. Should be used to read/write +# DynamicSerialize binary data. +# +# +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 06/09/10 njensen Initial Creation. +# +# +# + +from thrift.transport import TTransport +import SelfDescribingBinaryProtocol, ThriftSerializationContext + +class DynamicSerializationManager: + + def __init__(self): + self.transport = None + + def _deserialize(self, ctx): + return ctx.deserializeMessage() + + def deserializeBytes(self, bytes): + ctx = self._buildSerializationContext(bytes) + ctx.readMessageStart() + obj = self._deserialize(ctx) + ctx.readMessageEnd() + return obj + + def _buildSerializationContext(self, bytes=None): + self.transport = TTransport.TMemoryBuffer(bytes) + protocol = SelfDescribingBinaryProtocol.SelfDescribingBinaryProtocol(self.transport) + return ThriftSerializationContext.ThriftSerializationContext(self, protocol) + + def serializeObject(self, obj): + ctx = self._buildSerializationContext() + ctx.writeMessageStart("dynamicSerialize") + self._serialize(ctx, obj) + ctx.writeMessageEnd() + return self.transport.getvalue() + + def _serialize(self, ctx, obj): + ctx.serializeMessage(obj) \ No newline at end of file diff --git a/dynamicserialize/SelfDescribingBinaryProtocol.py b/dynamicserialize/SelfDescribingBinaryProtocol.py new file mode 100644 index 0000000..34071d6 --- /dev/null +++ b/dynamicserialize/SelfDescribingBinaryProtocol.py @@ -0,0 +1,132 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +from thrift.protocol.TProtocol import * +from thrift.protocol.TBinaryProtocol import * +from struct import pack, unpack + + +# +# Partially compatible AWIPS-II Thrift Binary Protocol +# +# Missing functionality: +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 11/11/09 chammack Initial Creation. +# 06/09/10 njensen Added float, list methods +# +# +# + +import struct, numpy + +FLOAT = 64 + +intList = numpy.dtype(numpy.int32).newbyteorder('>') +floatList = numpy.dtype(numpy.float32).newbyteorder('>') +longList = numpy.dtype(numpy.int64).newbyteorder('>') +shortList = numpy.dtype(numpy.int16).newbyteorder('>') +byteList = numpy.dtype(numpy.int8).newbyteorder('>') + +class SelfDescribingBinaryProtocol(TBinaryProtocol): + + def readFieldBegin(self): + type = self.readByte() + if type == TType.STOP: + return (None, type, 0) + name = self.readString() + id = self.readI16() + return (name, type, id) + + def readStructBegin(self): + return self.readString() + + def writeStructBegin(self, name): + self.writeString(name) + + def writeFieldBegin(self, name, type, id): + self.writeByte(type) + self.writeString(name) + self.writeI16(id) + + def readFloat(self): + d = self.readI32() + dAsBytes = struct.pack('i', d) + f = struct.unpack('f', dAsBytes) + return f[0] + + def writeFloat(self, f): + dAsBytes = struct.pack('f', f) + i = struct.unpack('i', dAsBytes) + self.writeI32(i[0]) + + def readI32List(self, sz): + buff = self.trans.readAll(4*sz) + val = numpy.frombuffer(buff, dtype=intList, count=sz) + return val + + def readF32List(self, sz): + buff = self.trans.readAll(4*sz) + val = numpy.frombuffer(buff, dtype=floatList, count=sz) + return val + + def readI64List(self, sz): + buff = self.trans.readAll(8*sz) + val = numpy.frombuffer(buff, dtype=longList, count=sz) + return val + + def readI16List(self, sz): + buff = self.trans.readAll(2*sz) + val = numpy.frombuffer(buff, dtype=shortList, count=sz) + return val + + def readI8List(self, sz): + buff = self.trans.readAll(sz) + val = numpy.frombuffer(buff, dtype=byteList, count=sz) + return val + + def writeI32List(self, buff): + b = numpy.asarray(buff, intList) + self.trans.write(numpy.getbuffer(b)) + + def writeF32List(self, buff): + b = numpy.asarray(buff, floatList) + self.trans.write(numpy.getbuffer(b)) + + def writeI64List(self, buff): + b = numpy.asarray(buff, longList) + self.trans.write(numpy.getbuffer(b)) + + def writeI16List(self, buff): + b = numpy.asarray(buff, shortList) + self.trans.write(numpy.getbuffer(b)) + + def writeI8List(self, buff): + b = numpy.asarray(buff, byteList) + self.trans.write(numpy.getbuffer(b)) + \ No newline at end of file diff --git a/dynamicserialize/ThriftSerializationContext.py b/dynamicserialize/ThriftSerializationContext.py new file mode 100644 index 0000000..1756aa6 --- /dev/null +++ b/dynamicserialize/ThriftSerializationContext.py @@ -0,0 +1,418 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# A port of the Java ThriftSerializationContext, used for reading/writing +# DynamicSerialize objects to/from thrift. +# +# For serialization, it has no knowledge of the expected types in other +# languages, it is instead all based on inspecting the types of the objects +# passed to it. Therefore, ensure the types of python objects and primitives +# match what they should be in the destination language. +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 06/09/10 njensen Initial Creation. +# 06/12/13 #2099 dgilling Implement readObject() and +# writeObject(). +# +# + +from thrift.Thrift import TType +import inspect, sys, types +import dynamicserialize +from dynamicserialize import dstypes, adapters +import SelfDescribingBinaryProtocol +import numpy + +dsObjTypes = {} + +def buildObjMap(module): + if module.__dict__.has_key('__all__'): + for i in module.__all__: + name = module.__name__ + '.' + i + __import__(name) + buildObjMap(sys.modules[name]) + else: + clzName = module.__name__[module.__name__.rfind('.') + 1:] + clz = module.__dict__[clzName] + tname = module.__name__ + tname = tname.replace('dynamicserialize.dstypes.', '') + dsObjTypes[tname] = clz + +buildObjMap(dstypes) + +pythonToThriftMap = { + types.StringType: TType.STRING, + types.IntType: TType.I32, + types.LongType: TType.I64, + types.ListType: TType.LIST, + types.DictionaryType: TType.MAP, + type(set([])): TType.SET, + types.FloatType: SelfDescribingBinaryProtocol.FLOAT, + #types.FloatType: TType.DOUBLE, + types.BooleanType: TType.BOOL, + types.InstanceType: TType.STRUCT, + types.NoneType: TType.VOID, + numpy.float32: SelfDescribingBinaryProtocol.FLOAT, + numpy.int32: TType.I32, + numpy.ndarray: TType.LIST, + numpy.object_: TType.STRING, # making an assumption here + numpy.string_: TType.STRING, + numpy.float64: TType.DOUBLE, + numpy.int16: TType.I16, + numpy.int8: TType.BYTE, + numpy.int64: TType.I64 +} + +primitiveSupport = (TType.BYTE, TType.I16, TType.I32, TType.I64, SelfDescribingBinaryProtocol.FLOAT) + +class ThriftSerializationContext(object): + + def __init__(self, serializationManager, selfDescribingBinaryProtocol): + self.serializationManager = serializationManager + self.protocol = selfDescribingBinaryProtocol + self.typeDeserializationMethod = { + TType.STRING: self.protocol.readString, + TType.I16: self.protocol.readI16, + TType.I32: self.protocol.readI32, + TType.LIST: self._deserializeArray, + TType.MAP: self._deserializeMap, + TType.SET: self._deserializeSet, + SelfDescribingBinaryProtocol.FLOAT: self.protocol.readFloat, + TType.BYTE: self.protocol.readByte, + TType.I64: self.protocol.readI64, + TType.DOUBLE: self.protocol.readDouble, + TType.BOOL: self.protocol.readBool, + TType.STRUCT: self.deserializeMessage, + TType.VOID: lambda: None + } + self.typeSerializationMethod = { + TType.STRING: self.protocol.writeString, + TType.I16: self.protocol.writeI16, + TType.I32: self.protocol.writeI32, + TType.LIST: self._serializeArray, + TType.MAP: self._serializeMap, + TType.SET: self._serializeSet, + SelfDescribingBinaryProtocol.FLOAT: self.protocol.writeFloat, + TType.BYTE: self.protocol.writeByte, + TType.I64: self.protocol.writeI64, + TType.DOUBLE: self.protocol.writeDouble, + TType.BOOL: self.protocol.writeBool, + TType.STRUCT: self.serializeMessage, + TType.VOID: lambda x: None + } + self.listDeserializationMethod = { + TType.BYTE: self.protocol.readI8List, + TType.I16: self.protocol.readI16List, + TType.I32: self.protocol.readI32List, + TType.I64: self.protocol.readI64List, + SelfDescribingBinaryProtocol.FLOAT: self.protocol.readF32List + } + self.listSerializationMethod = { + TType.BYTE: self.protocol.writeI8List, + TType.I16: self.protocol.writeI16List, + TType.I32: self.protocol.writeI32List, + TType.I64: self.protocol.writeI64List, + SelfDescribingBinaryProtocol.FLOAT: self.protocol.writeF32List + } + + + def readMessageStart(self): + msg = self.protocol.readMessageBegin() + return msg[0] + + def readMessageEnd(self): + self.protocol.readMessageEnd() + + def deserializeMessage(self): + name = self.protocol.readStructBegin() + name = name.replace('_', '.') + if name.isdigit(): + obj = self._deserializeType(int(name)) + return obj + elif adapters.classAdapterRegistry.has_key(name): + return adapters.classAdapterRegistry[name].deserialize(self) + elif name.find('$') > -1: + # it's an inner class, we're going to hope it's an enum, treat it special + fieldName, fieldType, fieldId = self.protocol.readFieldBegin() + if fieldName != '__enumValue__': + raise dynamiceserialize.SerializationException("Expected to find enum payload. Found: " + fieldName) + obj = self.protocol.readString() + self.protocol.readFieldEnd() + return obj + else: + clz = dsObjTypes[name] + obj = clz() + + while self._deserializeField(name, obj): + pass + + self.protocol.readStructEnd() + return obj + + def _deserializeType(self, b): + if self.typeDeserializationMethod.has_key(b): + return self.typeDeserializationMethod[b]() + else: + raise dynamicserialize.SerializationException("Unsupported type value " + str(b)) + + + def _deserializeField(self, structname, obj): + fieldName, fieldType, fieldId = self.protocol.readFieldBegin() + if fieldType == TType.STOP: + return False + elif fieldType != TType.VOID: +# if adapters.fieldAdapterRegistry.has_key(structname) and adapters.fieldAdapterRegistry[structname].has_key(fieldName): +# result = adapters.fieldAdapterRegistry[structname][fieldName].deserialize(self) +# else: + result = self._deserializeType(fieldType) + lookingFor = "set" + fieldName[0].upper() + fieldName[1:] + + try: + setMethod = getattr(obj, lookingFor) + + if callable(setMethod): + setMethod(result) + else: + raise dynamicserialize.SerializationException("Couldn't find setter method " + lookingFor) + except: + raise dynamicserialize.SerializationException("Couldn't find setter method " + lookingFor) + + self.protocol.readFieldEnd() + return True + + + def _deserializeArray(self): + listType, size = self.protocol.readListBegin() + result = [] + if size: + if listType not in primitiveSupport: + m = self.typeDeserializationMethod[listType] + result = [m() for n in xrange(size)] + else: + result = self.listDeserializationMethod[listType](size) + self.protocol.readListEnd() + return result + + def _deserializeMap(self): + keyType, valueType, size = self.protocol.readMapBegin() + result = {} + for n in xrange(size): + # can't go off the type, due to java generics limitations dynamic serialize is + # serializing keys and values as void + key = self.typeDeserializationMethod[TType.STRUCT]() + value = self.typeDeserializationMethod[TType.STRUCT]() + result[key] = value + self.protocol.readMapEnd() + return result + + def _deserializeSet(self): + setType, setSize = self.protocol.readSetBegin() + result = set([]) + for n in xrange(setSize): + result.add(self.typeDeserializationMethod[TType.STRUCT]()) + self.protocol.readSetEnd() + return result + + def _lookupType(self, obj): + pyt = type(obj) + if pythonToThriftMap.has_key(pyt): + return pythonToThriftMap[pyt] + elif pyt.__module__.startswith('dynamicserialize.dstypes'): + return pythonToThriftMap[types.InstanceType] + else: + raise dynamicserialize.SerializationException("Don't know how to serialize object of type: " + str(pyt)) + + def serializeMessage(self, obj): + tt = self._lookupType(obj) + + if tt == TType.STRUCT: + fqn = obj.__module__.replace('dynamicserialize.dstypes.', '') + if adapters.classAdapterRegistry.has_key(fqn): + # get proper class name when writing class name to serialization stream + # in case we have a special inner-class case + m = sys.modules[adapters.classAdapterRegistry[fqn].__name__] + if isinstance(m.ClassAdapter, list): + fqn = m.ClassAdapter[0] + self.protocol.writeStructBegin(fqn) + adapters.classAdapterRegistry[fqn].serialize(self, obj) + return + else: + self.protocol.writeStructBegin(fqn) + methods = inspect.getmembers(obj, inspect.ismethod) + fid = 1 + for m in methods: + methodName = m[0] + if methodName.startswith('get'): + fieldname = methodName[3].lower() + methodName[4:] + val = m[1]() + ft = self._lookupType(val) + if ft == TType.STRUCT: + fc = val.__module__.replace('dynamicserialize.dstypes.', '') + self._serializeField(fieldname, ft, fid, val) + else: + self._serializeField(fieldname, ft, fid, val) + fid += 1 + self.protocol.writeFieldStop() + + self.protocol.writeStructEnd() + else: + # basic types + self.protocol.writeStructBegin(str(tt)) + self._serializeType(obj, tt) + self.protocol.writeStructEnd() + + def _serializeField(self, fieldName, fieldType, fieldId, fieldValue): + self.protocol.writeFieldBegin(fieldName, fieldType, fieldId) + self._serializeType(fieldValue, fieldType) + self.protocol.writeFieldEnd() + + def _serializeType(self, fieldValue, fieldType): + if self.typeSerializationMethod.has_key(fieldType): + return self.typeSerializationMethod[fieldType](fieldValue) + else: + raise dynamicserialize.SerializationException("Unsupported type value " + str(fieldType)) + + def _serializeArray(self, obj): + size = len(obj) + if size: + if type(obj) is numpy.ndarray: + t = pythonToThriftMap[obj.dtype.type] + size = obj.size + else: + t = self._lookupType(obj[0]) + else: + t = TType.STRUCT + self.protocol.writeListBegin(t, size) + if t == TType.STRING: + if type(obj) is numpy.ndarray: + if len(obj.shape) == 1: + for x in obj: + s = str(x).strip() + self.typeSerializationMethod[t](s) + else: + for x in obj: + for y in x: + s = str(y).strip() + self.typeSerializationMethod[t](s) + else: + for x in obj: + s = str(x) + self.typeSerializationMethod[t](s) + elif t not in primitiveSupport: + for x in obj: + self.typeSerializationMethod[t](x) + else: + self.listSerializationMethod[t](obj) + self.protocol.writeListEnd() + + + def _serializeMap(self, obj): + size = len(obj) + self.protocol.writeMapBegin(TType.VOID, TType.VOID, size) + for k in obj.keys(): + self.typeSerializationMethod[TType.STRUCT](k) + self.typeSerializationMethod[TType.STRUCT](obj[k]) + self.protocol.writeMapEnd() + + def _serializeSet(self, obj): + size = len(obj) + self.protocol.writeSetBegin(TType.VOID, size) + for x in obj: + self.typeSerializationMethod[TType.STRUCT](x) + self.protocol.writeSetEnd() + + def writeMessageStart(self, name): + self.protocol.writeMessageBegin(name, TType.VOID, 0) + + def writeMessageEnd(self): + self.protocol.writeMessageEnd() + + def readBool(self): + return self.protocol.readBool() + + def writeBool(self, b): + self.protocol.writeBool(b) + + def readByte(self): + return self.protocol.readByte() + + def writeByte(self, b): + self.protocol.writeByte(b) + + def readDouble(self): + return self.protocol.readDouble() + + def writeDouble(self, d): + self.protocol.writeDouble(d) + + def readFloat(self): + return self.protocol.readFloat() + + def writeFloat(self, f): + self.protocol.writeFloat(f) + + def readI16(self): + return self.protocol.readI16() + + def writeI16(self, i): + self.protocol.writeI16(i) + + def readI32(self): + return self.protocol.readI32() + + def writeI32(self, i): + self.protocol.writeI32(i) + + def readI64(self): + return self.protocol.readI64() + + def writeI64(self, i): + self.protocol.writeI64(i) + + def readString(self): + return self.protocol.readString() + + def writeString(self, s): + self.protocol.writeString(s) + + def readBinary(self): + numBytes = self.protocol.readI32() + return self.protocol.readI8List(numBytes) + + def readFloatArray(self): + size = self.protocol.readI32() + return self.protocol.readF32List(size) + + def writeFloatArray(self, floats): + self.protocol.writeI32(len(floats)) + self.protocol.writeF32List(floats) + + def readObject(self): + return self.deserializeMessage() + + def writeObject(self, obj): + self.serializeMessage(obj) + \ No newline at end of file diff --git a/dynamicserialize/__init__.py b/dynamicserialize/__init__.py new file mode 100644 index 0000000..1877eb9 --- /dev/null +++ b/dynamicserialize/__init__.py @@ -0,0 +1,58 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# TODO +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 08/20/10 njensen Initial Creation. +# +# +# + +__all__ = [ + ] + +import dstypes, adapters +import DynamicSerializationManager + +class SerializationException(Exception): + + def __init__(self, message=None): + self.message = message + + def __str__(self): + if self.message: + return self.message + else: + return "" + +def serialize(obj): + dsm = DynamicSerializationManager.DynamicSerializationManager() + return dsm.serializeObject(obj) + +def deserialize(bytes): + dsm = DynamicSerializationManager.DynamicSerializationManager() + return dsm.deserializeBytes(bytes) \ No newline at end of file diff --git a/dynamicserialize/adapters/ActiveTableModeAdapter.py b/dynamicserialize/adapters/ActiveTableModeAdapter.py new file mode 100644 index 0000000..3a64435 --- /dev/null +++ b/dynamicserialize/adapters/ActiveTableModeAdapter.py @@ -0,0 +1,51 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.raytheon.uf.common.activetable.ActiveTableMode +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 09/29/10 wldougher Initial Creation. +# +# +# + +from thrift.Thrift import TType +from dynamicserialize.dstypes.com.raytheon.uf.common.activetable import ActiveTableMode + +ClassAdapter = 'com.raytheon.uf.common.activetable.ActiveTableMode' + +def serialize(context, mode): + context.protocol.writeFieldBegin('__enumValue__', TType.STRING, 0) + context.writeString(mode.value) + +def deserialize(context): + result = ActiveTableMode() + # Read the TType.STRING, "__enumValue__", and id. + # We're not interested in any of those, so just discard them. + context.protocol.readFieldBegin() + # now get the actual enum value + result.value = context.readString() + return result diff --git a/dynamicserialize/adapters/ByteBufferAdapter.py b/dynamicserialize/adapters/ByteBufferAdapter.py new file mode 100644 index 0000000..6d714f7 --- /dev/null +++ b/dynamicserialize/adapters/ByteBufferAdapter.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for java.nio.ByteBuffer +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 08/03/11 dgilling Initial Creation. +# +# +# + +ClassAdapter = ['java.nio.ByteBuffer', 'java.nio.HeapByteBuffer'] + + +def serialize(context, set): + raise NotImplementedError("Serialization of ByteBuffers is not supported.") + +def deserialize(context): + byteBuf = context.readBinary() + return byteBuf + + + diff --git a/dynamicserialize/adapters/CalendarAdapter.py b/dynamicserialize/adapters/CalendarAdapter.py new file mode 100644 index 0000000..7a21f09 --- /dev/null +++ b/dynamicserialize/adapters/CalendarAdapter.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for java.util.Calendar +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 09/29/10 wldougher Initial Creation. +# +# +# + +from dynamicserialize.dstypes.java.util import Calendar + +ClassAdapter = 'java.util.Calendar' + +def serialize(context, calendar): + calTiM = calendar.getTimeInMillis() + context.writeI64(calTiM) + +def deserialize(context): + result = Calendar() + result.setTimeInMillis(context.readI64()) + return result diff --git a/dynamicserialize/adapters/CoordAdapter.py b/dynamicserialize/adapters/CoordAdapter.py new file mode 100644 index 0000000..ebfb93a --- /dev/null +++ b/dynamicserialize/adapters/CoordAdapter.py @@ -0,0 +1,50 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.vividsolutions.jts.geom.Coordinate +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 01/20/11 dgilling Initial Creation. +# +# +# + +from dynamicserialize.dstypes.com.vividsolutions.jts.geom import Coordinate + +ClassAdapter = 'com.vividsolutions.jts.geom.Coordinate' + +def serialize(context, coordinate): + context.writeDouble(coordinate.getX()) + context.writeDouble(coordinate.getY()) + +def deserialize(context): + x = context.readDouble() + y = context.readDouble() + coord = Coordinate() + coord.setX(x) + coord.setY(y) + return coord + diff --git a/dynamicserialize/adapters/DatabaseIDAdapter.py b/dynamicserialize/adapters/DatabaseIDAdapter.py new file mode 100644 index 0000000..7397a47 --- /dev/null +++ b/dynamicserialize/adapters/DatabaseIDAdapter.py @@ -0,0 +1,44 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.raytheon.uf.common.dataplugin.gfe.db.objects.DatabaseID +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 03/29/11 dgilling Initial Creation. +# +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import DatabaseID + +ClassAdapter = 'com.raytheon.uf.common.dataplugin.gfe.db.objects.DatabaseID' + +def serialize(context, dbId): + context.writeString(str(dbId)) + +def deserialize(context): + result = DatabaseID(context.readString()) + return result \ No newline at end of file diff --git a/dynamicserialize/adapters/DateAdapter.py b/dynamicserialize/adapters/DateAdapter.py new file mode 100644 index 0000000..82c6911 --- /dev/null +++ b/dynamicserialize/adapters/DateAdapter.py @@ -0,0 +1,45 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for java.util.Date +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 12/06/10 dgilling Initial Creation. +# +# +# + +from dynamicserialize.dstypes.java.util import Date + +ClassAdapter = 'java.util.Date' + +def serialize(context, date): + context.writeI64(date.getTime()) + +def deserialize(context): + result = Date() + result.setTime(context.readI64()) + return result \ No newline at end of file diff --git a/dynamicserialize/adapters/EnumSetAdapter.py b/dynamicserialize/adapters/EnumSetAdapter.py new file mode 100644 index 0000000..158bfe9 --- /dev/null +++ b/dynamicserialize/adapters/EnumSetAdapter.py @@ -0,0 +1,57 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for java.util.EnumSet +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 07/28/11 dgilling Initial Creation. +# 12/02/13 2537 bsteffen Serialize empty enum sets. +# +# +# + + + +from dynamicserialize.dstypes.java.util import EnumSet + +ClassAdapter = ['java.util.EnumSet', 'java.util.RegularEnumSet'] + + +def serialize(context, set): + setSize = len(set) + context.writeI32(setSize) + context.writeString(set.getEnumClass()) + for val in set: + context.writeString(val) + + +def deserialize(context): + setSize = context.readI32() + enumClassName = context.readString() + valList = [] + for i in xrange(setSize): + valList.append(context.readString()) + return EnumSet(enumClassName, valList) diff --git a/dynamicserialize/adapters/FloatBufferAdapter.py b/dynamicserialize/adapters/FloatBufferAdapter.py new file mode 100644 index 0000000..20c9690 --- /dev/null +++ b/dynamicserialize/adapters/FloatBufferAdapter.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for java.nio.FloatBuffer +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 08/01/11 dgilling Initial Creation. +# +# +# + +ClassAdapter = ['java.nio.FloatBuffer', 'java.nio.HeapFloatBuffer'] + + +def serialize(context, set): + raise NotImplementedError("Serialization of FloatBuffers is not supported.") + +def deserialize(context): + floatBuf = context.readFloatArray() + return floatBuf + + + diff --git a/dynamicserialize/adapters/GeometryTypeAdapter.py b/dynamicserialize/adapters/GeometryTypeAdapter.py new file mode 100644 index 0000000..387842f --- /dev/null +++ b/dynamicserialize/adapters/GeometryTypeAdapter.py @@ -0,0 +1,56 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.vividsolutions.jts.geom.Polygon +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 01/20/11 dgilling Initial Creation. +# +# +# + +# TODO: Implement serialization/make deserialization useful. +# Deserialization was simply implemented to allow GridLocation objects to be +# passed through thrift, but the resulting Geometry object will not be transformed into +# useful data; the base byte array is passed to a worthless Geometry class. + +from dynamicserialize.dstypes.com.vividsolutions.jts.geom import Geometry + +# NOTE: At the moment, EDEX serializes Polygon, MultiPolygons, Points, and +# Geometrys with the tag of the base class Geometry. Java's serialization +# adapter is smarter and can determine the exact object by reading the binary +# data. This adapter doesn't need this _yet_, so it has not been implemented. +ClassAdapter = 'com.vividsolutions.jts.geom.Geometry' + +def serialize(context, coordinate): + raise dynamicserialize.SerializationException('Not implemented yet') + +def deserialize(context): + data = context.readBinary() + geom = Geometry() + geom.setBinaryData(data) + return geom + diff --git a/dynamicserialize/adapters/GregorianCalendarAdapter.py b/dynamicserialize/adapters/GregorianCalendarAdapter.py new file mode 100644 index 0000000..39d5cbc --- /dev/null +++ b/dynamicserialize/adapters/GregorianCalendarAdapter.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for java.util.Calendar +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 09/29/10 wldougher Initial Creation. +# +# +# + +from dynamicserialize.dstypes.java.util import GregorianCalendar + +ClassAdapter = 'java.util.GregorianCalendar' + +def serialize(context, calendar): + calTiM = calendar.getTimeInMillis() + context.writeI64(calTiM) + +def deserialize(context): + result = GregorianCalendar() + result.setTimeInMillis(context.readI64()) + return result diff --git a/dynamicserialize/adapters/GridDataHistoryAdapter.py b/dynamicserialize/adapters/GridDataHistoryAdapter.py new file mode 100644 index 0000000..8b88553 --- /dev/null +++ b/dynamicserialize/adapters/GridDataHistoryAdapter.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.raytheon.uf.common.dataplugin.gfe.GridDataHistory +# +# TODO: REWRITE THIS ADAPTER when serialization/deserialization of this +# class has been finalized. +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 03/29/11 dgilling Initial Creation. +# +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe import GridDataHistory + +ClassAdapter = 'com.raytheon.uf.common.dataplugin.gfe.GridDataHistory' + +def serialize(context, history): + context.writeString(history.getCodedString()) + +def deserialize(context): + result = GridDataHistory(context.readString()) + return result \ No newline at end of file diff --git a/dynamicserialize/adapters/JTSEnvelopeAdapter.py b/dynamicserialize/adapters/JTSEnvelopeAdapter.py new file mode 100644 index 0000000..6446e49 --- /dev/null +++ b/dynamicserialize/adapters/JTSEnvelopeAdapter.py @@ -0,0 +1,51 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.vividsolutions.jts.geom.Envelope +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/29/13 2023 dgilling Initial Creation. +# +# + +from dynamicserialize.dstypes.com.vividsolutions.jts.geom import Envelope + +ClassAdapter = 'com.vividsolutions.jts.geom.Envelope' + +def serialize(context, envelope): + context.writeDouble(envelope.getMinX()) + context.writeDouble(envelope.getMaxX()) + context.writeDouble(envelope.getMinY()) + context.writeDouble(envelope.getMaxY()) + +def deserialize(context): + env = Envelope() + env.setMinX(context.readDouble()) + env.setMaxX(context.readDouble()) + env.setMinY(context.readDouble()) + env.setMaxY(context.readDouble()) + return env + diff --git a/dynamicserialize/adapters/LocalizationLevelSerializationAdapter.py b/dynamicserialize/adapters/LocalizationLevelSerializationAdapter.py new file mode 100644 index 0000000..d391cc1 --- /dev/null +++ b/dynamicserialize/adapters/LocalizationLevelSerializationAdapter.py @@ -0,0 +1,56 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.raytheon.uf.common.localization.LocalizationContext$LocalizationLevel +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 01/11/11 dgilling Initial Creation. +# +# +# + + + +from dynamicserialize.dstypes.com.raytheon.uf.common.localization import LocalizationLevel + +ClassAdapter = [ + 'com.raytheon.uf.common.localization.LocalizationContext$LocalizationLevel', + 'com.raytheon.uf.common.localization.LocalizationLevel' + ] + +def serialize(context, level): + context.writeString(level.getText()) + context.writeI32(level.getOrder()) + context.writeBool(level.isSystemLevel()); + +def deserialize(context): + text = context.readString() + order = context.readI32() + systemLevel = context.readBool() + level = LocalizationLevel(text, order, systemLevel=systemLevel) + return level + + diff --git a/dynamicserialize/adapters/LocalizationTypeSerializationAdapter.py b/dynamicserialize/adapters/LocalizationTypeSerializationAdapter.py new file mode 100644 index 0000000..e7f70e4 --- /dev/null +++ b/dynamicserialize/adapters/LocalizationTypeSerializationAdapter.py @@ -0,0 +1,50 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.raytheon.uf.common.localization.LocalizationContext$LocalizationType +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 01/11/11 dgilling Initial Creation. +# +# +# + + + +from dynamicserialize.dstypes.com.raytheon.uf.common.localization import LocalizationType + +ClassAdapter = [ + 'com.raytheon.uf.common.localization.LocalizationContext$LocalizationType', + 'com.raytheon.uf.common.localization.LocalizationType' + ] + +def serialize(context, type): + context.writeString(type.getText()) + +def deserialize(context): + typeString = context.readString() + return LocalizationType(typeString) + diff --git a/dynamicserialize/adapters/LockTableAdapter.py b/dynamicserialize/adapters/LockTableAdapter.py new file mode 100644 index 0000000..1b47747 --- /dev/null +++ b/dynamicserialize/adapters/LockTableAdapter.py @@ -0,0 +1,88 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# +# Adapter for com.raytheon.uf.common.dataplugin.gfe.server.lock.LockTable +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 04/22/13 rjpeter Initial Creation. +# 06/12/13 #2099 dgilling Use new Lock constructor. +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.server.lock import LockTable +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.server.lock import Lock + +ClassAdapter = 'com.raytheon.uf.common.dataplugin.gfe.server.lock.LockTable' + +def serialize(context, lockTable): + index=0 + wsIds = {lockTable.getWsId().toString() : index} + index += 1 + locks = lockTable.getLocks() + lockWsIdIndex = [] + for lock in locks: + wsIdString = lock.getWsId().toString() + + if wsIds.has_key(wsIdString): + lockWsIdIndex.append(wsIds[wsIdString]) + else: + lockWsIdIndex.append(index) + wsIds[wsIdString] = index + index += 1 + + context.writeObject(lockTable.getParmId()) + + context.writeI32(index) + for wsId in sorted(wsIds, key=wsIds.get): + context.writeObject(wsId) + + context.writeI32(len(locks)) + for lock, wsIndex in zip(locks, lockWsIdIndex): + serializer.writeI64(lock.getStartTime()) + serializer.writeI64(lock.getEndTime()) + serializer.writeI32(wsIndex) + +def deserialize(context): + parmId = context.readObject() + numWsIds = context.readI32() + wsIds = [] + for x in xrange(numWsIds): + wsIds.append(context.readObject()) + + numLocks = context.readI32() + locks = [] + for x in xrange(numLocks): + startTime = context.readI64() + endTime = context.readI64() + wsId = wsIds[context.readI32()] + lock = Lock(parmId, wsId, startTime, endTime) + locks.append(lock) + + lockTable = LockTable() + lockTable.setParmId(parmId) + lockTable.setWsId(wsIds[0]) + lockTable.setLocks(locks) + + return lockTable \ No newline at end of file diff --git a/dynamicserialize/adapters/ParmIDAdapter.py b/dynamicserialize/adapters/ParmIDAdapter.py new file mode 100644 index 0000000..12adb2c --- /dev/null +++ b/dynamicserialize/adapters/ParmIDAdapter.py @@ -0,0 +1,44 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.raytheon.uf.common.dataplugin.gfe.db.objects.ParmID +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 03/29/11 dgilling Initial Creation. +# +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import ParmID + +ClassAdapter = 'com.raytheon.uf.common.dataplugin.gfe.db.objects.ParmID' + +def serialize(context, parmId): + context.writeString(str(parmId)) + +def deserialize(context): + result = ParmID(context.readString()) + return result \ No newline at end of file diff --git a/dynamicserialize/adapters/PointAdapter.py b/dynamicserialize/adapters/PointAdapter.py new file mode 100644 index 0000000..d571dc1 --- /dev/null +++ b/dynamicserialize/adapters/PointAdapter.py @@ -0,0 +1,50 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for java.awt.Point +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 08/31/10 njensen Initial Creation. +# +# +# + +from dynamicserialize.dstypes.java.awt import Point + +ClassAdapter = 'java.awt.Point' + +def serialize(context, point): + context.writeI32(point.getX()) + context.writeI32(point.getY()) + +def deserialize(context): + x = context.readI32() + y = context.readI32() + point = Point() + point.setX(x) + point.setY(y) + return point + diff --git a/dynamicserialize/adapters/StackTraceElementAdapter.py b/dynamicserialize/adapters/StackTraceElementAdapter.py new file mode 100644 index 0000000..48de027 --- /dev/null +++ b/dynamicserialize/adapters/StackTraceElementAdapter.py @@ -0,0 +1,52 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for java.lang.StackTraceElement[] +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 09/21/10 njensen Initial Creation. +# +# +# + +import dynamicserialize +from dynamicserialize.dstypes.java.lang import StackTraceElement + +ClassAdapter = 'java.lang.StackTraceElement' + + +def serialize(context, obj): + raise dynamicserialize.SerializationException('Not implemented yet') + +def deserialize(context): + result = StackTraceElement() + result.setDeclaringClass(context.readString()) + result.setMethodName(context.readString()) + result.setFileName(context.readString()) + result.setLineNumber(context.readI32()) + return result + + diff --git a/dynamicserialize/adapters/TimeConstraintsAdapter.py b/dynamicserialize/adapters/TimeConstraintsAdapter.py new file mode 100644 index 0000000..74b1a5c --- /dev/null +++ b/dynamicserialize/adapters/TimeConstraintsAdapter.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.raytheon.uf.common.dataplugin.gfe.db.objects.ParmID +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 03/20/13 #1774 randerso Initial Creation. +# +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import TimeConstraints + +ClassAdapter = 'com.raytheon.uf.common.dataplugin.gfe.db.objects.TimeConstraints' + +def serialize(context, timeConstraints): + context.writeI32(timeConstraints.getDuration()); + context.writeI32(timeConstraints.getRepeatInterval()); + context.writeI32(timeConstraints.getStartTime()); + +def deserialize(context): + result = TimeConstraints(context.readI32(), context.readI32(), context.readI32()) + return result \ No newline at end of file diff --git a/dynamicserialize/adapters/TimeRangeTypeAdapter.py b/dynamicserialize/adapters/TimeRangeTypeAdapter.py new file mode 100644 index 0000000..0ad700a --- /dev/null +++ b/dynamicserialize/adapters/TimeRangeTypeAdapter.py @@ -0,0 +1,63 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.raytheon.uf.common.message.WsId +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 09/16/10 dgilling Initial Creation. +# 01/22/14 2667 bclement use method to get millis from time range +# 02/28/14 2667 bclement deserialize now converts millis to micros +# +# +# + + +from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange + + +ClassAdapter = 'com.raytheon.uf.common.time.TimeRange' + +MICROS_IN_MILLISECOND = 1000 +MILLIS_IN_SECOND = 1000 + +def serialize(context, timeRange): + context.writeI64(timeRange.getStartInMillis()) + context.writeI64(timeRange.getEndInMillis()) + +def deserialize(context): + startTime = context.readI64() + endTime = context.readI64() + + timeRange = TimeRange() + # java uses milliseconds, python uses microseconds + startSeconds = startTime // MILLIS_IN_SECOND + endSeconds = endTime // MILLIS_IN_SECOND + startExtraMicros = (startTime % MILLIS_IN_SECOND) * MICROS_IN_MILLISECOND + endExtraMicros = (endTime % MILLIS_IN_SECOND) * MICROS_IN_MILLISECOND + timeRange.setStart(startSeconds, startExtraMicros) + timeRange.setEnd(endSeconds, endExtraMicros) + + return timeRange diff --git a/dynamicserialize/adapters/TimestampAdapter.py b/dynamicserialize/adapters/TimestampAdapter.py new file mode 100644 index 0000000..e6ce2bf --- /dev/null +++ b/dynamicserialize/adapters/TimestampAdapter.py @@ -0,0 +1,44 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for java.sql.Timestamp +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 06/30/11 dgilling Initial Creation. +# +# +# + +from dynamicserialize.dstypes.java.sql import Timestamp + +ClassAdapter = 'java.sql.Timestamp' + +def serialize(context, timestamp): + context.writeI64(timestamp.getTime()) + +def deserialize(context): + result = Timestamp(context.readI64()) + return result \ No newline at end of file diff --git a/dynamicserialize/adapters/WsIdAdapter.py b/dynamicserialize/adapters/WsIdAdapter.py new file mode 100644 index 0000000..18a1e72 --- /dev/null +++ b/dynamicserialize/adapters/WsIdAdapter.py @@ -0,0 +1,58 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Adapter for com.raytheon.uf.common.message.WsId +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 09/16/10 dgilling Initial Creation. +# 04/25/12 545 randerso Repurposed the lockKey field as threadId +# +# +# + + + +from dynamicserialize.dstypes.com.raytheon.uf.common.message import WsId + +ClassAdapter = 'com.raytheon.uf.common.message.WsId' + + +def serialize(context, wsId): + context.writeString(wsId.toString()) + +def deserialize(context): + wsIdString = context.readString() + wsIdParts = wsIdString.split(":", 5) + + wsId = WsId() + wsId.setNetworkId(wsIdParts[0]) + wsId.setUserName(wsIdParts[1]) + wsId.setProgName(wsIdParts[2]) + wsId.setPid(wsIdParts[3]) + wsId.setThreadId(long(wsIdParts[4])) + + return wsId + diff --git a/dynamicserialize/adapters/__init__.py b/dynamicserialize/adapters/__init__.py new file mode 100644 index 0000000..83ccb89 --- /dev/null +++ b/dynamicserialize/adapters/__init__.py @@ -0,0 +1,85 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# __init__.py for Dynamic Serialize adapters. +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 08/31/10 njensen Initial Creation. +# 03/20/13 #1774 randerso Added TimeConstraintsAdapter +# 04/22/13 #1949 rjpeter Added LockTableAdapter +# 02/06/14 #2672 bsteffen Added JTSEnvelopeAdapter + +# +# + +__all__ = [ + 'PointAdapter', + 'StackTraceElementAdapter', + 'WsIdAdapter', + 'CalendarAdapter', + 'GregorianCalendarAdapter', + 'ActiveTableModeAdapter', + 'DateAdapter', + 'LocalizationLevelSerializationAdapter', + 'LocalizationTypeSerializationAdapter', + 'GeometryTypeAdapter', + 'CoordAdapter', + 'TimeRangeTypeAdapter', + 'ParmIDAdapter', + 'DatabaseIDAdapter', + 'TimestampAdapter', + 'EnumSetAdapter', + 'FloatBufferAdapter', + 'ByteBufferAdapter', + 'TimeConstraintsAdapter', + 'LockTableAdapter', + 'JTSEnvelopeAdapter' +# 'GridDataHistoryAdapter', + ] + +classAdapterRegistry = {} + + +def getAdapterRegistry(): + import sys + for x in __all__: + exec 'import ' + x + m = sys.modules['dynamicserialize.adapters.' + x] + d = m.__dict__ + if d.has_key('ClassAdapter'): + if isinstance(m.ClassAdapter, list): + for clz in m.ClassAdapter: + classAdapterRegistry[clz] = m + else: + clzName = m.ClassAdapter + classAdapterRegistry[clzName] = m + else: + raise LookupError('Adapter class ' + x + ' has no ClassAdapter field ' + \ + 'and cannot be registered.') + + +getAdapterRegistry() + diff --git a/dynamicserialize/dstypes/__init__.py b/dynamicserialize/dstypes/__init__.py new file mode 100644 index 0000000..8a203a7 --- /dev/null +++ b/dynamicserialize/dstypes/__init__.py @@ -0,0 +1,29 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'com', + 'gov', + 'java' + ] + + diff --git a/dynamicserialize/dstypes/com/__init__.py b/dynamicserialize/dstypes/com/__init__.py new file mode 100644 index 0000000..755bf9a --- /dev/null +++ b/dynamicserialize/dstypes/com/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'raytheon', + 'vividsolutions' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/__init__.py b/dynamicserialize/dstypes/com/raytheon/__init__.py new file mode 100644 index 0000000..92f3a4e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'uf' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/__init__.py new file mode 100644 index 0000000..b2da468 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'common' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/__init__.py new file mode 100644 index 0000000..33ec91b --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/__init__.py @@ -0,0 +1,41 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'activetable', + 'alertviz', + 'auth', + 'dataaccess', + 'dataplugin', + 'datastorage', + 'localization', + 'management', + 'message', + 'plugin', + 'pointdata', + 'pypies', + 'serialization', + 'site', + 'time' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/ActiveTableMode.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/ActiveTableMode.py new file mode 100644 index 0000000..068ebf7 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/ActiveTableMode.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File generated against equivalent DynamicSerialize Java class + +class ActiveTableMode(object): + def __init__(self): + self.value = None + + def __str__(self): + return repr(self.value) \ No newline at end of file diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/DumpActiveTableRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/DumpActiveTableRequest.py new file mode 100644 index 0000000..28eea26 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/DumpActiveTableRequest.py @@ -0,0 +1,103 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class DumpActiveTableRequest(object): + + def __init__(self): + self.actions = None + self.etns = None + self.fileContent = None + self.fileName = None + self.fromSite = None + self.ids = None + self.mode = None + self.phens = None + self.pils = None + self.sigs = None + self.sites = None + + def getActions(self): + return self.actions + + def setActions(self, actions): + self.actions = actions + + def getEtns(self): + return self.etns + + def setEtns(self, etns): + self.etns = etns + + def getFileContent(self): + return self.fileContent + + def setFileContent(self, fileContent): + self.fileContent = fileContent + + def getFileName(self): + return self.fileName + + def setFileName(self, fileName): + self.fileName = fileName + + def getFromSite(self): + return self.fromSite + + def setFromSite(self, fromSite): + self.fromSite = fromSite + + def getIds(self): + return self.ids + + def setIds(self, ids): + self.ids = ids + + def getMode(self): + return self.mode + + def setMode(self, mode): + self.mode = mode + + def getPhens(self): + return self.phens + + def setPhens(self, phens): + self.phens = phens + + def getPils(self): + return self.pils + + def setPils(self, pils): + self.pils = pils + + def getSigs(self): + return self.sigs + + def setSigs(self, sigs): + self.sigs = sigs + + def getSites(self): + return self.sites + + def setSites(self, sites): + self.sites = sites + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/DumpActiveTableResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/DumpActiveTableResponse.py new file mode 100644 index 0000000..4aed214 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/DumpActiveTableResponse.py @@ -0,0 +1,51 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +class DumpActiveTableResponse(object): + def __init__(self): + self.dump = None + self.unfilteredCount = 0 + self.filteredCount = 0 + self.message = None + + def getUnfilteredCount(self): + return self.unfilteredCount + + def getFilteredCount(self): + return self.filteredCount + + def getDump(self): + return self.dump + + def getMessage(self): + return self.message + + def setUnfilteredCount(self, unfilteredCount): + self.unfilteredCount = unfilteredCount + + def setFilteredCount(self, filteredCount): + self.filteredCount = filteredCount + + def setDump(self, dump): + self.dump = dump + + def setMessage(self, message): + self.message = message + \ No newline at end of file diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetActiveTableDictRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetActiveTableDictRequest.py new file mode 100644 index 0000000..cca8c88 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetActiveTableDictRequest.py @@ -0,0 +1,44 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +class GetActiveTableDictRequest(object): + + def __init__(self): + self.requestedSiteId = None + self.mode = None + self.wfos = None + + def getRequestedSiteId(self): + return self.requestedSiteId + + def setRequestedSiteId(self, requestedSiteId): + self.requestedSiteId = requestedSiteId + + def getMode(self): + return self.mode + + def setMode(self, mode): + self.mode = mode + + def getWfos(self): + return self.wfos + + def setWfos(self, wfos): + self.wfos = wfos; diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetActiveTableDictResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetActiveTableDictResponse.py new file mode 100644 index 0000000..fa33581 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetActiveTableDictResponse.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetActiveTableDictResponse(object): + + def __init__(self): + self.activeTable = None + self.mode = None + + def getActiveTable(self): + return self.activeTable + + def setActiveTable(self, activeTable): + self.activeTable = activeTable + + def getMode(self): + return self.mode + + def setMode(self, mode): + self.mode = mode + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetFourCharSitesRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetFourCharSitesRequest.py new file mode 100644 index 0000000..3f8f84a --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetFourCharSitesRequest.py @@ -0,0 +1,32 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetFourCharSitesRequest(object): + + def __init__(self): + self.sites = None + + def getSites(self): + return self.sites + + def setSites(self, sites): + self.sites = sites diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetFourCharSitesResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetFourCharSitesResponse.py new file mode 100644 index 0000000..c24d7b0 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetFourCharSitesResponse.py @@ -0,0 +1,32 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetFourCharSitesResponse(object): + + def __init__(self): + self.sites = None + + def getSites(self): + return self.sites + + def setSites(self, sites): + self.sites = sites diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetVtecAttributeRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetVtecAttributeRequest.py new file mode 100644 index 0000000..73d023c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetVtecAttributeRequest.py @@ -0,0 +1,44 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +class GetVtecAttributeRequest(object): + + def __init__(self): + self.siteId = None + self.attribute = None + self.defaultValue = None + + def getSiteId(self): + return self.siteId + + def setSiteId(self, site): + self.siteId = site + + def getAttribute(self): + return self.attribute + + def setAttribute(self, attribute): + self.attribute = attribute + + def getDefaultValue(self): + return self.defaultValue + + def setDefaultValue(self, default): + self.defaultValue = default diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetVtecAttributeResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetVtecAttributeResponse.py new file mode 100644 index 0000000..d93398a --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/GetVtecAttributeResponse.py @@ -0,0 +1,30 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +class GetVtecAttributeResponse(object): + + def __init__(self): + self.value = None + + def getValue(self): + return self.value + + def setValue(self, value): + self.value = value diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/OperationalActiveTableRecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/OperationalActiveTableRecord.py new file mode 100644 index 0000000..912f43c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/OperationalActiveTableRecord.py @@ -0,0 +1,280 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# Modified 2010-09-30: Changed getUfn to isUfn so we don't need two +# versions of ActiveTableVtec.py + +class OperationalActiveTableRecord(object): + + def __init__(self): + self.wmoid = None + self.pil = None + self.xxxid = None + self.countyheader = None + self.ugcZone = None + self.vtecstr = None + self.productClass = None + self.act = None + self.officeid = None + self.phen = None + self.sig = None + self.etn = None + self.startTime = None + self.endTime = None + self.issueTime = None + self.purgeTime = None + self.ufn = None + self.geometry = None + self.forecaster = None + self.motdir = None + self.motspd = None + self.loc = None + self.rawmessage = None + self.seg = None + self.phensig = None + self.region = None + self.overviewText = None + self.segText = None + self.locationID = None + self.floodSeverity = None + self.immediateCause = None + self.floodRecordStatus = None + self.floodBegin = None + self.floodCrest = None + self.floodEnd = None + self.identifier = None + + def getWmoid(self): + return self.wmoid + + def setWmoid(self, wmoid): + self.wmoid = wmoid + + def getPil(self): + return self.pil + + def setPil(self, pil): + self.pil = pil + + def getXxxid(self): + return self.xxxid + + def setXxxid(self, xxxid): + self.xxxid = xxxid + + def getCountyheader(self): + return self.countyheader + + def setCountyheader(self, countyheader): + self.countyheader = countyheader + + def getUgcZone(self): + return self.ugcZone + + def setUgcZone(self, ugcZone): + self.ugcZone = ugcZone + + def getVtecstr(self): + return self.vtecstr + + def setVtecstr(self, vtecstr): + self.vtecstr = vtecstr + + def getProductClass(self): + return self.productClass + + def setProductClass(self, productClass): + self.productClass = productClass + + def getAct(self): + return self.act + + def setAct(self, act): + self.act = act + + def getOfficeid(self): + return self.officeid + + def setOfficeid(self, officeid): + self.officeid = officeid + + def getPhen(self): + return self.phen + + def setPhen(self, phen): + self.phen = phen + + def getSig(self): + return self.sig + + def setSig(self, sig): + self.sig = sig + + def getEtn(self): + return self.etn + + def setEtn(self, etn): + self.etn = etn + + def getStartTime(self): + return self.startTime + + def setStartTime(self, startTime): + self.startTime = startTime + + def getEndTime(self): + return self.endTime + + def setEndTime(self, endTime): + self.endTime = endTime + + def getIssueTime(self): + return self.issueTime + + def setIssueTime(self, issueTime): + self.issueTime = issueTime + + def getPurgeTime(self): + return self.purgeTime + + def setPurgeTime(self, purgeTime): + self.purgeTime = purgeTime + + def isUfn(self): + return self.ufn + + def setUfn(self, ufn): + self.ufn = ufn + + def getGeometry(self): + return self.geometry + + def setGeometry(self, geometry): + self.geometry = geometry + + def getForecaster(self): + return self.forecaster + + def setForecaster(self, forecaster): + self.forecaster = forecaster + + def getMotdir(self): + return self.motdir + + def setMotdir(self, motdir): + self.motdir = motdir + + def getMotspd(self): + return self.motspd + + def setMotspd(self, motspd): + self.motspd = motspd + + def getLoc(self): + return self.loc + + def setLoc(self, loc): + self.loc = loc + + def getRawmessage(self): + return self.rawmessage + + def setRawmessage(self, rawmessage): + self.rawmessage = rawmessage + + def getSeg(self): + return self.seg + + def setSeg(self, seg): + self.seg = seg + + def getPhensig(self): + return self.phensig + + def setPhensig(self, phensig): + self.phensig = phensig + + def getRegion(self): + return self.region + + def setRegion(self, region): + self.region = region + + def getOverviewText(self): + return self.overviewText + + def setOverviewText(self, overviewText): + self.overviewText = overviewText + + def getSegText(self): + return self.segText + + def setSegText(self, segText): + self.segText = segText + + def getLocationID(self): + return self.locationID + + def setLocationID(self, locationID): + self.locationID = locationID + + def getFloodSeverity(self): + return self.floodSeverity + + def setFloodSeverity(self, floodSeverity): + self.floodSeverity = floodSeverity + + def getImmediateCause(self): + return self.immediateCause + + def setImmediateCause(self, immediateCause): + self.immediateCause = immediateCause + + def getFloodRecordStatus(self): + return self.floodRecordStatus + + def setFloodRecordStatus(self, floodRecordStatus): + self.floodRecordStatus = floodRecordStatus + + def getFloodBegin(self): + return self.floodBegin + + def setFloodBegin(self, floodBegin): + self.floodBegin = floodBegin + + def getFloodCrest(self): + return self.floodCrest + + def setFloodCrest(self, floodCrest): + self.floodCrest = floodCrest + + def getFloodEnd(self): + return self.floodEnd + + def setFloodEnd(self, floodEnd): + self.floodEnd = floodEnd + + def getIdentifier(self): + return self.identifier + + def setIdentifier(self, identifier): + self.identifier = identifier + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/PracticeActiveTableRecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/PracticeActiveTableRecord.py new file mode 100644 index 0000000..51ba2ab --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/PracticeActiveTableRecord.py @@ -0,0 +1,278 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class PracticeActiveTableRecord(object): + + def __init__(self): + self.wmoid = None + self.pil = None + self.xxxid = None + self.countyheader = None + self.ugcZone = None + self.vtecstr = None + self.productClass = None + self.act = None + self.officeid = None + self.phen = None + self.sig = None + self.etn = None + self.startTime = None + self.endTime = None + self.issueTime = None + self.purgeTime = None + self.ufn = None + self.geometry = None + self.forecaster = None + self.motdir = None + self.motspd = None + self.loc = None + self.rawmessage = None + self.seg = None + self.phensig = None + self.region = None + self.overviewText = None + self.segText = None + self.locationID = None + self.floodSeverity = None + self.immediateCause = None + self.floodRecordStatus = None + self.floodBegin = None + self.floodCrest = None + self.floodEnd = None + self.identifier = None + + def getWmoid(self): + return self.wmoid + + def setWmoid(self, wmoid): + self.wmoid = wmoid + + def getPil(self): + return self.pil + + def setPil(self, pil): + self.pil = pil + + def getXxxid(self): + return self.xxxid + + def setXxxid(self, xxxid): + self.xxxid = xxxid + + def getCountyheader(self): + return self.countyheader + + def setCountyheader(self, countyheader): + self.countyheader = countyheader + + def getUgcZone(self): + return self.ugcZone + + def setUgcZone(self, ugcZone): + self.ugcZone = ugcZone + + def getVtecstr(self): + return self.vtecstr + + def setVtecstr(self, vtecstr): + self.vtecstr = vtecstr + + def getProductClass(self): + return self.productClass + + def setProductClass(self, productClass): + self.productClass = productClass + + def getAct(self): + return self.act + + def setAct(self, act): + self.act = act + + def getOfficeid(self): + return self.officeid + + def setOfficeid(self, officeid): + self.officeid = officeid + + def getPhen(self): + return self.phen + + def setPhen(self, phen): + self.phen = phen + + def getSig(self): + return self.sig + + def setSig(self, sig): + self.sig = sig + + def getEtn(self): + return self.etn + + def setEtn(self, etn): + self.etn = etn + + def getStartTime(self): + return self.startTime + + def setStartTime(self, startTime): + self.startTime = startTime + + def getEndTime(self): + return self.endTime + + def setEndTime(self, endTime): + self.endTime = endTime + + def getIssueTime(self): + return self.issueTime + + def setIssueTime(self, issueTime): + self.issueTime = issueTime + + def getPurgeTime(self): + return self.purgeTime + + def setPurgeTime(self, purgeTime): + self.purgeTime = purgeTime + + def getUfn(self): + return self.ufn + + def setUfn(self, ufn): + self.ufn = ufn + + def getGeometry(self): + return self.geometry + + def setGeometry(self, geometry): + self.geometry = geometry + + def getForecaster(self): + return self.forecaster + + def setForecaster(self, forecaster): + self.forecaster = forecaster + + def getMotdir(self): + return self.motdir + + def setMotdir(self, motdir): + self.motdir = motdir + + def getMotspd(self): + return self.motspd + + def setMotspd(self, motspd): + self.motspd = motspd + + def getLoc(self): + return self.loc + + def setLoc(self, loc): + self.loc = loc + + def getRawmessage(self): + return self.rawmessage + + def setRawmessage(self, rawmessage): + self.rawmessage = rawmessage + + def getSeg(self): + return self.seg + + def setSeg(self, seg): + self.seg = seg + + def getPhensig(self): + return self.phensig + + def setPhensig(self, phensig): + self.phensig = phensig + + def getRegion(self): + return self.region + + def setRegion(self, region): + self.region = region + + def getOverviewText(self): + return self.overviewText + + def setOverviewText(self, overviewText): + self.overviewText = overviewText + + def getSegText(self): + return self.segText + + def setSegText(self, segText): + self.segText = segText + + def getLocationID(self): + return self.locationID + + def setLocationID(self, locationID): + self.locationID = locationID + + def getFloodSeverity(self): + return self.floodSeverity + + def setFloodSeverity(self, floodSeverity): + self.floodSeverity = floodSeverity + + def getImmediateCause(self): + return self.immediateCause + + def setImmediateCause(self, immediateCause): + self.immediateCause = immediateCause + + def getFloodRecordStatus(self): + return self.floodRecordStatus + + def setFloodRecordStatus(self, floodRecordStatus): + self.floodRecordStatus = floodRecordStatus + + def getFloodBegin(self): + return self.floodBegin + + def setFloodBegin(self, floodBegin): + self.floodBegin = floodBegin + + def getFloodCrest(self): + return self.floodCrest + + def setFloodCrest(self, floodCrest): + self.floodCrest = floodCrest + + def getFloodEnd(self): + return self.floodEnd + + def setFloodEnd(self, floodEnd): + self.floodEnd = floodEnd + + def getIdentifier(self): + return self.identifier + + def setIdentifier(self, identifier): + self.identifier = identifier + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/PracticeProductOfftimeRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/PracticeProductOfftimeRequest.py new file mode 100644 index 0000000..d5511a9 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/PracticeProductOfftimeRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class PracticeProductOfftimeRequest(object): + + def __init__(self): + self.drtString = None + self.notifyGFE = None + self.productText = None + + def getDrtString(self): + return self.drtString + + def setDrtString(self, drtString): + self.drtString = drtString + + def getNotifyGFE(self): + return self.notifyGFE + + def setNotifyGFE(self, notifyGFE): + self.notifyGFE = notifyGFE + + def getProductText(self): + return self.productText + + def setProductText(self, productText): + self.productText = productText + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/SendPracticeProductRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/SendPracticeProductRequest.py new file mode 100644 index 0000000..bf99293 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/SendPracticeProductRequest.py @@ -0,0 +1,33 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class SendPracticeProductRequest(object): + + def __init__(self): + self.productText = None + + def getProductText(self): + return self.productText + + def setProductText(self, productText): + self.productText = productText + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/VTECChange.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/VTECChange.py new file mode 100644 index 0000000..cc6fadb --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/VTECChange.py @@ -0,0 +1,54 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# 03/25/14 #2884 randerso Added xxxid to VTECChange + +class VTECChange(object): + + def __init__(self): + self.site = None + self.pil = None + self.phensig = None + self.xxxid = None + + def getSite(self): + return self.site + + def setSite(self, site): + self.site = site + + def getPil(self): + return self.pil + + def setPil(self, pil): + self.pil = pil + + def getPhensig(self): + return self.phensig + + def setPhensig(self, phensig): + self.phensig = phensig + + def getXxxid(self): + return self.xxxid + + def setXxxid(self, xxxid): + self.xxxid = xxxid diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/VTECTableChangeNotification.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/VTECTableChangeNotification.py new file mode 100644 index 0000000..d910236 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/VTECTableChangeNotification.py @@ -0,0 +1,59 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class VTECTableChangeNotification(object): + + def __init__(self): + self.mode = None + self.modTime = None + self.modSource = None + self.changes = None + + def getMode(self): + return self.mode + + def setMode(self, mode): + self.mode = mode + + def getModTime(self): + return self.modTime + + def setModTime(self, modTime): + self.modTime = modTime + + def getModSource(self): + return self.modSource + + def setModSource(self, modSource): + self.modSource = modSource + + def getChanges(self): + return self.changes + + def setChanges(self, changes): + self.changes = changes + + def __repr__(self): + msg = 'Table Name: ' + str(self.mode) + '\n' + msg += 'ModTime: ' + str(self.modTime) + '\n' + msg += 'ModSource: ' + str(self.modSource) + return msg diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/__init__.py new file mode 100644 index 0000000..d649732 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/__init__.py @@ -0,0 +1,58 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'ActiveTableMode', + 'DumpActiveTableRequest', + 'DumpActiveTableResponse', + 'GetActiveTableDictRequest', + 'GetActiveTableDictResponse', + 'GetFourCharSitesRequest', + 'GetFourCharSitesResponse', + 'GetVtecAttributeRequest', + 'GetVtecAttributeResponse', + 'OperationalActiveTableRecord', + 'PracticeActiveTableRecord', + 'PracticeProductOfftimeRequest', + 'SendPracticeProductRequest', + 'VTECChange', + 'VTECTableChangeNotification', + 'request', + 'response' + ] + +from ActiveTableMode import ActiveTableMode +from DumpActiveTableRequest import DumpActiveTableRequest +from DumpActiveTableResponse import DumpActiveTableResponse +from GetActiveTableDictRequest import GetActiveTableDictRequest +from GetActiveTableDictResponse import GetActiveTableDictResponse +from GetFourCharSitesRequest import GetFourCharSitesRequest +from GetFourCharSitesResponse import GetFourCharSitesResponse +from GetVtecAttributeRequest import GetVtecAttributeRequest +from GetVtecAttributeResponse import GetVtecAttributeResponse +from OperationalActiveTableRecord import OperationalActiveTableRecord +from PracticeActiveTableRecord import PracticeActiveTableRecord +from PracticeProductOfftimeRequest import PracticeProductOfftimeRequest +from SendPracticeProductRequest import SendPracticeProductRequest +from VTECChange import VTECChange +from VTECTableChangeNotification import VTECTableChangeNotification + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/ClearPracticeVTECTableRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/ClearPracticeVTECTableRequest.py new file mode 100644 index 0000000..1b9e709 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/ClearPracticeVTECTableRequest.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + + +class ClearPracticeVTECTableRequest(object): + + def __init__(self): + self.siteID = None + self.workstationID = None + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/MergeActiveTableRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/MergeActiveTableRequest.py new file mode 100644 index 0000000..9ffde54 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/MergeActiveTableRequest.py @@ -0,0 +1,94 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class MergeActiveTableRequest(object): + + def __init__(self, incomingRecords=[], tableName='PRACTICE', site=None, + timeOffset=0.0, xmlSource=None, fromIngestAT=False, + makeBackups=True): + self.incomingRecords = incomingRecords + self.site = site + self.tableName = tableName.upper() if tableName.upper() in ['OPERATIONAL', 'PRACTICE'] else 'PRACTICE' + self.timeOffset = float(timeOffset) + self.xmlSource = xmlSource + self.fromIngestAT = bool(fromIngestAT) + self.makeBackups = bool(makeBackups) + + def __repr__(self): + retVal = "MergeActiveTableRequest(" + retVal += repr(self.incomingRecords) + ", " + retVal += repr(self.tableName) + ", " + retVal += repr(self.site) + ", " + retVal += repr(self.timeOffset) + ", " + retVal += repr(self.xmlSource) + ", " + retVal += repr(self.fromIngestAT) + ", " + retVal += repr(self.makeBackups) + ")" + return retVal + + def __str__(self): + return self.__repr__() + + def getIncomingRecords(self): + return self.incomingRecords + + def setIncomingRecords(self, incomingRecords): + self.incomingRecords = incomingRecords + + def getTableName(self): + return self.tableName + + def setTableName(self, tableName): + value = tableName.upper() + if value not in ['OPERATIONAL', 'PRACTICE']: + raise ValueError("Invalid value " + tableName + " specified for ActiveTableMode.") + self.tableName = value + + def getSite(self): + return self.site + + def setSite(self, site): + self.site = site + + def getTimeOffset(self): + return self.timeOffset + + def setTimeOffset(self, timeOffset): + self.timeOffset = float(timeOffset) + + def getXmlSource(self): + return self.xmlSource + + def setXmlSource(self, xmlSource): + self.xmlSource = xmlSource + + def getFromIngestAT(self): + return self.fromIngestAT + + def setFromIngestAT(self, fromIngestAT): + self.fromIngestAT = bool(fromIngestAT) + + def getMakeBackups(self): + return self.makeBackups + + def setMakeBackups(self, makeBackups): + self.makeBackups = bool(makeBackups) + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/RetrieveRemoteActiveTableRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/RetrieveRemoteActiveTableRequest.py new file mode 100644 index 0000000..5cc1875 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/RetrieveRemoteActiveTableRequest.py @@ -0,0 +1,99 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class RetrieveRemoteActiveTableRequest(object): + + def __init__(self, serverHost=None, serverPort=0, serverProtocol=None, + mhsId=None, siteId=None, ancfAddress=None, bncfAddress=None, + transmitScript=None): + self.serverHost = serverHost + self.serverPort = int(serverPort) + self.serverProtocol = serverProtocol + self.mhsId = mhsId + self.siteId = siteId + self.ancfAddress = ancfAddress + self.bncfAddress = bncfAddress + self.transmitScript = transmitScript + + def __repr__(self): + retVal = "RetrieveRemoteActiveTableRequest(" + retVal += repr(self.serverHost) + ", " + retVal += repr(self.serverPort) + ", " + retVal += repr(self.serverProtocol) + ", " + retVal += repr(self.mhsId) + ", " + retVal += repr(self.siteId) + ", " + retVal += repr(self.ancfAddress) + ", " + retVal += repr(self.bncfAddress) + ", " + retVal += repr(self.transmitScript) + ")" + return retVal + + def __str__(self): + return self.__repr__() + + def getServerHost(self): + return self.serverHost + + def setServerHost(self, serverHost): + self.serverHost = serverHost + + def getServerPort(self): + return self.serverPort + + def setServerPort(self, serverPort): + self.serverPort = int(serverPort) + + def getServerProtocol(self): + return self.serverProtocol + + def setServerProtocol(self, serverProtocol): + self.serverProtocol = serverProtocol + + def getMhsId(self): + return self.mhsId + + def setMhsId(self, mhsId): + self.mhsId = mhsId + + def getSiteId(self): + return self.siteId + + def setSiteId(self, siteId): + self.siteId = siteId + + def getAncfAddress(self): + return self.ancfAddress + + def setAncfAddress(self, ancfAddress): + self.ancfAddress = ancfAddress + + def getBncfAddress(self): + return self.bncfAddress + + def setBncfAddress(self, bncfAddress): + self.bncfAddress = bncfAddress + + def getTransmitScript(self): + return self.transmitScript + + def setTransmitScript(self, transmitScript): + self.transmitScript = transmitScript + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/SendActiveTableRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/SendActiveTableRequest.py new file mode 100644 index 0000000..cb4d4f4 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/SendActiveTableRequest.py @@ -0,0 +1,140 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class SendActiveTableRequest(object): + + def __init__(self, serverHost=None, serverPort=None, serverProtocol=None, + serverSite=None, mhsId=None, sites=None, filterSites=None, + mhsSites=None, issueTime=None, countDict=None, fileName=None, + xmlIncoming=None, transmitScript=None): + self.serverHost = serverHost + self.serverPort = None if serverPort is None else int(serverPort) + self.serverProtocol = serverProtocol + self.serverSite = serverSite + self.mhsId = mhsId + self.sites = sites if sites is not None else [] + self.filterSites = filterSites if filterSites is not None else [] + self.mhsSites = mhsSites if mhsSites is not None else [] + self.issueTime = None if issueTime is None else float(issueTime) + self.countDict = countDict if countDict is not None else {} + self.fileName = fileName + self.xmlIncoming = xmlIncoming + self.transmitScript = transmitScript + + def __repr__(self): + retVal = "SendActiveTableRequest(" + retVal += repr(self.serverHost) + ", " + retVal += repr(self.serverPort) + ", " + retVal += repr(self.serverProtocol) + ", " + retVal += repr(self.serverSite) + ", " + retVal += repr(self.mhsId) + ", " + retVal += repr(self.sites) + ", " + retVal += repr(self.filterSites) + ", " + retVal += repr(self.mhsSites) + ", " + retVal += repr(self.issueTime) + ", " + retVal += repr(self.countDict) + ", " + retVal += repr(self.fileName) + ", " + retVal += repr(self.xmlIncoming) + ", " + retVal += repr(self.transmitScript) + ")" + return retVal + + def __str__(self): + return self.__repr__() + + def getServerHost(self): + return self.serverHost + + def setServerHost(self, serverHost): + self.serverHost = serverHost + + def getServerPort(self): + return self.serverPort + + def setServerPort(self, serverPort): + self.serverPort = serverPort + + def getServerProtocol(self): + return self.serverProtocol + + def setServerProtocol(self, serverProtocol): + self.serverProtocol = serverProtocol + + def getServerSite(self): + return self.serverSite + + def setServerSite(self, serverSite): + self.serverSite = serverSite + + def getMhsId(self): + return self.mhsId + + def setMhsId(self, mhsId): + self.mhsId = mhsId + + def getSites(self): + return self.sites + + def setSites(self, sites): + self.sites = sites + + def getFilterSites(self): + return self.filterSites + + def setFilterSites(self, filterSites): + self.filterSites = filterSites + + def getMhsSites(self): + return self.mhsSites + + def setMhsSites(self, mhsSites): + self.mhsSites = mhsSites + + def getIssueTime(self): + return self.issueTime + + def setIssueTime(self, issueTime): + self.issueTime = issueTime + + def getCountDict(self): + return self.countDict + + def setCountDict(self, countDict): + self.countDict = countDict + + def getFileName(self): + return self.fileName + + def setFileName(self, fileName): + self.fileName = fileName + + def getXmlIncoming(self): + return self.xmlIncoming + + def setXmlIncoming(self, xmlIncoming): + self.xmlIncoming = xmlIncoming + + def getTransmitScript(self): + return self.transmitScript + + def setTransmitScript(self, transmitScript): + self.transmitScript = transmitScript + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/__init__.py new file mode 100644 index 0000000..deab6de --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/__init__.py @@ -0,0 +1,34 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'ClearPracticeVTECTableRequest', + 'MergeActiveTableRequest', + 'RetrieveRemoteActiveTableRequest', + 'SendActiveTableRequest' + ] + +from ClearPracticeVTECTableRequest import ClearPracticeVTECTableRequest +from MergeActiveTableRequest import MergeActiveTableRequest +from RetrieveRemoteActiveTableRequest import RetrieveRemoteActiveTableRequest +from SendActiveTableRequest import SendActiveTableRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/response/ActiveTableSharingResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/response/ActiveTableSharingResponse.py new file mode 100644 index 0000000..db10d0e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/response/ActiveTableSharingResponse.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ActiveTableSharingResponse(object): + + def __init__(self): + self.taskSuccess = None + self.errorMessage = None + + def getTaskSuccess(self): + return self.taskSuccess + + def setTaskSuccess(self, taskSuccess): + self.taskSuccess = bool(taskSuccess) + + def getErrorMessage(self): + return self.errorMessage + + def setErrorMessage(self, errorMessage): + self.errorMessage = errorMessage + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/response/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/response/__init__.py new file mode 100644 index 0000000..9a60766 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/activetable/response/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'ActiveTableSharingResponse' + ] + +from ActiveTableSharingResponse import ActiveTableSharingResponse + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/alertviz/AlertVizRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/alertviz/AlertVizRequest.py new file mode 100644 index 0000000..3aea66c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/alertviz/AlertVizRequest.py @@ -0,0 +1,68 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class AlertVizRequest(object): + + def __init__(self): + self.message = None + self.machine = None + self.priority = None + self.sourceKey = None + self.category = None + self.audioFile = None + + def getMessage(self): + return self.message + + def setMessage(self, message): + self.message = message + + def getMachine(self): + return self.machine + + def setMachine(self, machine): + self.machine = machine + + def getPriority(self): + return self.priority + + def setPriority(self, priority): + self.priority = priority + + def getSourceKey(self): + return self.sourceKey + + def setSourceKey(self, sourceKey): + self.sourceKey = sourceKey + + def getCategory(self): + return self.category + + def setCategory(self, category): + self.category = category + + def getAudioFile(self): + return self.audioFile + + def setAudioFile(self, audioFile): + self.audioFile = audioFile + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/alertviz/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/alertviz/__init__.py new file mode 100644 index 0000000..2dc9ae1 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/alertviz/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'AlertVizRequest' + ] + +from AlertVizRequest import AlertVizRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/auth/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/__init__.py new file mode 100644 index 0000000..abb3c19 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'resp', + 'user' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/AbstractFailedResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/AbstractFailedResponse.py new file mode 100644 index 0000000..0e9516e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/AbstractFailedResponse.py @@ -0,0 +1,38 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +import abc + + +class AbstractFailedResponse(object): + __metaclass__ = abc.ABCMeta + + @abc.abstractmethod + def __init__(self): + self.request = None + + def getRequest(self): + return self.request + + def setRequest(self, request): + self.request = request + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/AuthServerErrorResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/AuthServerErrorResponse.py new file mode 100644 index 0000000..4677bb8 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/AuthServerErrorResponse.py @@ -0,0 +1,33 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + + +from dynamicserialize.dstypes.com.raytheon.uf.common.serialization.comm.response import ServerErrorResponse + +class AuthServerErrorResponse(ServerErrorResponse): + + def __init__(self): + super(AuthServerErrorResponse, self).__init__() + + ## nothing to implement here that isn't already covered by ServerErrorResponse ## + ## Just need the separate class for de-serialization. ## + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/SuccessfulExecution.py b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/SuccessfulExecution.py new file mode 100644 index 0000000..4e9d210 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/SuccessfulExecution.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class SuccessfulExecution(object): + + def __init__(self): + self.response = None + self.updatedData = None + + def getResponse(self): + return self.response + + def setResponse(self, response): + self.response = response + + def getUpdatedData(self): + return self.updatedData + + def setUpdatedData(self, updatedData): + self.updatedData = updatedData + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/UserNotAuthorized.py b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/UserNotAuthorized.py new file mode 100644 index 0000000..6b32c43 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/UserNotAuthorized.py @@ -0,0 +1,36 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from dynamicserialize.dstypes.com.raytheon.uf.common.auth.resp import AbstractFailedResponse + + +class UserNotAuthorized(AbstractFailedResponse): + + def __init__(self): + super(UserNotAuthorized, self).__init__() + self.message = None + + def getMessage(self): + return self.message + + def setMessage(self, message): + self.message = message diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/__init__.py new file mode 100644 index 0000000..7f01800 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/resp/__init__.py @@ -0,0 +1,34 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'AbstractFailedResponse', + 'AuthServerErrorResponse', + 'SuccessfulExecution', + 'UserNotAuthorized' + ] + +from AbstractFailedResponse import AbstractFailedResponse +from AuthServerErrorResponse import AuthServerErrorResponse +from SuccessfulExecution import SuccessfulExecution +from UserNotAuthorized import UserNotAuthorized + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/auth/user/AuthenticationData.py b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/user/AuthenticationData.py new file mode 100644 index 0000000..948acac --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/user/AuthenticationData.py @@ -0,0 +1,26 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class AuthenticationData(object): + + def __init__(self): + pass diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/auth/user/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/user/__init__.py new file mode 100644 index 0000000..dabda9b --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/auth/user/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'AuthenticationData' + ] + +from AuthenticationData import AuthenticationData diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/__init__.py new file mode 100644 index 0000000..01f7e51 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/__init__.py @@ -0,0 +1,29 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'impl', + 'request', + 'response' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/impl/DefaultDataRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/impl/DefaultDataRequest.py new file mode 100644 index 0000000..32abbcf --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/impl/DefaultDataRequest.py @@ -0,0 +1,94 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to sub-class IDataRequest. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/28/13 2023 dgilling Initial Creation. +# +# + + +from ufpy.dataaccess import IDataRequest + +from dynamicserialize.dstypes.com.vividsolutions.jts.geom import Envelope +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.level import Level + + +class DefaultDataRequest(IDataRequest): + + def __init__(self): + self.datatype = None + self.identifiers = {} + self.parameters = [] + self.levels = [] + self.locationNames = [] + self.envelope = None + + def setDatatype(self, datatype): + self.datatype = str(datatype) + + def addIdentifier(self, key, value): + self.identifiers[key] = value + + def removeIdentifier(self, key): + del self.identifiers[key] + + def setParameters(self, *params): + self.parameters = map(str, params) + + def setLevels(self, *levels): + self.levels = map(self.__makeLevel, levels) + + def __makeLevel(self, level): + if type(level) is Level: + return level + elif type(level) is str: + return Level(level) + else: + raise TypeError("Invalid object type specified for level.") + + def setEnvelope(self, env): + self.envelope = Envelope(env.envelope) + + def setLocationNames(self, *locationNames): + self.locationNames = map(str, locationNames) + + def getDatatype(self): + return self.datatype + + def getIdentifiers(self): + return self.identifiers + + def getParameters(self): + return self.parameters + + def getLevels(self): + return self.levels + + def getEnvelope(self): + return self.envelope + + def getLocationNames(self): + return self.locationNames diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/impl/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/impl/__init__.py new file mode 100644 index 0000000..8ceb2f0 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/impl/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'DefaultDataRequest' + ] + +from DefaultDataRequest import DefaultDataRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/AbstractDataAccessRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/AbstractDataAccessRequest.py new file mode 100644 index 0000000..6d350f9 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/AbstractDataAccessRequest.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to make it a abstract base class. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/28/13 #2023 dgilling Initial Creation. +# +# + +import abc + + +class AbstractDataAccessRequest(object): + __metaclass__ = abc.ABCMeta + + def __init__(self): + self.requestParameters = None + + def getRequestParameters(self): + return self.requestParameters + + def setRequestParameters(self, requestParameters): + self.requestParameters = requestParameters + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/AbstractIdentifierRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/AbstractIdentifierRequest.py new file mode 100644 index 0000000..75e9129 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/AbstractIdentifierRequest.py @@ -0,0 +1,45 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to make it a abstract base class. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 07/23/14 #3185 njensen Initial Creation. +# +# + +import abc + +class AbstractIdentifierRequest(object): + __metaclass__ = abc.ABCMeta + + def __init__(self): + self.datatype = None + + def getDatatype(self): + return self.datatype + + def setDatatype(self, datatype): + self.datatype = datatype + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableLevelsRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableLevelsRequest.py new file mode 100644 index 0000000..3cbb7af --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableLevelsRequest.py @@ -0,0 +1,38 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to make it sub class +# AbstractDataAccessRequest. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 07/23/14 #3185 njensen Initial Creation. +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractDataAccessRequest + +class GetAvailableLevelsRequest(AbstractDataAccessRequest): + + def __init__(self): + super(GetAvailableLevelsRequest, self).__init__() diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableLocationNamesRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableLocationNamesRequest.py new file mode 100644 index 0000000..23d5962 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableLocationNamesRequest.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to make it sub class +# AbstractDataAccessRequest. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/28/13 #2023 dgilling Initial Creation. +# +# + + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractDataAccessRequest + +class GetAvailableLocationNamesRequest(AbstractDataAccessRequest): + + def __init__(self): + super(GetAvailableLocationNamesRequest, self).__init__() + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableParametersRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableParametersRequest.py new file mode 100644 index 0000000..94dd439 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableParametersRequest.py @@ -0,0 +1,38 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to make it sub class +# AbstractDataAccessRequest. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 07/23/14 #3185 njensen Initial Creation. +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractDataAccessRequest + +class GetAvailableParametersRequest(AbstractDataAccessRequest): + + def __init__(self): + super(GetAvailableParametersRequest, self).__init__() diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableTimesRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableTimesRequest.py new file mode 100644 index 0000000..1bcf7b4 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetAvailableTimesRequest.py @@ -0,0 +1,48 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to make it sub class +# AbstractDataAccessRequest. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/28/13 #2023 dgilling Initial Creation. +# 03/03/14 #2673 bsteffen Add ability to query only ref times. +# +# + + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractDataAccessRequest + + +class GetAvailableTimesRequest(AbstractDataAccessRequest): + + def __init__(self): + super(GetAvailableTimesRequest, self).__init__() + self.refTimeOnly = False + + def getRefTimeOnly(self): + return self.refTimeOnly + + def setRefTimeOnly(self, refTimeOnly): + self.refTimeOnly = refTimeOnly diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetGeometryDataRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetGeometryDataRequest.py new file mode 100644 index 0000000..e5566bc --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetGeometryDataRequest.py @@ -0,0 +1,54 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to make it sub class +# AbstractDataAccessRequest. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/28/13 #2023 dgilling Initial Creation. +# +# + + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractDataAccessRequest + +class GetGeometryDataRequest(AbstractDataAccessRequest): + + def __init__(self): + super(GetGeometryDataRequest, self).__init__() + self.requestedTimes = None + self.requestedPeriod = None + + def getRequestedTimes(self): + return self.requestedTimes + + def setRequestedTimes(self, requestedTimes): + self.requestedTimes = requestedTimes + + def getRequestedPeriod(self): + return self.requestedPeriod + + def setRequestedPeriod(self, requestedPeriod): + self.requestedPeriod = requestedPeriod + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetGridDataRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetGridDataRequest.py new file mode 100644 index 0000000..e580807 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetGridDataRequest.py @@ -0,0 +1,53 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to make it sub class +# AbstractDataAccessRequest. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/28/13 #2023 dgilling Initial Creation. +# +# + + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractDataAccessRequest + +class GetGridDataRequest(AbstractDataAccessRequest): + + def __init__(self): + super(GetGridDataRequest, self).__init__() + self.requestedTimes = None + self.requestedPeriod = None + + def getRequestedTimes(self): + return self.requestedTimes + + def setRequestedTimes(self, requestedTimes): + self.requestedTimes = requestedTimes + + def getRequestedPeriod(self): + return self.requestedPeriod + + def setRequestedPeriod(self, requestedPeriod): + self.requestedPeriod = requestedPeriod diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetOptionalIdentifiersRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetOptionalIdentifiersRequest.py new file mode 100644 index 0000000..e303d7c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetOptionalIdentifiersRequest.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to make it sub class +# AbstractIdentifierRequest. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 07/23/14 #3185 njensen Initial Creation. +# 07/30/14 #3185 njensen Renamed valid to optional +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractIdentifierRequest + +class GetOptionalIdentifiersRequest(AbstractIdentifierRequest): + + def __init__(self): + super(GetOptionalIdentifiersRequest, self).__init__() + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetRequiredIdentifiersRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetRequiredIdentifiersRequest.py new file mode 100644 index 0000000..0f4264f --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetRequiredIdentifiersRequest.py @@ -0,0 +1,38 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to make it sub class +# AbstractIdentifierRequest. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 07/23/14 #3185 njensen Initial Creation. +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.request import AbstractIdentifierRequest + +class GetRequiredIdentifiersRequest(AbstractIdentifierRequest): + + def __init__(self): + super(GetRequiredIdentifiersRequest, self).__init__() diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetSupportedDatatypesRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetSupportedDatatypesRequest.py new file mode 100644 index 0000000..0309e61 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/GetSupportedDatatypesRequest.py @@ -0,0 +1,36 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified to do nothing on __init__. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 07/23/14 #3185 njensen Initial Creation. +# +# + +class GetSupportedDatatypesRequest(object): + + def __init__(self): + pass + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/__init__.py new file mode 100644 index 0000000..92e5319 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/request/__init__.py @@ -0,0 +1,48 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'AbstractDataAccessRequest', + 'AbstractIdentifierRequest', + 'GetAvailableLevelsRequest', + 'GetAvailableLocationNamesRequest', + 'GetAvailableParametersRequest', + 'GetAvailableTimesRequest', + 'GetGeometryDataRequest', + 'GetGridDataRequest', + 'GetRequiredIdentifiersRequest', + 'GetSupportedDatatypesRequest', + 'GetOptionalIdentifiersRequest' + ] + +from AbstractDataAccessRequest import AbstractDataAccessRequest +from AbstractIdentifierRequest import AbstractIdentifierRequest +from GetAvailableLevelsRequest import GetAvailableLevelsRequest +from GetAvailableLocationNamesRequest import GetAvailableLocationNamesRequest +from GetAvailableParametersRequest import GetAvailableParametersRequest +from GetAvailableTimesRequest import GetAvailableTimesRequest +from GetGeometryDataRequest import GetGeometryDataRequest +from GetGridDataRequest import GetGridDataRequest +from GetRequiredIdentifiersRequest import GetRequiredIdentifiersRequest +from GetSupportedDatatypesRequest import GetSupportedDatatypesRequest +from GetOptionalIdentifiersRequest import GetOptionalIdentifiersRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/AbstractResponseData.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/AbstractResponseData.py new file mode 100644 index 0000000..1c0330a --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/AbstractResponseData.py @@ -0,0 +1,59 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +import abc + + +class AbstractResponseData(object): + __metaclass__ = abc.ABCMeta + + @abc.abstractmethod + def __init__(self): + self.time = None + self.level = None + self.locationName = None + self.attributes = None + + def getTime(self): + return self.time + + def setTime(self, time): + self.time = time + + def getLevel(self): + return self.level + + def setLevel(self, level): + self.level = level + + def getLocationName(self): + return self.locationName + + def setLocationName(self, locationName): + self.locationName = locationName + + def getAttributes(self): + return self.attributes + + def setAttributes(self, attributes): + self.attributes = attributes + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GeometryResponseData.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GeometryResponseData.py new file mode 100644 index 0000000..9a1c697 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GeometryResponseData.py @@ -0,0 +1,53 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to use AbstractResponseData. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 06/04/13 #2023 dgilling Initial Creation. +# 01/06/14 #2537 bsteffen Store geometry index instead of WKT. +# +# + + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.response import AbstractResponseData + +class GeometryResponseData(AbstractResponseData): + + def __init__(self): + super(GeometryResponseData, self).__init__() + self.dataMap = None + self.geometryWKTindex = None + + def getDataMap(self): + return self.dataMap + + def setDataMap(self, dataMap): + self.dataMap = dataMap + + def getGeometryWKTindex(self): + return self.geometryWKTindex + + def setGeometryWKTindex(self, geometryWKTindex): + self.geometryWKTindex = geometryWKTindex diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGeometryDataResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGeometryDataResponse.py new file mode 100644 index 0000000..2107a07 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGeometryDataResponse.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetGeometryDataResponse(object): + + def __init__(self): + self.geometryWKTs = None + self.geoData = None + + def getGeometryWKTs(self): + return self.geometryWKTs + + def setGeometryWKTs(self, geometryWKTs): + self.geometryWKTs = geometryWKTs + + def getGeoData(self): + return self.geoData + + def setGeoData(self, geoData): + self.geoData = geoData + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGridDataResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGridDataResponse.py new file mode 100644 index 0000000..0e2544a --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GetGridDataResponse.py @@ -0,0 +1,61 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetGridDataResponse(object): + + def __init__(self): + self.gridData = None + self.siteNxValues = None + self.siteNyValues = None + self.siteLatGrids = None + self.siteLonGrids = None + + def getGridData(self): + return self.gridData + + def setGridData(self, gridData): + self.gridData = gridData + + def getSiteNxValues(self): + return self.siteNxValues + + def setSiteNxValues(self, siteNxValues): + self.siteNxValues = siteNxValues + + def getSiteNyValues(self): + return self.siteNyValues + + def setSiteNyValues(self, siteNyValues): + self.siteNyValues = siteNyValues + + def getSiteLatGrids(self): + return self.siteLatGrids + + def setSiteLatGrids(self, siteLatGrids): + self.siteLatGrids = siteLatGrids + + def getSiteLonGrids(self): + return self.siteLonGrids + + def setSiteLonGrids(self, siteLonGrids): + self.siteLonGrids = siteLonGrids + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GridResponseData.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GridResponseData.py new file mode 100644 index 0000000..7a00d47 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/GridResponseData.py @@ -0,0 +1,59 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to use AbstractResponseData. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 06/04/13 #2023 dgilling Initial Creation. +# +# + + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataaccess.response import AbstractResponseData + +class GridResponseData(AbstractResponseData): + + def __init__(self): + super(GridResponseData, self).__init__() + self.parameter = None + self.unit = None + self.gridData = None + + def getParameter(self): + return self.parameter + + def setParameter(self, parameter): + self.parameter = parameter + + def getUnit(self): + return self.unit + + def setUnit(self, unit): + self.unit = unit + + def getGridData(self): + return self.gridData + + def setGridData(self, gridData): + self.gridData = gridData diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/__init__.py new file mode 100644 index 0000000..d9ae682 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataaccess/response/__init__.py @@ -0,0 +1,36 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'AbstractResponseData', + 'GeometryResponseData', + 'GetGeometryDataResponse', + 'GetGridDataResponse', + 'GridResponseData' + ] + +from AbstractResponseData import AbstractResponseData +from GeometryResponseData import GeometryResponseData +from GetGeometryDataResponse import GetGeometryDataResponse +from GetGridDataResponse import GetGridDataResponse +from GridResponseData import GridResponseData + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/__init__.py new file mode 100644 index 0000000..8377dc3 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/__init__.py @@ -0,0 +1,34 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'events', + 'gfe', + 'grib', + 'grid', + 'level', + 'message', + 'radar', + 'text' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/__init__.py new file mode 100644 index 0000000..e1ccbfb --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'hazards' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/__init__.py new file mode 100644 index 0000000..d9702fd --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'requests' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/requests/RegionLookupRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/requests/RegionLookupRequest.py new file mode 100644 index 0000000..a227fa1 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/requests/RegionLookupRequest.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# Oct 08, 2014 reblum Generated + +class RegionLookupRequest(object): + + def __init__(self): + self.region = None + self.site = None + + def getRegion(self): + return self.region + + def setRegion(self, region): + self.region = region + + def getSite(self): + return self.site + + def setSite(self, site): + self.site = site + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/requests/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/requests/__init__.py new file mode 100644 index 0000000..8253e33 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/events/hazards/requests/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'RegionLookupRequest' + ] + +from RegionLookupRequest import RegionLookupRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/GridDataHistory.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/GridDataHistory.py new file mode 100644 index 0000000..83fa35a --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/GridDataHistory.py @@ -0,0 +1,97 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + + +class GridDataHistory(object): + + def __init__(self): + self.origin = None + self.originParm = None + self.originTimeRange = None + self.timeModified = None + self.whoModified = None + self.updateTime = None + self.publishTime = None + self.lastSentTime = None + + def __str__(self): + return self.__repr__() + + def __repr__(self): + retVal = "Origin: " + self.origin + '\n' + retVal += "Origin Parm: " + str(self.originParm) + '\n' + retVal += "Origin Time Range: " + str(self.originTimeRange) +\ + " Time Modified: " + str(self.timeModified) +\ + " Who Modified: " + str(self.whoModified) + '\n' + retVal += "Update Time: " + str(self.updateTime) + '\n' + retVal += "Publish Time: " + str(self.publishTime) + '\n' + retVal += "Last Sent Time: " + str(self.lastSentTime) + '\n' + return retVal + + def getOrigin(self): + return self.origin + + def setOrigin(self, origin): + self.origin = origin + + def getOriginParm(self): + return self.originParm + + def setOriginParm(self, originParm): + self.originParm = originParm + + def getOriginTimeRange(self): + return self.originTimeRange + + def setOriginTimeRange(self, originTimeRange): + self.originTimeRange = originTimeRange + + def getTimeModified(self): + return self.timeModified + + def setTimeModified(self, timeModified): + self.timeModified = timeModified + + def getWhoModified(self): + return self.whoModified + + def setWhoModified(self, whoModified): + self.whoModified = whoModified + + def getUpdateTime(self): + return self.updateTime + + def setUpdateTime(self, updateTime): + self.updateTime = updateTime + + def getPublishTime(self): + return self.publishTime + + def setPublishTime(self, publishTime): + self.publishTime = publishTime + + def getLastSentTime(self): + return self.lastSentTime + + def setLastSentTime(self, lastSentTime): + self.lastSentTime = lastSentTime + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/__init__.py new file mode 100644 index 0000000..695a941 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/__init__.py @@ -0,0 +1,36 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'GridDataHistory', + 'config', + 'db', + 'discrete', + 'grid', + 'request', + 'server', + 'slice', + 'weather' + ] + +from GridDataHistory import GridDataHistory + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.py new file mode 100644 index 0000000..fcc7e21 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/ProjectionData.py @@ -0,0 +1,116 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ProjectionData(object): + + def __init__(self): + self.projectionID = None + self.projectionType = None + self.latLonLL = None + self.latLonUR = None + self.latLonOrigin = None + self.stdParallelOne = None + self.stdParallelTwo = None + self.gridPointLL = None + self.gridPointUR = None + self.latIntersect = None + self.lonCenter = None + self.lonOrigin = None + + def getProjectionID(self): + return self.projectionID + + def setProjectionID(self, projectionID): + self.projectionID = projectionID + + def getProjectionType(self): + return self.projectionType + + def setProjectionType(self, projectionType): + self.projectionType = projectionType + + def getLatLonLL(self): + return self.latLonLL + + def setLatLonLL(self, latLonLL): + self.latLonLL = latLonLL + + def getLatLonUR(self): + return self.latLonUR + + def setLatLonUR(self, latLonUR): + self.latLonUR = latLonUR + + def getLatLonOrigin(self): + return self.latLonOrigin + + def setLatLonOrigin(self, latLonOrigin): + self.latLonOrigin = latLonOrigin + + def getStdParallelOne(self): + return self.stdParallelOne + + def setStdParallelOne(self, stdParallelOne): + self.stdParallelOne = stdParallelOne + + def getStdParallelTwo(self): + return self.stdParallelTwo + + def setStdParallelTwo(self, stdParallelTwo): + self.stdParallelTwo = stdParallelTwo + + def getGridPointLL(self): + return self.gridPointLL + + def setGridPointLL(self, gridPointLL): + self.gridPointLL = gridPointLL + + def getGridPointUR(self): + return self.gridPointUR + + def setGridPointUR(self, gridPointUR): + self.gridPointUR = gridPointUR + + def getLatIntersect(self): + return self.latIntersect + + def setLatIntersect(self, latIntersect): + self.latIntersect = latIntersect + + def getLonCenter(self): + return self.lonCenter + + def setLonCenter(self, lonCenter): + self.lonCenter = lonCenter + + def getLonOrigin(self): + return self.lonOrigin + + def setLonOrigin(self, lonOrigin): + self.lonOrigin = lonOrigin + + def keys(self): + return ['projectionID', 'projectionType', 'latLonLL', 'latLonUR', + 'latLonOrigin', 'stdParallelOne', 'stdParallelTwo', + 'gridPointLL', 'gridPointUR', 'latIntersect', 'lonCenter', + 'lonOrigin'] + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/__init__.py new file mode 100644 index 0000000..1af5572 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/config/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'ProjectionData' + ] + +from ProjectionData import ProjectionData + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/__init__.py new file mode 100644 index 0000000..c24cb82 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'objects' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/DatabaseID.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/DatabaseID.py new file mode 100644 index 0000000..26adff1 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/DatabaseID.py @@ -0,0 +1,212 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# Modified by njensen to add __repr__ + +import time + +class DatabaseID(object): + + def __init__(self, dbIdentifier=None): + self.siteId = None + self.format = "NONE" + self.dbType = None + self.modelName = None + self.modelTime = None + self.modelId = None + self.shortModelId = None + if dbIdentifier is not None: + if (self.__decodeIdentifier(dbIdentifier)): + self.__encodeIdentifier() + else: + self.format = "NONE" + self.dbType = "" + self.siteId = "" + self.modelName = "" + self.modelTime = "00000000_0000" + self.modelId = "" + self.shortModelId = "" + + def isValid(self) : + return self.format != "NONE"; + + def getSiteId(self): + return self.siteId + + def setSiteId(self, siteId): + self.siteId = siteId + + def getFormat(self): + return self.format + + def setFormat(self, format): + self.format = format + + def getDbType(self): + return self.dbType + + def setDbType(self, dbType): + self.dbType = dbType + + def getModelName(self): + return self.modelName + + def setModelName(self, modelName): + self.modelName = modelName + + def getModelTime(self): + return self.modelTime + + def setModelTime(self, modelTime): + self.modelTime = modelTime + + def getModelId(self): + return self.modelId + + def setModelId(self, modelId): + self.modelId = modelId + + def getShortModelId(self): + return self.shortModelId + + def setShortModelId(self, shortModelId): + self.shortModelId = shortModelId + + def __encodeIdentifier(self): + if self.dbType is not None: + self.modelId = self.siteId + "_" + self.format + "_" + self.dbType + "_" + self.modelName + else: + self.modelId = self.siteId + "_" + self.format + "__" + self.modelName + + self.shortModelId = self.modelName + if self.dbType is not None and self.dbType != "": + self.shortModelId += "_" + self.dbType + + if self.modelTime != "00000000_0000": + self.modelId += "_" + self.modelTime; + self.shortModelId += "_" + self.modelTime[6:8] + self.modelTime[9:11] + else: + self.modelId += "_" + "00000000_0000" + + self.shortModelId += " (" + self.siteId + ")" + + def __decodeIdentifier(self, dbIdentifier): + self.format = "NONE" + self.dbType = "" + self.siteId = "" + self.modelName = "" + self.modelTime = "00000000_0000" + + # parse into '_' separated strings + strings = dbIdentifier.split("_"); + if len(strings) != 6: + return False + + # store the data + if strings[1] == "GRID": + self.format = "GRID" + else: + return False + + self.siteId = strings[0] + self.dbType = strings[2] + self.modelName = strings[3] + + # date-time group + if (len(strings[4]) != 8 or len(strings[5]) != 4): + return False + + # make sure the digits are there + dtg = strings[4] + '_' + strings[5]; # back together + if dtg != "00000000_0000": + if not self.__decodeDtg(dtg): + return False + + return True + + @staticmethod + def decodeDtg(dtgString): + dateStruct = time.gmtime(0) + try: + dateStruct = time.strptime(dtgString, "%Y%m%d_%H%M") + except: + return (False, dateStruct) + return (True, dateStruct) + + def __decodeDtg(self, dtgString): + try: + time.strptime(dtgString, "%Y%m%d_%H%M") + self.modelTime = dtgString + except: + return False + return True + + def getModelTimeAsDate(self): + if self.modelTime == "00000000_0000": + return time.gmtime(0) + else: + return time.strptime(self.modelTime, "%Y%m%d_%H%M") + + def __str__(self): + return self.__repr__() + + def __repr__(self): + return self.modelId + + def __hash__(self): + prime = 31; + result = 1; + result = prime * result + (0 if self.dbType is None else hash(self.dbType)) + result = prime * result + (0 if self.format is None else hash(self.format)) + result = prime * result + (0 if self.modelId is None else hash(self.modelId)) + result = prime * result + (0 if self.modelTime is None else hash(self.modelTime)) + result = prime * result + (0 if self.siteId is None else hash(self.siteId)) + return result; + + def __cmp__(self, other): + if not isinstance(other, DatabaseID): + siteComp = cmp(self.siteId, other.siteId) + if siteComp != 0: + return siteComp + + formatComp = cmp(self.format, other.format) + if formatComp != 0: + return formatComp + + typeComp = cmp(self.dbType, other.dbType) + if typeComp != 0: + return typeComp + + nameComp = cmp(self.modelName, other.modelName) + if nameComp != 0: + return nameComp + + return -cmp(self.getModelTimeAsDate(), other.getModelTimeAsDate()) + else: + return NotImplemented + + def __eq__(self, other): + if not isinstance(other, DatabaseID): + return False + return (str(self) == str(other)) + + def __ne__(self, other): + return (not self.__eq__(other)) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GFERecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GFERecord.py new file mode 100644 index 0000000..8b8e150 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GFERecord.py @@ -0,0 +1,115 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import ParmID +from dynamicserialize.dstypes.com.raytheon.uf.common.time import DataTime +from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange + + +class GFERecord(object): + + def __init__(self, parmId=None, timeRange=None): + self.gridHistory = [] + self.dataURI = None + self.pluginName = "gfe" + self.insertTime = None + self.messageData = None + self.identifier = None + self.dataTime = None + self.parmId = None + if timeRange is not None: + if type(timeRange) is TimeRange: + self.dataTime = DataTime(refTime=timeRange.getStart(), validPeriod=timeRange) + else: + raise TypeError("Invalid TimeRange object specified.") + if parmId is not None: + if type(parmId) is ParmID.ParmID: + self.parmId = parmId + self.parmName = parmId.getParmName() + self.parmLevel = parmId.getParmLevel() + self.dbId = parmId.getDbId() + else: + raise TypeError("Invalid ParmID object specified. Type:" + str(type(parmId))) + + def getParmName(self): + return self.parmName + + def setParmName(self, parmName): + self.parmName = parmName + + def getParmLevel(self): + return self.parmLevel + + def setParmLevel(self, parmLevel): + self.parmLevel = parmLevel + + def getParmId(self): + return self.parmId + + def setParmId(self, parmId): + self.parmId = parmId + + def getDbId(self): + return self.dbId + + def setDbId(self, dbId): + self.dbId = dbId + + def getGridHistory(self): + return self.gridHistory + + def setGridHistory(self, gridHistory): + self.gridHistory = gridHistory + + def getDataURI(self): + return self.dataURI + + def setDataURI(self, dataURI): + self.dataURI = dataURI + + def getPluginName(self): + return "gfe" + + def getDataTime(self): + return self.dataTime + + def setDataTime(self, dataTime): + self.dataTime = dataTime + + def getInsertTime(self): + return self.insertTime + + def setInsertTime(self, insertTime): + self.insertTime = insertTime + + def getMessageData(self): + return self.messageData + + def setMessageData(self, messageData): + self.messageData = messageData + + def getIdentifier(self): + return self.identifier + + def setIdentifier(self, identifier): + self.identifier = identifier + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GridLocation.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GridLocation.py new file mode 100644 index 0000000..efeaeea --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GridLocation.py @@ -0,0 +1,136 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GridLocation(object): + + def __init__(self): + self.siteId = None + self.nx = None + self.ny = None + self.timeZone = None + self.projection = None + self.origin = None + self.extent = None + self.geometry = None + self.crsWKT = None + self.identifier = None + + def __str__(self): + return self.__repr__() + + def __repr__(self): + s = "[SiteID =" + self.siteId + ",ProjID=" + self.projection.getProjectionID() +\ + ",gridSize=(" + str(self.nx) + ',' + str(self.ny) + ")" + # TODO: Handle geometry in dynamicserialize + # ,loc=" + this.geometry.getGeometryType(); + s += ']' + return s + + def __eq__(self, other): + if not isinstance(other, GridLocation): + return False + if self.siteId != other.siteId: + return False + if self.crsWKT != other.crsWKT: + return False + # FIXME: Geometry/Polygon objects don't really work in dynamicserialize + # commenting out this check unless it causes problems +# if self.geometry != other.geometry: +# return False + if self.nx != other.nx: + return False + if self.ny != other.ny: + return False + return True + + def __ne__(self, other): + return (not self.__eq__(other)) + + def getSiteId(self): + return self.siteId + + def setSiteId(self, siteId): + self.siteId = siteId + + def getNx(self): + return self.nx + + def setNx(self, nx): + self.nx = nx + + def getNy(self): + return self.ny + + def setNy(self, ny): + self.ny = ny + + def getTimeZone(self): + return self.timeZone + + def setTimeZone(self, timeZone): + self.timeZone = timeZone + + def getProjection(self): + return self.projection + + def setProjection(self, projection): + self.projection = projection + + def getOrigin(self): + return self.origin + + def setOrigin(self, origin): + self.origin = origin + + def getExtent(self): + return self.extent + + def setExtent(self, extent): + self.extent = extent + + def getGeometry(self): + return self.geometry + + def setGeometry(self, geometry): + self.geometry = geometry + + def getCrsWKT(self): + return self.crsWKT + + def setCrsWKT(self, crsWKT): + self.crsWKT = crsWKT + + def getIdentifier(self): + return self.identifier + + def setIdentifier(self, identifier): + self.identifier = identifier + + def isValid(self): + if self.projection is None: + return False + if self.nx < 2 or self.ny < 2: + return False + if self.origin is None or self.extent is None: + return False + return True + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GridParmInfo.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GridParmInfo.py new file mode 100644 index 0000000..90b6ddb --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GridParmInfo.py @@ -0,0 +1,210 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +import warnings + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import GridLocation +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import ParmID +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import TimeConstraints + + +class GridParmInfo(object): + + def __init__(self, id=None, gridLoc=None, gridType="NONE", unit=None, + descriptiveName="", minValue=0.0, maxValue=0.0, precision=0, + timeIndependentParm=False, timeConstraints=None, rateParm=False): + self.parmID = id + self.gridLoc = gridLoc + self.gridType = gridType + self.descriptiveName = descriptiveName + self.unitString = unit + self.minValue = float(minValue) + self.maxValue = float(maxValue) + self.precision = int(precision) + self.rateParm = rateParm + self.timeConstraints = timeConstraints + self.timeIndependentParm = timeIndependentParm + +# (valid, errors) = self.__validCheck() +# if not valid: +# errorMessage = "GridParmInfo is invalid: " + str(errors) +# warnings.warn(errorMessage) +# self.__setDefaultValues() + + def __str__(self): + return self.__repr__() + + def __repr__(self): + out = "" + if self.isValid(): + out = "ParmID: " + str(self.parmID) + \ + " TimeConstraints: " + str(self.timeConstraints) + \ + " GridLoc: " + str(self.gridLoc) + \ + " Units: " + self.unitString + \ + " Name: " + self.descriptiveName + \ + " Min/Max AllowedValues: " + str(self.minValue) + "," + \ + str(self.maxValue) + " Precision: " + str(self.precision) + \ + " TimeIndependent: " + str(self.timeIndependentParm) + \ + " RateParm: " + str(self.rateParm) + \ + " GridType: " + self.gridType + else: + out = "" + return out + + def __eq__(self, other): + if not isinstance(other, GridParmInfo): + return False + if self.descriptiveName != other.descriptiveName: + return False + if self.gridLoc != other.gridLoc: + return False + if self.gridType != other.gridType: + return False + if self.minValue != other.minValue: + return False + if self.maxValue != other.maxValue: + return False + if self.parmID != other.parmID: + return False + if self.precision != other.precision: + return False + if self.rateParm != other.rateParm: + return False + if self.timeConstraints != other.timeConstraints: + return False + if self.timeIndependentParm != other.timeIndependentParm: + return False + if self.unitString != other.unitString: + return False + return True + + def __ne__(self, other): + return (not self.__eq__(other)) + + def __validCheck(self): + status = [] + + if not self.parmID.isValid(): + status.append("GridParmInfo.ParmID is not valid [" + str(self.parmID) + "]") + if not self.timeConstraints.isValid(): + status.append("GridParmInfo.TimeConstraints are not valid [" + + str(self.timeConstraints) + "]") + if not self.gridLoc.isValid(): + status.append("GridParmInfo.GridLocation is not valid") + if self.timeIndependentParm and self.timeConstraints.anyConstraints(): + status.append("GridParmInfo is invalid. There are time constraints" + + " for a time independent parm. Constraints: " + + str(self.timeConstraints)) + if len(self.unitString) == 0: + status.append("GridParmInfo.Units are not defined.") + if self.precision < -2 or self.precision > 5: + status.append("GridParmInfo is invalid. Precision out of limits." + + " Precision is: " + str(precision) + ". Must be between -2 and 5.") + + retVal = True + if len(status) > 0: + retVal = False + return (retVal, status) + + def isValid(self): + (valid, errors) = self.__validCheck() + return valid + + def __setDefaultValues(self): + self.parmID = ParmID() + self.gridLoc = GridLocation() + self.gridType = "NONE" + self.descriptiveName = "" + self.unitString = "" + self.minValue = 0.0 + self.maxValue = 0.0 + self.precision = 0 + self.rateParm = False + self.timeConstraints = TimeConstraints() + self.timeIndependentParm = False + + def getParmID(self): + return self.parmID + + def setParmID(self, parmID): + self.parmID = parmID + + def getGridLoc(self): + return self.gridLoc + + def setGridLoc(self, gridLoc): + self.gridLoc = gridLoc + + def getGridType(self): + return self.gridType + + def setGridType(self, gridType): + self.gridType = gridType + + def getDescriptiveName(self): + return self.descriptiveName + + def setDescriptiveName(self, descriptiveName): + self.descriptiveName = descriptiveName + + def getUnitString(self): + return self.unitString + + def setUnitString(self, unitString): + self.unitString = unitString + + def getMinValue(self): + return self.minValue + + def setMinValue(self, minValue): + self.minValue = minValue + + def getMaxValue(self): + return self.maxValue + + def setMaxValue(self, maxValue): + self.maxValue = maxValue + + def getPrecision(self): + return self.precision + + def setPrecision(self, precision): + self.precision = precision + + def getRateParm(self): + return self.rateParm + + def setRateParm(self, rateParm): + self.rateParm = rateParm + + def getTimeConstraints(self): + return self.timeConstraints + + def setTimeConstraints(self, timeConstraints): + self.timeConstraints = timeConstraints + + def getTimeIndependentParm(self): + return self.timeIndependentParm + + def setTimeIndependentParm(self, timeIndependentParm): + self.timeIndependentParm = timeIndependentParm + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/ParmID.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/ParmID.py new file mode 100644 index 0000000..e479aad --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/ParmID.py @@ -0,0 +1,151 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# Modified by njensen to add __repr__ + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import DatabaseID + +class ParmID(object): + + def __init__(self, parmIdentifier=None, dbId=None, level=None): + self.parmName = None + self.parmLevel = None + self.dbId = None + self.compositeName = None + self.shortParmId = None + self.parmId = None + + if (parmIdentifier is not None) and (dbId is not None): + self.parmName = parmIdentifier + + if type(dbId) is DatabaseID: + self.dbId = dbId + elif type(dbId) is str: + self.dbId = DatabaseID(dbId) + else: + raise TypeError("Invalid database ID specified.") + + if level is None: + self.parmLevel = self.defaultLevel() + else: + self.parmLevel = level + + self.__encodeIdentifier() + + elif parmIdentifier is not None: + self.__decodeIdentifier(parmIdentifier) + self.__encodeIdentifier() + + def getParmName(self): + return self.parmName + + def getParmLevel(self): + return self.parmLevel + + def getDbId(self): + return self.dbId + + def getCompositeName(self): + return self.compositeName + + def getShortParmId(self): + return self.shortParmId + + def getParmId(self): + return self.parmId + + def __decodeIdentifier(self, parmIdentifier): + parts = parmIdentifier.split(":") + nameLevel = parts[0].split("_") + self.dbId = DatabaseID(parts[1]) + if (len(nameLevel) == 2): + self.parmName = nameLevel[0] + self.parmLevel = nameLevel[1] + else: + self.parmName = nameLevel[0] + self.parmLevel = self.defaultLevel() + + def __encodeIdentifier(self): + self.compositeName = self.parmName + "_" + self.parmLevel + self.shortParmId = self.compositeName + ":" + self.dbId.getShortModelId() + self.parmId = self.compositeName + ":" + self.dbId.getModelId() + + def isValid(self): + if len(self.parmName) is None or len(self.parmLevel) is None or self.dbId is None: + return False + if len(self.parmName) < 1 or len(self.parmLevel) < 1 or not self.dbId.isValid(): + return False + + if not self.parmName.isalnum(): + return False + if not self.parmLevel.isalnum(): + return False + + return True + + @staticmethod + def defaultLevel(): + return "SFC" + + @staticmethod + def parmNameAndLevel(composite): + pos = composite.find('_') + if pos != -1: + return (composite[:pos], composite[pos+1:]) + else: + return (composite, "SFC") + + def __str__(self): + return self.__repr__() + + def __repr__(self): + return self.parmName + '_' + self.parmLevel + ":" + str(self.dbId) + + def __hash__(self): + return hash(self.parmId) + + def __cmp__(self, other): + if isinstance(other, ParmID): + nameComp = cmp(self.parmName, other.parmName) + if nameComp != 0: + return nameComp + + levelComp = cmp(self.parmLevel, other.parmLevel) + if levelComp != 0: + return levelComp + + return cmp(self.dbId, other.dbId) + else: + return NotImplemented + + def __eq__(self, other): + if not isinstance(other, ParmID): + return False + if self.dbId != other.dbId: + return False + if self.parmLevel != other.parmLevel: + return False + if self.parmName != other.parmName: + return False + return True + + def __ne__(self, other): + return (not self.__eq__(other)) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/TimeConstraints.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/TimeConstraints.py new file mode 100644 index 0000000..ba57565 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/TimeConstraints.py @@ -0,0 +1,100 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# +# 03/20/2013 #1774 randerso Removed setters, added isValid. + + +import logging + +HOUR = 3600; +DAY = 24 * HOUR; + +class TimeConstraints(object): + + def __init__(self, duration=0, repeatInterval=0, startTime=0): + duration = int(duration) + repeatInterval = int(repeatInterval) + startTime = int(startTime) + + self.valid = False; + if duration == 0 and repeatInterval == 0 and startTime == 0: + self.valid = True; + else: + if repeatInterval <= 0 or repeatInterval > DAY \ + or DAY % repeatInterval != 0 \ + or repeatInterval < duration \ + or startTime < 0 or startTime > DAY \ + or duration < 0 or duration > DAY: + + logging.warning("Bad init values for TimeConstraints: ", self); + self.valid = False; + duration = 0; + repeatInterval = 0; + startTime = 0; + else: + self.valid = True; + + self.duration = duration + self.repeatInterval = repeatInterval + self.startTime = startTime + + def __str__(self): + return self.__repr__() + + def __repr__(self): + if not self.isValid(): + return "" + elif not self.anyConstraints(): + return "" + else: + return "[s=" + str(self.startTime / HOUR) + "h, i=" + \ + str(self.repeatInterval / HOUR) + "h, d=" + \ + str(self.duration / HOUR) + "h]" + + def __eq__(self, other): + if not isinstance(other, TimeConstraints): + return False + if self.isValid() != other.isValid(): + return False + if self.duration != other.duration: + return False + if self.repeatInterval != other.repeatInterval: + return False + return (self.startTime == other.startTime) + + def __ne__(self, other): + return (not self.__eq__(other)) + + def anyConstraints(self): + return (self.duration != 0) + + def isValid(self): + return self.valid + + def getDuration(self): + return self.duration + + def getRepeatInterval(self): + return self.repeatInterval + + def getStartTime(self): + return self.startTime diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/__init__.py new file mode 100644 index 0000000..5aa31da --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/__init__.py @@ -0,0 +1,38 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'DatabaseID', + 'GFERecord', + 'GridLocation', + 'GridParmInfo', + 'ParmID', + 'TimeConstraints' + ] + +from DatabaseID import DatabaseID +from GFERecord import GFERecord +from GridLocation import GridLocation +from GridParmInfo import GridParmInfo +from ParmID import ParmID +from TimeConstraints import TimeConstraints + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/discrete/DiscreteKey.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/discrete/DiscreteKey.py new file mode 100644 index 0000000..d021e9e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/discrete/DiscreteKey.py @@ -0,0 +1,106 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +## NOTE: Because the pure python dynamicserialize code does not +# have a means of accessing the DiscreteDefinition, this class +# is only really useful as a container for deserialized data +# from EDEX. I would not recommend trying to use it for anything +# else. + + +SUBKEY_SEPARATOR = '^' +AUXDATA_SEPARATOR = ':' + +class DiscreteKey(object): + + def __init__(self): + self.siteId = None + self.subKeys = None + self.parmID = None + + def __str__(self): + return self.__repr__() + + def __repr__(self): + return SUBKEY_SEPARATOR.join(self.subKeys) + + def __getitem__(self, key): + try: + index = int(key) + except: + raise TypeError("list indices must be integers, not " + str(type(key))) + if index < 0 or index > len(self.subKeys): + raise IndexError("index out of range") + return self.subKeys[index] + + def __hash__(self): + prime = 31 + result = 1 + result = prime * result + (0 if self.parmID is None else hash(self.parmID)) + result = prime * result + (0 if self.siteId is None else hash(self.siteId)) + result = prime * result + (0 if self.subKeys is None else hash(self.subKeys)) + return result + + def __eq__(self, other): + if not isinstance(other, DiscreteKey): + return False + if self.parmID != other.parmID: + return False + if self.siteId != other.siteId: + return False + return self.subKeys == other.subKeys + + def __ne__(self, other): + return (not self.__eq__(other)) + + @staticmethod + def auxData(subkey): + pos = subkey.find(AUXDATA_SEPARATOR) + if pos != -1: + return subkey[pos + 1:] + else: + return "" + + @staticmethod + def baseData(subkey): + pos = subkey.find(AUXDATA_SEPARATOR) + if pos != -1: + return subkey[:pos] + else: + return subkey + + def getSiteId(self): + return self.siteId + + def setSiteId(self, siteId): + self.siteId = siteId + + def getSubKeys(self): + return self.subKeys + + def setSubKeys(self, subKeys): + self.subKeys = subKeys + + def getParmID(self): + return self.parmID + + def setParmID(self, parmID): + self.parmID = parmID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/discrete/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/discrete/__init__.py new file mode 100644 index 0000000..023af40 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/discrete/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'DiscreteKey' + ] + +from DiscreteKey import DiscreteKey + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/Grid2DByte.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/Grid2DByte.py new file mode 100644 index 0000000..8798a4f --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/Grid2DByte.py @@ -0,0 +1,53 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +import numpy + + +class Grid2DByte(object): + + def __init__(self): + self.buffer = None + self.xdim = None + self.ydim = None + + def getBuffer(self): + return self.buffer + + def setBuffer(self, buffer): + self.buffer = buffer + + def getXdim(self): + return self.xdim + + def setXdim(self, xdim): + self.xdim = xdim + + def getYdim(self): + return self.ydim + + def setYdim(self, ydim): + self.ydim = ydim + + def getNumPyGrid(self): + return numpy.resize(self.buffer, (self.xdim, self.ydim)) + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/Grid2DFloat.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/Grid2DFloat.py new file mode 100644 index 0000000..8af3dcc --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/Grid2DFloat.py @@ -0,0 +1,52 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +import numpy + + +class Grid2DFloat(object): + + def __init__(self): + self.buffer = None + self.xdim = None + self.ydim = None + + def getBuffer(self): + return self.buffer + + def setBuffer(self, buffer): + self.buffer = buffer + + def getXdim(self): + return self.xdim + + def setXdim(self, xdim): + self.xdim = xdim + + def getYdim(self): + return self.ydim + + def setYdim(self, ydim): + self.ydim = ydim + + def getNumPyGrid(self): + return numpy.resize(self.buffer, (self.xdim, self.ydim)) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/__init__.py new file mode 100644 index 0000000..42d0e1b --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/grid/__init__.py @@ -0,0 +1,30 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'Grid2DByte', + 'Grid2DFloat' + ] + +from Grid2DByte import Grid2DByte +from Grid2DFloat import Grid2DFloat + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/AbstractGfeRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/AbstractGfeRequest.py new file mode 100644 index 0000000..057decc --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/AbstractGfeRequest.py @@ -0,0 +1,44 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +import abc + + +class AbstractGfeRequest(object): + __metaclass__ = abc.ABCMeta + + @abc.abstractmethod + def __init__(self): + self.siteID = None + self.workstationID = None + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/CommitGridsRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/CommitGridsRequest.py new file mode 100644 index 0000000..28d3d2b --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/CommitGridsRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class CommitGridsRequest(object): + + def __init__(self): + self.commits = None + self.workstationID = None + self.siteID = None + + def getCommits(self): + return self.commits + + def setCommits(self, commits): + self.commits = commits + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ConfigureTextProductsRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ConfigureTextProductsRequest.py new file mode 100644 index 0000000..f3e5f14 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ConfigureTextProductsRequest.py @@ -0,0 +1,54 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ConfigureTextProductsRequest(object): + + def __init__(self): + self.mode = None + self.template = None + self.site = None + self.destinationDir = None + + def getMode(self): + return self.mode + + def setMode(self, mode): + self.mode = mode + + def getTemplate(self): + return self.template + + def setTemplate(self, template): + self.template = template + + def getSite(self): + return self.site + + def setSite(self, site): + self.site = site + + def getDestinationDir(self): + return self.destinationDir + + def setDestinationDir(self, destinationDir): + self.destinationDir = destinationDir + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExecuteIfpNetCDFGridRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExecuteIfpNetCDFGridRequest.py new file mode 100644 index 0000000..3d65f4b --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExecuteIfpNetCDFGridRequest.py @@ -0,0 +1,187 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to use AbstractGfeRequest and +# implement str(), repr() +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# xx/xx/?? dgilling Initial Creation. +# 03/13/13 1759 dgilling Add software history header. +# +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest +from dynamicserialize.dstypes.com.raytheon.uf.common.message import WsId + +class ExecuteIfpNetCDFGridRequest(AbstractGfeRequest): + + def __init__(self, outputFilename=None, parmList=[], databaseID=None, + startTime=None, endTime=None, mask=None, geoInfo=False, + compressFile=False, configFileName=None, compressFileFactor=0, + trim=False, krunch=False, userID=None, logFileName=None): + super(ExecuteIfpNetCDFGridRequest, self).__init__() + self.outputFilename = outputFilename + self.parmList = parmList + self.databaseID = databaseID + self.startTime = startTime + self.endTime = endTime + self.mask = mask + self.geoInfo = geoInfo + self.compressFile = compressFile + self.configFileName = configFileName + self.compressFileFactor = compressFileFactor + self.trim = trim + self.krunch = krunch + self.userID = userID + self.logFileName = logFileName + if self.userID is not None: + self.workstationID = WsId(progName='ifpnetCDF', userName=self.userID) + if self.databaseID is not None: + self.siteID = self.databaseID.getSiteId() + + def __str__(self): + retVal = "ExecuteIfpNetCDFGridRequest[" + retVal += "wokstationID: " + str(self.workstationID) + ", " + retVal += "siteID: " + str(self.siteID) + ", " + retVal += "outputFilename: " + str(self.outputFilename) + ", " + retVal += "parmList: " + str(self.parmList) + ", " + retVal += "databaseID: " + str(self.databaseID) + ", " + retVal += "startTime: " + str(self.startTime) + ", " + retVal += "endTime: " + str(self.endTime) + ", " + retVal += "mask: " + str(self.mask) + ", " + retVal += "geoInfo: " + str(self.geoInfo) + ", " + retVal += "compressFile: " + str(self.compressFile) + ", " + retVal += "configFileName: " + str(self.configFileName) + ", " + retVal += "compressFileFactor: " + str(self.compressFileFactor) + ", " + retVal += "trim: " + str(self.trim) + ", " + retVal += "krunch: " + str(self.krunch) + ", " + retVal += "userID: " + str(self.userID) + ", " + retVal += "logFileName: " + str(self.logFileName) + "]" + return retVal + + def __repr__(self): + retVal = "ExecuteIfpNetCDFGridRequest(" + retVal += "wokstationID=" + repr(self.workstationID) + ", " + retVal += "siteID=" + repr(self.siteID) + ", " + retVal += "outputFilename=" + repr(self.outputFilename) + ", " + retVal += "parmList=" + repr(self.parmList) + ", " + retVal += "databaseID=" + repr(self.databaseID) + ", " + retVal += "startTime=" + repr(self.startTime) + ", " + retVal += "endTime=" + repr(self.endTime) + ", " + retVal += "mask=" + repr(self.mask) + ", " + retVal += "geoInfo=" + repr(self.geoInfo) + ", " + retVal += "compressFile=" + repr(self.compressFile) + ", " + retVal += "configFileName=" + repr(self.configFileName) + ", " + retVal += "compressFileFactor=" + repr(self.compressFileFactor) + ", " + retVal += "trim=" + repr(self.trim) + ", " + retVal += "krunch=" + repr(self.krunch) + ", " + retVal += "userID=" + repr(self.userID) + ", " + retVal += "logFileName=" + repr(self.logFileName) + ")" + return retVal + + def getOutputFilename(self): + return self.outputFilename + + def setOutputFilename(self, outputFilename): + self.outputFilename = outputFilename + + def getParmList(self): + return self.parmList + + def setParmList(self, parmList): + self.parmList = parmList + + def getDatabaseID(self): + return self.databaseID + + def setDatabaseID(self, databaseID): + self.databaseID = databaseID + + def getStartTime(self): + return self.startTime + + def setStartTime(self, startTime): + self.startTime = startTime + + def getEndTime(self): + return self.endTime + + def setEndTime(self, endTime): + self.endTime = endTime + + def getMask(self): + return self.mask + + def setMask(self, mask): + self.mask = mask + + def getGeoInfo(self): + return self.geoInfo + + def setGeoInfo(self, geoInfo): + self.geoInfo = geoInfo + + def getCompressFile(self): + return self.compressFile + + def setCompressFile(self, compressFile): + self.compressFile = compressFile + + def getConfigFileName(self): + return self.configFileName + + def setConfigFileName(self, configFileName): + self.configFileName = configFileName + + def getCompressFileFactor(self): + return self.compressFileFactor + + def setCompressFileFactor(self, compressFileFactor): + self.compressFileFactor = compressFileFactor + + def getTrim(self): + return self.trim + + def setTrim(self, trim): + self.trim = trim + + def getKrunch(self): + return self.krunch + + def setKrunch(self, krunch): + self.krunch = krunch + + def getUserID(self): + return self.userID + + def setUserID(self, userID): + self.userID = userID + + def getLogFileName(self): + return self.logFileName + + def setLogFileName(self, logFileName): + self.logFileName = logFileName + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExecuteIscMosaicRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExecuteIscMosaicRequest.py new file mode 100644 index 0000000..f4ef0ff --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExecuteIscMosaicRequest.py @@ -0,0 +1,234 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to use AbstractGfeRequest and +# implement str(), repr() +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# xx/xx/?? dgilling Initial Creation. +# 03/13/13 1759 dgilling Add software history header. +# +# +# + + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest +from dynamicserialize.dstypes.com.raytheon.uf.common.message import WsId + +class ExecuteIscMosaicRequest(AbstractGfeRequest): + + def __init__(self, userID=None, databaseID=None, parmsToProcess=[], + blankOtherPeriods=False, startTime=None, endTime=None, + altMask=None, replaceOnly=False, eraseFirst=False, announce="", + renameWE=False, iscSends=False, inFiles=[], ignoreMask=False, + adjustTranslate=False, deleteInput=False, parmsToIgnore=[], + gridDelay=0.0, logFileName=None): + super(ExecuteIscMosaicRequest, self).__init__() + self.userID = userID + self.databaseID = databaseID + self.parmsToProcess = parmsToProcess + self.blankOtherPeriods = blankOtherPeriods + self.startTime = startTime + self.endTime = endTime + self.altMask = altMask + self.replaceOnly = replaceOnly + self.eraseFirst = eraseFirst + self.announce = announce + self.renameWE = renameWE + self.iscSends = iscSends + self.inFiles = inFiles + self.ignoreMask = ignoreMask + self.adjustTranslate = adjustTranslate + self.deleteInput = deleteInput + self.parmsToIgnore = parmsToIgnore + self.gridDelay = gridDelay + self.logFileName = logFileName + if self.userID is not None: + self.workstationID = WsId(progName='iscMosaic', userName=self.userID) + if self.databaseID is not None: + self.siteID = self.databaseID.getSiteId() + + def __str__(self): + retVal = "ExecuteIscMosaicRequest[" + retVal += "wokstationID: " + str(self.workstationID) + ", " + retVal += "siteID: " + str(self.siteID) + ", " + retVal += "userID: " + str(self.userID) + ", " + retVal += "databaseID: " + str(self.databaseID) + ", " + retVal += "parmsToProcess: " + str(self.parmsToProcess) + ", " + retVal += "blankOtherPeriods: " + str(self.blankOtherPeriods) + ", " + retVal += "startTime: " + str(self.startTime) + ", " + retVal += "endTime: " + str(self.endTime) + ", " + retVal += "altMask: " + str(self.altMask) + ", " + retVal += "replaceOnly: " + str(self.replaceOnly) + ", " + retVal += "eraseFirst: " + str(self.eraseFirst) + ", " + retVal += "announce: " + str(self.announce) + ", " + retVal += "renameWE: " + str(self.renameWE) + ", " + retVal += "iscSends: " + str(self.iscSends) + ", " + retVal += "inFiles: " + str(self.inFiles) + ", " + retVal += "ignoreMask: " + str(self.ignoreMask) + ", " + retVal += "adjustTranslate: " + str(self.adjustTranslate) + ", " + retVal += "deleteInput: " + str(self.deleteInput) + ", " + retVal += "parmsToIgnore: " + str(self.parmsToIgnore) + ", " + retVal += "gridDelay: " + str(self.gridDelay) + ", " + retVal += "logFileName: " + str(self.logFileName) + "]" + return retVal + + def __repr__(self): + retVal = "ExecuteIscMosaicRequest(" + retVal += "wokstationID= " + str(self.workstationID) + ", " + retVal += "siteID= " + str(self.siteID) + ", " + retVal += "userID= " + str(self.userID) + ", " + retVal += "databaseID= " + str(self.databaseID) + ", " + retVal += "parmsToProcess= " + str(self.parmsToProcess) + ", " + retVal += "blankOtherPeriods= " + str(self.blankOtherPeriods) + ", " + retVal += "startTime= " + str(self.startTime) + ", " + retVal += "endTime= " + str(self.endTime) + ", " + retVal += "altMask= " + str(self.altMask) + ", " + retVal += "replaceOnly= " + str(self.replaceOnly) + ", " + retVal += "eraseFirst= " + str(self.eraseFirst) + ", " + retVal += "announce= " + str(self.announce) + ", " + retVal += "renameWE= " + str(self.renameWE) + ", " + retVal += "iscSends= " + str(self.iscSends) + ", " + retVal += "inFiles= " + str(self.inFiles) + ", " + retVal += "ignoreMask= " + str(self.ignoreMask) + ", " + retVal += "adjustTranslate= " + str(self.adjustTranslate) + ", " + retVal += "deleteInput= " + str(self.deleteInput) + ", " + retVal += "parmsToIgnore= " + str(self.parmsToIgnore) + ", " + retVal += "gridDelay= " + str(self.gridDelay) + ", " + retVal += "logFileName= " + str(self.logFileName) + ")" + return retVal + + def getUserID(self): + return self.userID + + def setUserID(self, userID): + self.userID = userID + + def getDatabaseID(self): + return self.databaseID + + def setDatabaseID(self, databaseID): + self.databaseID = databaseID + + def getParmsToProcess(self): + return self.parmsToProcess + + def setParmsToProcess(self, parmsToProcess): + self.parmsToProcess = parmsToProcess + + def getBlankOtherPeriods(self): + return self.blankOtherPeriods + + def setBlankOtherPeriods(self, blankOtherPeriods): + self.blankOtherPeriods = blankOtherPeriods + + def getStartTime(self): + return self.startTime + + def setStartTime(self, startTime): + self.startTime = startTime + + def getEndTime(self): + return self.endTime + + def setEndTime(self, endTime): + self.endTime = endTime + + def getAltMask(self): + return self.altMask + + def setAltMask(self, altMask): + self.altMask = altMask + + def getReplaceOnly(self): + return self.replaceOnly + + def setReplaceOnly(self, replaceOnly): + self.replaceOnly = replaceOnly + + def getEraseFirst(self): + return self.eraseFirst + + def setEraseFirst(self, eraseFirst): + self.eraseFirst = eraseFirst + + def getAnnounce(self): + return self.announce + + def setAnnounce(self, announce): + self.announce = announce + + def getRenameWE(self): + return self.renameWE + + def setRenameWE(self, renameWE): + self.renameWE = renameWE + + def getIscSends(self): + return self.iscSends + + def setIscSends(self, iscSends): + self.iscSends = iscSends + + def getInFiles(self): + return self.inFiles + + def setInFiles(self, inFiles): + self.inFiles = inFiles + + def getIgnoreMask(self): + return self.ignoreMask + + def setIgnoreMask(self, ignoreMask): + self.ignoreMask = ignoreMask + + def getAdjustTranslate(self): + return self.adjustTranslate + + def setAdjustTranslate(self, adjustTranslate): + self.adjustTranslate = adjustTranslate + + def getDeleteInput(self): + return self.deleteInput + + def setDeleteInput(self, deleteInput): + self.deleteInput = deleteInput + + def getParmsToIgnore(self): + return self.parmsToIgnore + + def setParmsToIgnore(self, parmsToIgnore): + self.parmsToIgnore = parmsToIgnore + + def getGridDelay(self): + return self.gridDelay + + def setGridDelay(self, gridDelay): + self.gridDelay = gridDelay + + def getLogFileName(self): + return self.logFileName + + def setLogFileName(self, logFileName): + self.logFileName = logFileName diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExportGridsRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExportGridsRequest.py new file mode 100644 index 0000000..defa9e5 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ExportGridsRequest.py @@ -0,0 +1,79 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# +# A pure python implementation of com.raytheon.uf.common.dataplugin.gfe.request.ExportGridsRequest +# for use by the python implementation of DynamicSerialize. +# +# File auto-generated against equivalent DynamicSerialize Java class, but additional +# useful methods have been added. +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 04/05/13 dgilling Initial Creation. +# +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest + + +class ExportGridsRequest(AbstractGfeRequest): + + def __init__(self): + super(ExportGridsRequest, self).__init__() + self.site = None + self.mode = None + + def getSite(self): + return self.site + + def setSite(self, site): + self.site = site + + def getMode(self): + return self.mode + + def setMode(self, mode): + validValues = ['CRON', 'MANUAL', 'GRIB2'] + inputVal = str(mode).upper() + if inputVal in validValues: + self.mode = mode + else: + raise ValueError(inputVal + " not a valid ExportGridsMode value. Must be one of " + str(validValues)) + + def __str__(self): + retVal = "ExportGridsRequest[" + retVal += "wokstationID: " + str(self.workstationID) + ", " + retVal += "siteID: " + str(self.siteID) + ", " + retVal += "site: " + str(self.site) + ", " + retVal += "mode: " + str(self.mode) + "]" + return retVal + + def __repr__(self): + retVal = "ExportGridsRequest(" + retVal += "wokstationID=" + repr(self.workstationID) + ", " + retVal += "siteID=" + repr(self.siteID) + ", " + retVal += "site=" + repr(self.site) + ", " + retVal += "mode=" + repr(self.mode) + ")" + return retVal diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetASCIIGridsRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetASCIIGridsRequest.py new file mode 100644 index 0000000..fd8ab81 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetASCIIGridsRequest.py @@ -0,0 +1,68 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetASCIIGridsRequest(object): + + def __init__(self): + self.databaseIds = None + self.parmIds = None + self.timeRange = None + self.coordConversionString = None + self.workstationID = None + self.siteID = None + + def getDatabaseIds(self): + return self.databaseIds + + def setDatabaseIds(self, databaseIds): + self.databaseIds = databaseIds + + def getParmIds(self): + return self.parmIds + + def setParmIds(self, parmIds): + self.parmIds = parmIds + + def getTimeRange(self): + return self.timeRange + + def setTimeRange(self, timeRange): + self.timeRange = timeRange + + def getCoordConversionString(self): + return self.coordConversionString + + def setCoordConversionString(self, coordConversionString): + self.coordConversionString = coordConversionString + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetGridDataRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetGridDataRequest.py new file mode 100644 index 0000000..c041d7c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetGridDataRequest.py @@ -0,0 +1,63 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +import abc + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.server.request import GetGridRequest + + +class GetGridDataRequest(object): + __metaclass__ = abc.ABCMeta + + @abc.abstractmethod + def __init__(self): + self.requests = [] + self.workstationID = None + self.siteID = None + + def addRequest(self, gridDataReq): + if not isinstance(gridDataReq, GetGridRequest): + raise TypeError("Invalid request specified: " + str(type(gridDataReq)) + \ + ". Only GetGridRequests are supported.") + else: + self.requests.append(gridDataReq) + + def getRequests(self): + return self.requests + + def setRequests(self, requests): + del self.requests[:] + for req in requests: + self.addRequest(req) + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetGridInventoryRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetGridInventoryRequest.py new file mode 100644 index 0000000..d811702 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetGridInventoryRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetGridInventoryRequest(object): + + def __init__(self): + self.parmIds = None + self.workstationID = None + self.siteID = None + + def getParmIds(self): + return self.parmIds + + def setParmIds(self, parmIds): + self.parmIds = parmIds + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLatestDbTimeRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLatestDbTimeRequest.py new file mode 100644 index 0000000..85e495e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLatestDbTimeRequest.py @@ -0,0 +1,70 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to use AbstractGfeRequest and +# implement str(), repr() +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/22/13 2025 dgilling Initial Creation. +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import DatabaseID + + +class GetLatestDbTimeRequest(AbstractGfeRequest): + + def __init__(self, dbId=None): + super(GetLatestDbTimeRequest, self).__init__() + if dbId is not None and isinstance(dbId, DatabaseID): + self.dbId = dbId + self.siteID = dbId.getSiteId() + elif dbId is not None and not isinstance(dbId, DatabaseID): + raise TypeError( + "Attempt to construct GetLatestDbTimeRequest without providing a valid DatabaseID.") + + def __str__(self): + retVal = "GetLatestDbTimeRequest[" + retVal += "wokstationID: " + str(self.workstationID) + ", " + retVal += "siteID: " + str(self.siteID) + ", " + retVal += "dbId: " + str(self.dbId) + "]" + return retVal + + def __repr__(self): + retVal = "ExecuteIfpNetCDFGridRequest(" + retVal += "wokstationID=" + repr(self.workstationID) + ", " + retVal += "siteID=" + repr(self.siteID) + ", " + retVal += "dbId=" + repr(self.dbId) + ")" + return retVal + + def getDbId(self): + return self.dbId + + def setDbId(self, dbId): + if isinstance(dbId, DatabaseID): + self.dbId = dbId + else: + raise TypeError( + "Attempt to call GetLatestDbTimeRequest.setDbId() without providing a valid DatabaseID.") diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLatestModelDbIdRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLatestModelDbIdRequest.py new file mode 100644 index 0000000..e9f0fa2 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLatestModelDbIdRequest.py @@ -0,0 +1,63 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to use AbstractGfeRequest and +# implement str(), repr() +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/22/13 2025 dgilling Initial Creation. +# +# + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest + + +class GetLatestModelDbIdRequest(AbstractGfeRequest): + + def __init__(self, siteId=None, modelName=None): + super(GetLatestModelDbIdRequest, self).__init__() + if siteId is not None: + self.siteID = str(siteId) + if modelName is not None: + self.modelName = str(modelName) + + def __str__(self): + retVal = "GetLatestModelDbIdRequest[" + retVal += "wokstationID: " + str(self.workstationID) + ", " + retVal += "siteID: " + str(self.siteID) + ", " + retVal += "modelName: " + str(self.modelName) + "]" + return retVal + + def __repr__(self): + retVal = "ExecuteIfpNetCDFGridRequest(" + retVal += "wokstationID=" + repr(self.workstationID) + ", " + retVal += "siteID=" + repr(self.siteID) + ", " + retVal += "modelName=" + repr(self.modelName) + ")" + return retVal + + def getModelName(self): + return self.modelName + + def setModelName(self, modelName): + self.modelName = str(modelName) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLockTablesRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLockTablesRequest.py new file mode 100644 index 0000000..d8224bc --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetLockTablesRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetLockTablesRequest(object): + + def __init__(self): + self.requests = None + self.workstationID = None + self.siteID = None + + def getRequests(self): + return self.requests + + def setRequests(self, requests): + self.requests = requests + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetOfficialDbNameRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetOfficialDbNameRequest.py new file mode 100644 index 0000000..9632a3a --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetOfficialDbNameRequest.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetOfficialDbNameRequest(object): + + def __init__(self): + self.workstationID = None + self.siteID = None + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetParmListRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetParmListRequest.py new file mode 100644 index 0000000..ebb9396 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetParmListRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetParmListRequest(object): + + def __init__(self): + self.dbIds = None + self.workstationID = None + self.siteID = None + + def getDbIds(self): + return self.dbIds + + def setDbIds(self, dbIds): + self.dbIds = dbIds + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSelectTimeRangeRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSelectTimeRangeRequest.py new file mode 100644 index 0000000..24910d1 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSelectTimeRangeRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetSelectTimeRangeRequest(object): + + def __init__(self): + self.name = None + self.workstationID = None + self.siteID = None + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSingletonDbIdsRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSingletonDbIdsRequest.py new file mode 100644 index 0000000..81b84ff --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSingletonDbIdsRequest.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetSingletonDbIdsRequest(object): + + def __init__(self): + self.workstationID = None + self.siteID = None + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSiteTimeZoneInfoRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSiteTimeZoneInfoRequest.py new file mode 100644 index 0000000..71560b0 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GetSiteTimeZoneInfoRequest.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetSiteTimeZoneInfoRequest(object): + + def __init__(self): + self.workstationID = None + self.siteID = None + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GridLocRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GridLocRequest.py new file mode 100644 index 0000000..2197bd2 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/GridLocRequest.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GridLocRequest(object): + + def __init__(self): + self.workstationID = None + self.siteID = None + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/IscDataRecRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/IscDataRecRequest.py new file mode 100644 index 0000000..b2d4d44 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/IscDataRecRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class IscDataRecRequest(object): + + def __init__(self): + self.argString = None + self.workstationID = None + self.siteID = None + + def getArgString(self): + return self.argString + + def setArgString(self, argString): + self.argString = argString + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/LockChangeRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/LockChangeRequest.py new file mode 100644 index 0000000..e041cba --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/LockChangeRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class LockChangeRequest(object): + + def __init__(self): + self.requests = None + self.workstationID = None + self.siteID = None + + def getRequests(self): + return self.requests + + def setRequests(self, requests): + self.requests = requests + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ProcessReceivedConfRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ProcessReceivedConfRequest.py new file mode 100644 index 0000000..9099107 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ProcessReceivedConfRequest.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ProcessReceivedConfRequest(object): + + def __init__(self): + self.receivedConfFile = None + self.workstationID = None + self.siteID = None + + def getReceivedConfFile(self): + return self.receivedConfFile + + def setReceivedConfFile(self, receivedConfFile): + self.receivedConfFile = receivedConfFile + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID \ No newline at end of file diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ProcessReceivedDigitalDataRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ProcessReceivedDigitalDataRequest.py new file mode 100644 index 0000000..ca0e5a2 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ProcessReceivedDigitalDataRequest.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ProcessReceivedDigitalDataRequest(object): + + def __init__(self): + self.receivedConfFile = None + self.workstationID = None + self.siteID = None + + def getReceivedDataFile(self): + return self.receivedConfFile + + def setReceivedDataFile(self, receivedConfFile): + self.receivedConfFile = receivedConfFile + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID \ No newline at end of file diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/PurgeGfeGridsRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/PurgeGfeGridsRequest.py new file mode 100644 index 0000000..9fcf3b4 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/PurgeGfeGridsRequest.py @@ -0,0 +1,42 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest + +class PurgeGfeGridsRequest(AbstractGfeRequest): + + def __init__(self): + super(PurgeGfeGridsRequest, self).__init__() + self.databaseID = None + + def __str__(self): + retVal = "PurgeGfeGridsRequest[" + retVal += "wokstationID: " + str(self.workstationID) + ", " + retVal += "siteID: " + str(self.siteID) + ", " + retVal += "databaseID: " + str(self.databaseID) + "]" + return retVal + + def getDatabaseID(self): + return self.databaseID + + def setDatabaseID(self, databaseID): + self.databaseID = databaseID diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/SaveASCIIGridsRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/SaveASCIIGridsRequest.py new file mode 100644 index 0000000..1ff74b8 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/SaveASCIIGridsRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class SaveASCIIGridsRequest(object): + + def __init__(self): + self.asciiGridData = None + self.workstationID = None + self.siteID = None + + def getAsciiGridData(self): + return self.asciiGridData + + def setAsciiGridData(self, asciiGridData): + self.asciiGridData = asciiGridData + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ServiceBackupStatusUpdateRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ServiceBackupStatusUpdateRequest.py new file mode 100644 index 0000000..f559eac --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/ServiceBackupStatusUpdateRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ServiceBackupStatusUpdateRequest(object): + + def __init__(self): + self.statusMessage = None + self.workstationID = None + self.siteID = None + + def getStatusMessage(self): + return self.statusMessage + + def setStatusMessage(self, statusMessage): + self.statusMessage = statusMessage + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/SmartInitRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/SmartInitRequest.py new file mode 100644 index 0000000..15c2c50 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/SmartInitRequest.py @@ -0,0 +1,61 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class SmartInitRequest(object): + + def __init__(self): + self.moduleName = None + self.modelTime = None + self.calculateAll = None + self.workstationID = None + self.siteID = None + + def getModuleName(self): + return self.moduleName + + def setModuleName(self, moduleName): + self.moduleName = moduleName + + def getModelTime(self): + return self.modelTime + + def setModelTime(self, modelTime): + self.modelTime = modelTime + + def getCalculateAll(self): + return self.calculateAll + + def setCalculateAll(self, calculateAll): + self.calculateAll = calculateAll + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/__init__.py new file mode 100644 index 0000000..da186c3 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/request/__init__.py @@ -0,0 +1,78 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'AbstractGfeRequest', + 'CommitGridsRequest', + 'ConfigureTextProductsRequest', + 'ExecuteIfpNetCDFGridRequest', + 'ExecuteIscMosaicRequest', + 'ExportGridsRequest', + 'GetASCIIGridsRequest', + 'GetGridDataRequest', + 'GetGridInventoryRequest', + 'GetLatestDbTimeRequest', + 'GetLatestModelDbIdRequest', + 'GetLockTablesRequest', + 'GetOfficialDbNameRequest', + 'GetParmListRequest', + 'GetSelectTimeRangeRequest', + 'GetSingletonDbIdsRequest', + 'GetSiteTimeZoneInfoRequest', + 'GridLocRequest', + 'IscDataRecRequest', + 'LockChangeRequest', + 'ProcessReceivedConfRequest', + 'ProcessReceivedDigitalDataRequest', + 'PurgeGfeGridsRequest', + 'SaveASCIIGridsRequest', + 'ServiceBackupStatusUpdateRequest', + 'SmartInitRequest' + ] + +from AbstractGfeRequest import AbstractGfeRequest +from CommitGridsRequest import CommitGridsRequest +from ConfigureTextProductsRequest import ConfigureTextProductsRequest +from ExecuteIfpNetCDFGridRequest import ExecuteIfpNetCDFGridRequest +from ExecuteIscMosaicRequest import ExecuteIscMosaicRequest +from ExportGridsRequest import ExportGridsRequest +from GetASCIIGridsRequest import GetASCIIGridsRequest +from GetGridDataRequest import GetGridDataRequest +from GetGridInventoryRequest import GetGridInventoryRequest +from GetLatestDbTimeRequest import GetLatestDbTimeRequest +from GetLatestModelDbIdRequest import GetLatestModelDbIdRequest +from GetLockTablesRequest import GetLockTablesRequest +from GetOfficialDbNameRequest import GetOfficialDbNameRequest +from GetParmListRequest import GetParmListRequest +from GetSelectTimeRangeRequest import GetSelectTimeRangeRequest +from GetSingletonDbIdsRequest import GetSingletonDbIdsRequest +from GetSiteTimeZoneInfoRequest import GetSiteTimeZoneInfoRequest +from GridLocRequest import GridLocRequest +from IscDataRecRequest import IscDataRecRequest +from LockChangeRequest import LockChangeRequest +from ProcessReceivedConfRequest import ProcessReceivedConfRequest +from ProcessReceivedDigitalDataRequest import ProcessReceivedDigitalDataRequest +from PurgeGfeGridsRequest import PurgeGfeGridsRequest +from SaveASCIIGridsRequest import SaveASCIIGridsRequest +from ServiceBackupStatusUpdateRequest import ServiceBackupStatusUpdateRequest +from SmartInitRequest import SmartInitRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/__init__.py new file mode 100644 index 0000000..19d5e52 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/__init__.py @@ -0,0 +1,30 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'lock', + 'message', + 'notify', + 'request' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/Lock.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/Lock.py new file mode 100644 index 0000000..cd3995e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/Lock.py @@ -0,0 +1,76 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# +# File auto-generated against equivalent DynamicSerialize Java class +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# xx/xx/xxxx xxxxxxx Initial Creation. +# xx/xx/xxxx xxxx njensen Implemented __repr__. +# 06/12/2013 2099 dgilling Make class immutable, +# add getTimeRange(). +# +# + +import time + +from dynamicserialize.dstypes.com.raytheon.uf.common.time import TimeRange + + +class Lock(object): + + def __init__(self, parmId, wsId, startTime, endTime): + self.parmId = parmId + self.wsId = wsId + self.startTime = startTime + self.endTime = endTime + self.timeRange = None + + def getParmId(self): + return self.parmId + + def getWsId(self): + return self.wsId + + def getStartTime(self): + return self.startTime + + def getEndTime(self): + return self.endTime + + def getTimeRange(self): + if not self.timeRange: + start = self.startTime / 1000.0 + end = self.endTime / 1000.0 + self.timeRange = TimeRange(start, end) + return self.timeRange + + def __repr__(self): + t0 = time.gmtime(self.getStartTime() / 1000.0) + t1 = time.gmtime(self.getEndTime() / 1000.0) + format = '%b %d %y %H:%M:%S %Z' + msg = 'TR: (' + time.strftime(format, t0) + ', ' + time.strftime(format, t1) + msg += " WsId: " + str(self.wsId) + return msg + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/LockTable.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/LockTable.py new file mode 100644 index 0000000..4ed49a5 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/LockTable.py @@ -0,0 +1,55 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# Modified by njensen to add __repr__ + +class LockTable(object): + + def __init__(self): + self.locks = None + self.wsId = None + self.parmId = None + + def getLocks(self): + return self.locks + + def setLocks(self, locks): + self.locks = locks + + def getWsId(self): + return self.wsId + + def setWsId(self, wsId): + self.wsId = wsId + + def getParmId(self): + return self.parmId + + def setParmId(self, parmId): + self.parmId = parmId + + def __repr__(self): + msg = "ParmID: " + str(self.parmId) + msg += " LockTable WsId: " + self.wsId.toString() + for i in self.locks: + msg += "\n Lock: " + str(i) + return msg + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/__init__.py new file mode 100644 index 0000000..f852521 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/lock/__init__.py @@ -0,0 +1,30 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'Lock', + 'LockTable' + ] + +from Lock import Lock +from LockTable import LockTable + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/ServerMsg.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/ServerMsg.py new file mode 100644 index 0000000..2551aae --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/ServerMsg.py @@ -0,0 +1,33 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ServerMsg(object): + + def __init__(self): + self.message = None + + def getMessage(self): + return self.message + + def setMessage(self, message): + self.message = message + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/ServerResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/ServerResponse.py new file mode 100644 index 0000000..43f672e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/ServerResponse.py @@ -0,0 +1,65 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ServerResponse(object): + + def __init__(self): + self.messages = None + self.payload = None + self.notifications = None + + def getMessages(self): + return self.messages + + def setMessages(self, messages): + self.messages = messages + + def getPayload(self): + return self.payload + + def setPayload(self, payload): + self.payload = payload + + def getNotifications(self): + return self.notifications + + def setNotifications(self, notifications): + self.notifications = notifications + + def isOkay(self): + return (self.messages is None or len(self.messages) == 0) + + def message(self): + if (self.isOkay()): + return "" + else: + compMessage = "" + for serverMsg in self.messages: + compMessage += serverMsg.getMessage() + "\n" + + return compMessage + + def __str__(self): + return self.message() + + def __nonzero__(self): + return self.isOkay() \ No newline at end of file diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/__init__.py new file mode 100644 index 0000000..e76de01 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/message/__init__.py @@ -0,0 +1,30 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'ServerMsg', + 'ServerResponse' + ] + +from ServerMsg import ServerMsg +from ServerResponse import ServerResponse + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/DBInvChangeNotification.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/DBInvChangeNotification.py new file mode 100644 index 0000000..2cec637 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/DBInvChangeNotification.py @@ -0,0 +1,61 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# Modified by njensen to add __repr__ + +class DBInvChangeNotification(object): + + def __init__(self): + self.inventory = None + self.additions = None + self.deletions = None + self.siteID = None + + def getInventory(self): + return self.inventory + + def setInventory(self, inventory): + self.inventory = inventory + + def getAdditions(self): + return self.additions + + def setAdditions(self, additions): + self.additions = additions + + def getDeletions(self): + return self.deletions + + def setDeletions(self, deletions): + self.deletions = deletions + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + + def __repr__(self): + msg = 'Inventory' + str(self.inventory) + '\n' + msg += 'Additions' + str(self.additions) + '\n' + msg += 'Deletions' + str(self.deletions) + return msg + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/GfeNotification.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/GfeNotification.py new file mode 100644 index 0000000..4036121 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/GfeNotification.py @@ -0,0 +1,38 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# File auto-generated against equivalent DynamicSerialize Java class + +class GfeNotification: + + def __init__(self): + self.siteID = None + self.sourceID = None + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + + + def getSourceID(self): + return self.sourceID + + def setSourceID(self, sourceID): + self.sourceID = sourceID diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/GridUpdateNotification.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/GridUpdateNotification.py new file mode 100644 index 0000000..c003345 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/GridUpdateNotification.py @@ -0,0 +1,71 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# Modified by njensen to add __repr__ + +class GridUpdateNotification(object): + + def __init__(self): + self.parmId = None + self.replacementTimeRange = None + self.workstationID = None + self.siteID = None + self.histories = None + + def getParmId(self): + return self.parmId + + def setParmId(self, parmId): + self.parmId = parmId + + def getReplacementTimeRange(self): + return self.replacementTimeRange + + def setReplacementTimeRange(self, replacementTimeRange): + self.replacementTimeRange = replacementTimeRange + + def getWorkstationID(self): + return self.workstationID + + def setWorkstationID(self, workstationID): + self.workstationID = workstationID + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + + def getHistories(self): + return self.histories + + def setHistories(self, histories): + self.histories = histories + + def __str__(self): + return self.__repr__() + + def __repr__(self): + msg = "ParmID: " + str(self.parmId) + msg += '\n' + "Replacement TimeRange: " + str(self.replacementTimeRange) + msg += '\n' + "Histories: " + str(self.histories) + return msg + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/LockNotification.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/LockNotification.py new file mode 100644 index 0000000..0472a76 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/LockNotification.py @@ -0,0 +1,44 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# Modified by njensen to add __repr__ + +class LockNotification(object): + + def __init__(self): + self.lockTable = None + self.siteID = None + + def getLockTable(self): + return self.lockTable + + def setLockTable(self, lockTable): + self.lockTable = lockTable + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + + def __repr__(self): + return str(self.lockTable) + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/UserMessageNotification.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/UserMessageNotification.py new file mode 100644 index 0000000..8ec848c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/UserMessageNotification.py @@ -0,0 +1,60 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class UserMessageNotification(object): + + def __init__(self): + self.category = None + self.priority = None + self.message = None + self.siteID = None + + def getCategory(self): + return self.category + + def setCategory(self, category): + self.category = category + + def getPriority(self): + return self.priority + + def setPriority(self, priority): + self.priority = priority + + def getMessage(self): + return self.message + + def setMessage(self, message): + self.message = message + + def getSiteID(self): + return self.siteID + + def setSiteID(self, siteID): + self.siteID = siteID + + def __repr__(self): + msg = 'Message: ' + str(self.message) + '\n' + msg += 'Priority: ' + str(self.priority) + '\n' + msg += 'Category: ' + str(self.category) + '\n' + return msg + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/__init__.py new file mode 100644 index 0000000..b799893 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/notify/__init__.py @@ -0,0 +1,36 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'DBInvChangeNotification', + 'GfeNotification', + 'GridUpdateNotification', + 'LockNotification', + 'UserMessageNotification' + ] + +from DBInvChangeNotification import DBInvChangeNotification +from GfeNotification import GfeNotification +from GridUpdateNotification import GridUpdateNotification +from LockNotification import LockNotification +from UserMessageNotification import UserMessageNotification + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/CommitGridRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/CommitGridRequest.py new file mode 100644 index 0000000..8b42939 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/CommitGridRequest.py @@ -0,0 +1,54 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class CommitGridRequest(object): + + def __init__(self): + self.parmId = None + self.dbId = None + self.timeRange = None + self.clientSendStatus = False + + def getParmId(self): + return self.parmId + + def setParmId(self, parmId): + self.parmId = parmId + + def getDbId(self): + return self.dbId + + def setDbId(self, dbId): + self.dbId = dbId + + def getTimeRange(self): + return self.timeRange + + def setTimeRange(self, timeRange): + self.timeRange = timeRange + + def getClientSendStatus(self): + return self.clientSendStatus + + def setClientSendStatus(self, clientSendStatus): + self.clientSendStatus = bool(clientSendStatus) + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/GetGridRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/GetGridRequest.py new file mode 100644 index 0000000..ee19e1b --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/GetGridRequest.py @@ -0,0 +1,54 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.db.objects import GFERecord +from dynamicserialize.dstypes.com.raytheon.uf.common.message import WsId + + +class GetGridRequest(object): + + def __init__(self, parmId=None, trs=[]): + self.convertUnit = False + self.records = [] + self.parmId = parmId + if self.parmId is not None: + for tr in trs: + self.records.append(GFERecord(parmId, tr)) + + def getRecords(self): + return self.records + + def setRecords(self, records): + self.records = records + + def getParmId(self): + return self.parmId + + def setParmId(self, parmId): + self.parmId = parmId + + def getConvertUnit(self): + return self.convertUnit + + def setConvertUnit(self, convertUnit): + self.convertUnit = convertUnit + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/LockRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/LockRequest.py new file mode 100644 index 0000000..5733fb9 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/LockRequest.py @@ -0,0 +1,54 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class LockRequest(object): + + def __init__(self): + self.timeRange = None + self.parmId = None + self.dbId = None + self.mode = None + + def getTimeRange(self): + return self.timeRange + + def setTimeRange(self, timeRange): + self.timeRange = timeRange + + def getParmId(self): + return self.parmId + + def setParmId(self, parmId): + self.parmId = parmId + + def getDbId(self): + return self.dbId + + def setDbId(self, dbId): + self.dbId = dbId + + def getMode(self): + return self.mode + + def setMode(self, mode): + self.mode = mode + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/LockTableRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/LockTableRequest.py new file mode 100644 index 0000000..5e67b42 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/LockTableRequest.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class LockTableRequest(object): + + def __init__(self): + self.parmId = None + self.dbId = None + + def getParmId(self): + return self.parmId + + def setParmId(self, parmId): + self.parmId = parmId + + def getDbId(self): + return self.dbId + + def setDbId(self, dbId): + self.dbId = dbId + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/__init__.py new file mode 100644 index 0000000..7c56d14 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/server/request/__init__.py @@ -0,0 +1,34 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'CommitGridRequest', + 'GetGridRequest', + 'LockRequest', + 'LockTableRequest' + ] + +from CommitGridRequest import CommitGridRequest +from GetGridRequest import GetGridRequest +from LockRequest import LockRequest +from LockTableRequest import LockTableRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/AbstractGridSlice.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/AbstractGridSlice.py new file mode 100644 index 0000000..018662c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/AbstractGridSlice.py @@ -0,0 +1,53 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +import abc + + +class AbstractGridSlice(object): + __metaclass__ = abc.ABCMeta + + @abc.abstractmethod + def __init__(self): + self.validTime = None + self.gridParmInfo = None + self.gridDataHistory = None + + @abc.abstractmethod + def getNumPyGrid(self): + raise NotImplementedError + + def getValidTime(self): + return self.validTime + + def setValidTime(self, validTime): + self.validTime = validTime + + def getGridParmInfo(self): + return self.gridParmInfo + + def setGridParmInfo(self, gridParmInfo): + self.gridParmInfo = gridParmInfo + + def getGridDataHistory(self): + return self.gridDataHistory + + def setGridDataHistory(self, gridDataHistory): + self.gridDataHistory = gridDataHistory \ No newline at end of file diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/DiscreteGridSlice.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/DiscreteGridSlice.py new file mode 100644 index 0000000..100b510 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/DiscreteGridSlice.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.slice import AbstractGridSlice + + +class DiscreteGridSlice(AbstractGridSlice): + + def __init__(self): + super(DiscreteGridSlice, self).__init__() + self.discreteGrid = None + self.key = [] + + def getDiscreteGrid(self): + return self.discreteGrid + + def setDiscreteGrid(self, discreteGrid): + self.discreteGrid = discreteGrid + + def getNumPyGrid(self): + return (self.discreteGrid.getNumPyGrid(), self.key) + + def getKey(self): + return self.key + + def setKey(self, key): + self.key = key diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/PythonWeatherGridSlice.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/PythonWeatherGridSlice.py new file mode 100644 index 0000000..246902c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/PythonWeatherGridSlice.py @@ -0,0 +1,49 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.slice import AbstractGridSlice +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.weather import WeatherKey + + +class PythonWeatherGridSlice(AbstractGridSlice): + + def __init__(self): + super(PythonWeatherGridSlice, self).__init__() + self.weatherGrid = None + self.keys = [] + + def getNumPyGrid(self): + return (self.weatherGrid.getNumPyGrid(), self.keys) + + def getWeatherGrid(self): + return self.weatherGrid + + def setWeatherGrid(self, weatherGrid): + self.weatherGrid = weatherGrid + + def getKeys(self): + return self.keys + + def setKeys(self, keys): + del self.keys[:] + for key in keys: + self.keys.append(WeatherKey(subKeys=key)) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/ScalarGridSlice.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/ScalarGridSlice.py new file mode 100644 index 0000000..1adb169 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/ScalarGridSlice.py @@ -0,0 +1,38 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.slice import AbstractGridSlice + +class ScalarGridSlice(AbstractGridSlice): + + def __init__(self): + super(ScalarGridSlice, self).__init__() + self.scalarGrid = None + + def getNumPyGrid(self): + return self.scalarGrid.getNumPyGrid() + + def getScalarGrid(self): + return self.scalarGrid + + def setScalarGrid(self, scalarGrid): + self.scalarGrid = scalarGrid diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/VectorGridSlice.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/VectorGridSlice.py new file mode 100644 index 0000000..f109bfd --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/VectorGridSlice.py @@ -0,0 +1,45 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.slice import ScalarGridSlice + + +class VectorGridSlice(ScalarGridSlice): + + def __init__(self): + super(VectorGridSlice, self).__init__() + self.dirGrid = None + + def getNumPyGrid(self): + return (self.scalarGrid.getNumPyGrid(), self.dirGrid.getNumPyGrid()) + + def getDirGrid(self): + return self.dirGrid + + def setDirGrid(self, dirGrid): + self.dirGrid = dirGrid + + def getMagGrid(self): + return self.scalarGrid + + def setMagGrid(self, magGrid): + self.scalarGrid = magGrid diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/WeatherGridSlice.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/WeatherGridSlice.py new file mode 100644 index 0000000..d157151 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/WeatherGridSlice.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.slice import AbstractGridSlice + + +class WeatherGridSlice(AbstractGridSlice): + + def __init__(self): + super(WeatherGridSlice, self).__init__() + self.weatherGrid = None + self.keys = [] + + def getNumPyGrid(self): + pass + + def getWeatherGrid(self): + return self.weatherGrid + + def setWeatherGrid(self, weatherGrid): + self.weatherGrid = weatherGrid + + def getKeys(self): + return self.keys + + def setKeys(self, keys): + self.keys = keys diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/__init__.py new file mode 100644 index 0000000..18e5edc --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/slice/__init__.py @@ -0,0 +1,38 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'AbstractGridSlice', + 'DiscreteGridSlice', + 'PythonWeatherGridSlice', + 'ScalarGridSlice', + 'VectorGridSlice', + 'WeatherGridSlice' + ] + +from AbstractGridSlice import AbstractGridSlice +from DiscreteGridSlice import DiscreteGridSlice +from ScalarGridSlice import ScalarGridSlice +from PythonWeatherGridSlice import PythonWeatherGridSlice +from VectorGridSlice import VectorGridSlice +from WeatherGridSlice import WeatherGridSlice + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/WeatherKey.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/WeatherKey.py new file mode 100644 index 0000000..ea5c267 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/WeatherKey.py @@ -0,0 +1,69 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + + +SUBKEY_SEPARATOR = '^' + +class WeatherKey(object): +## FIXME: Implement WeatherSubKey and use it in this class when needed. ## + + def __init__(self, siteId="", subKeys=[]): + self.siteId = siteId + if type(subKeys) is str: + self.__parseString(str(subKeys)) + else: + self.subKeys = subKeys + + def __str__(self): + return self.__repr__() + + def __repr__(self): + return SUBKEY_SEPARATOR.join(self.subKeys) + + def __eq__(self, other): + if not isinstance(other, WeatherKey): + return False + return self.subKeys == self.subKeys + + def __ne__(self, other): + return (not self.__eq__(other)) + + def __hash__(self): + prime = 31 + result = 1 + result = prime * result + (0 if self.subKeys is None else hash(self.subKeys)) + return result + + def getSiteId(self): + return self.siteId + + def setSiteId(self, siteId): + self.siteId = siteId + + def getSubKeys(self): + return self.subKeys + + def setSubKeys(self, subKeys): + self.subKeys = subKeys + + def __parseString(self, subKeys): + self.subKeys = subKeys.split(SUBKEY_SEPARATOR) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/WeatherSubKey.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/WeatherSubKey.py new file mode 100644 index 0000000..682f1a8 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/WeatherSubKey.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +## TODO: Implement WeatherSubKey when it is explicitly needed. For now +# WeatherSubKeys will be list of str within the WeatherKey class. + +class WeatherSubKey(object): + + def __init__(self): + raise NotImplementedError("WeatherSubKey is not currently supported.") diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/__init__.py new file mode 100644 index 0000000..1b25034 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/weather/__init__.py @@ -0,0 +1,30 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'WeatherKey', + 'WeatherSubKey' + ] + +from WeatherKey import WeatherKey +from WeatherSubKey import WeatherSubKey + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/__init__.py new file mode 100644 index 0000000..eaa0c74 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'request' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/request/DeleteAllModelDataRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/request/DeleteAllModelDataRequest.py new file mode 100644 index 0000000..6bb7c6c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/request/DeleteAllModelDataRequest.py @@ -0,0 +1,33 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class DeleteAllModelDataRequest(object): + + def __init__(self, modelName=None): + self.modelName = modelName + + def getModelName(self): + return self.modelName + + def setModelName(self, modelName): + self.modelName = modelName + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/request/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/request/__init__.py new file mode 100644 index 0000000..1bfd9bf --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grib/request/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'DeleteAllModelDataRequest' + ] + +from DeleteAllModelDataRequest import DeleteAllModelDataRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/__init__.py new file mode 100644 index 0000000..eaa0c74 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'request' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/request/DeleteAllGridDataRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/request/DeleteAllGridDataRequest.py new file mode 100644 index 0000000..9c627ea --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/request/DeleteAllGridDataRequest.py @@ -0,0 +1,33 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class DeleteAllGridDataRequest(object): + + def __init__(self, modelName=None): + self.modelName = modelName + + def getModelName(self): + return self.modelName + + def setModelName(self, modelName): + self.modelName = modelName + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/request/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/request/__init__.py new file mode 100644 index 0000000..7b1a6ed --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/grid/request/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'DeleteAllGridDataRequest' + ] + +from DeleteAllGridDataRequest import DeleteAllGridDataRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/Level.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/Level.py new file mode 100644 index 0000000..c5a71a0 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/Level.py @@ -0,0 +1,90 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to add additional features to better +# match Java implementation. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/29/13 2023 dgilling Initial Creation. +# 02/12/14 2672 bsteffen Allow String constructor to parse floats. +# + + +import numpy +import re + +from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.level import MasterLevel + + +LEVEL_NAMING_REGEX = re.compile("^(\d*(?:\.\d*)?)(?:_(\d*(?:\.\d*)?))?([a-zA-Z]+)$") +INVALID_VALUE = numpy.float64(-999999) + +class Level(object): + + def __init__(self, levelString=None): + self.id = 0L + self.identifier = None + self.masterLevel = None + self.levelonevalue = INVALID_VALUE + self.leveltwovalue = INVALID_VALUE + + if levelString is not None: + matcher = LEVEL_NAMING_REGEX.match(str(levelString)) + if matcher is not None: + self.levelonevalue = numpy.float64(matcher.group(1)) + self.masterLevel = MasterLevel.MasterLevel(matcher.group(3)) + levelTwo = matcher.group(2) + if levelTwo: + self.leveltwovalue = numpy.float64(levelTwo) + + def getId(self): + return self.id + + def setId(self, id): + self.id = id + + def getMasterLevel(self): + return self.masterLevel + + def setMasterLevel(self, masterLevel): + self.masterLevel = masterLevel + + def getLevelonevalue(self): + return self.levelonevalue + + def setLevelonevalue(self, levelonevalue): + self.levelonevalue = numpy.float64(levelonevalue) + + def getLeveltwovalue(self): + return self.leveltwovalue + + def setLeveltwovalue(self, leveltwovalue): + self.leveltwovalue = numpy.float64(leveltwovalue) + + def getIdentifier(self): + return self.identifier + + def setIdentifier(self, identifier): + self.identifier = identifier + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/MasterLevel.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/MasterLevel.py new file mode 100644 index 0000000..409bae6 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/MasterLevel.py @@ -0,0 +1,71 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified post-generation to add additional features to better +# match Java implementation. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/29/13 2023 dgilling Initial Creation. +# +# + +class MasterLevel(object): + + def __init__(self, name=None): + self.name = name + self.description = None + self.unitString = None + self.type = None + self.identifier = None + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getDescription(self): + return self.description + + def setDescription(self, description): + self.description = description + + def getUnitString(self): + return self.unitString + + def setUnitString(self, unitString): + self.unitString = unitString + + def getType(self): + return self.type + + def setType(self, type): + self.type = type + + def getIdentifier(self): + return self.identifier + + def setIdentifier(self, identifier): + self.identifier = identifier + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/__init__.py new file mode 100644 index 0000000..61f1482 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/level/__init__.py @@ -0,0 +1,30 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'Level', + 'MasterLevel' + ] + +from Level import Level +from MasterLevel import MasterLevel + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/message/DataURINotificationMessage.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/message/DataURINotificationMessage.py new file mode 100644 index 0000000..34a07c1 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/message/DataURINotificationMessage.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class DataURINotificationMessage(object): + + def __init__(self): + self.dataURIs = None + self.ids = None + + def getDataURIs(self): + return self.dataURIs + + def setDataURIs(self, dataURIs): + self.dataURIs = dataURIs + + def getIds(self): + return self.ids + + def setIds(self, ids): + self.ids = ids + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/message/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/message/__init__.py new file mode 100644 index 0000000..4d79753 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/message/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'DataURINotificationMessage' + ] + +from DataURINotificationMessage import DataURINotificationMessage + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/__init__.py new file mode 100644 index 0000000..daea64e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'request', + 'response' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/request/GetRadarDataRecordRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/request/GetRadarDataRecordRequest.py new file mode 100644 index 0000000..97d5ba6 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/request/GetRadarDataRecordRequest.py @@ -0,0 +1,62 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# Aug 19, 2014 nabowle Generated + +import numpy + +class GetRadarDataRecordRequest(object): + + def __init__(self): + self.timeRange = None + self.productCode = None + self.radarId = None + self.primaryElevationAngle = None + + def getTimeRange(self): + return self.timeRange + + def setTimeRange(self, timeRange): + self.timeRange = timeRange + + def getProductCode(self): + return self.productCode + + def setProductCode(self, productCode): + self.productCode = productCode + + def getRadarId(self): + return self.radarId + + def setRadarId(self, radarId): + self.radarId = radarId + + def getPrimaryElevationAngle(self): + return self.primaryElevationAngle + + def setPrimaryElevationAngle(self, primaryElevationAngle): + self.primaryElevationAngle = numpy.float64(primaryElevationAngle) + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/request/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/request/__init__.py new file mode 100644 index 0000000..b86afc0 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/request/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'GetRadarDataRecordRequest' + ] + +from GetRadarDataRecordRequest import GetRadarDataRecordRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/GetRadarDataRecordResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/GetRadarDataRecordResponse.py new file mode 100644 index 0000000..c5bfd9a --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/GetRadarDataRecordResponse.py @@ -0,0 +1,39 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# Aug 19, 2014 nabowle Generated + +class GetRadarDataRecordResponse(object): + + def __init__(self): + self.data = None + + def getData(self): + return self.data + + def setData(self, data): + self.data = data + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/RadarDataRecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/RadarDataRecord.py new file mode 100644 index 0000000..c9901f6 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/RadarDataRecord.py @@ -0,0 +1,88 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# Aug 19, 2014 nabowle Generated + +class RadarDataRecord(object): + + def __init__(self): + self.hdf5Data = None + self.trueElevationAngle = None + self.elevationNumber = None + self.elevation = None + self.longitude = None + self.latitude = None + self.dataTime = None + self.volumeCoveragePattern = None + + def getHdf5Data(self): + return self.hdf5Data + + def setHdf5Data(self, hdf5Data): + self.hdf5Data = hdf5Data + + def getTrueElevationAngle(self): + return self.trueElevationAngle + + def setTrueElevationAngle(self, trueElevationAngle): + self.trueElevationAngle = trueElevationAngle + + def getElevationNumber(self): + return self.elevationNumber + + def setElevationNumber(self, elevationNumber): + self.elevationNumber = elevationNumber + + def getElevation(self): + return self.elevation + + def setElevation(self, elevation): + self.elevation = elevation + + def getLongitude(self): + return self.longitude + + def setLongitude(self, longitude): + self.longitude = longitude + + def getLatitude(self): + return self.latitude + + def setLatitude(self, latitude): + self.latitude = latitude + + def getDataTime(self): + return self.dataTime + + def setDataTime(self, dataTime): + self.dataTime = dataTime + + def getVolumeCoveragePattern(self): + return self.volumeCoveragePattern + + def setVolumeCoveragePattern(self, volumeCoveragePattern): + self.volumeCoveragePattern = volumeCoveragePattern + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/__init__.py new file mode 100644 index 0000000..69a045e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/radar/response/__init__.py @@ -0,0 +1,30 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'GetRadarDataRecordResponse', + 'RadarDataRecord' + ] + +from GetRadarDataRecordResponse import GetRadarDataRecordResponse +from RadarDataRecord import RadarDataRecord + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/__init__.py new file mode 100644 index 0000000..b9f43d8 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'dbsrv', + 'request' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/dbsrv/TextDBRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/dbsrv/TextDBRequest.py new file mode 100644 index 0000000..cd737c9 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/dbsrv/TextDBRequest.py @@ -0,0 +1,33 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class TextDBRequest(object): + + def __init__(self): + self.message = None + + def getMessage(self): + return self.message + + def setMessage(self, message): + self.message = message + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/dbsrv/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/dbsrv/__init__.py new file mode 100644 index 0000000..df5a6ad --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/dbsrv/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'TextDBRequest' + ] + +from TextDBRequest import TextDBRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/request/SubscriptionRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/request/SubscriptionRequest.py new file mode 100644 index 0000000..2374727 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/request/SubscriptionRequest.py @@ -0,0 +1,39 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# Sep 05, 2014 bclement Generated + +class SubscriptionRequest(object): + + def __init__(self): + self.message = None + + def getMessage(self): + return self.message + + def setMessage(self, message): + self.message = message + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/request/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/request/__init__.py new file mode 100644 index 0000000..b09a689 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/text/request/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'SubscriptionRequest' + ] + +from SubscriptionRequest import SubscriptionRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/Request.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/Request.py new file mode 100644 index 0000000..52f5c6b --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/Request.py @@ -0,0 +1,59 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# File auto-generated against equivalent DynamicSerialize Java class + +class Request(object): + + def __init__(self): + self.points = None + self.indices = None + self.minIndexForSlab = None + self.maxIndexForSlab = None + self.type = None + + def getPoints(self): + return self.points + + def setPoints(self, points): + self.points = points + + def getIndices(self): + return self.indices + + def setIndices(self, indices): + self.indices = indices + + def getMinIndexForSlab(self): + return self.minIndexForSlab + + def setMinIndexForSlab(self, minIndexForSlab): + self.minIndexForSlab = minIndexForSlab + + def getMaxIndexForSlab(self): + return self.maxIndexForSlab + + def setMaxIndexForSlab(self, maxIndexForSlab): + self.maxIndexForSlab = maxIndexForSlab + + def getType(self): + return self.type + + def setType(self, type): + self.type = type + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/StorageProperties.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/StorageProperties.py new file mode 100644 index 0000000..ed986b6 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/StorageProperties.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class StorageProperties(object): + + def __init__(self): + self.compression = None + self.chunked = None + + def getCompression(self): + return self.compression + + def setCompression(self, compression): + self.compression = compression + + def getChunked(self): + return self.chunked + + def setChunked(self, chunked): + self.chunked = chunked + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/StorageStatus.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/StorageStatus.py new file mode 100644 index 0000000..797553c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/StorageStatus.py @@ -0,0 +1,38 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# File auto-generated against equivalent DynamicSerialize Java class + +class StorageStatus(object): + + def __init__(self): + self.operationPerformed = None + self.indexOfAppend = None + + def getOperationPerformed(self): + return self.operationPerformed + + def setOperationPerformed(self, operationPerformed): + self.operationPerformed = operationPerformed + + def getIndexOfAppend(self): + return self.indexOfAppend + + def setIndexOfAppend(self, indexOfAppend): + self.indexOfAppend = indexOfAppend + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/__init__.py new file mode 100644 index 0000000..6f7521b --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/__init__.py @@ -0,0 +1,45 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Package definition for com.raytheon.uf.common.datastorage +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 08/31/10 njensen Initial Creation. +# +# +# + + +__all__ = [ + 'records', + 'Request', + 'StorageProperties', + 'StorageStatus', + ] + +from Request import Request +from StorageProperties import StorageProperties +from StorageStatus import StorageStatus diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/ByteDataRecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/ByteDataRecord.py new file mode 100644 index 0000000..2bcaba2 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/ByteDataRecord.py @@ -0,0 +1,108 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified by njensen + +class ByteDataRecord(object): + + def __init__(self): + self.byteData = None + self.name = None + self.dimension = None + self.sizes = None + self.maxSizes = None + self.props = None + self.minIndex = None + self.group = None + self.dataAttributes = None + self.fillValue = None + self.maxChunkSize = None + + def getByteData(self): + return self.byteData + + def setByteData(self, byteData): + self.byteData = byteData + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getDimension(self): + return self.dimension + + def setDimension(self, dimension): + self.dimension = dimension + + def getSizes(self): + return self.sizes + + def setSizes(self, sizes): + self.sizes = sizes + + def getMaxSizes(self): + return self.maxSizes + + def setMaxSizes(self, maxSizes): + self.maxSizes = maxSizes + + def getProps(self): + return self.props + + def setProps(self, props): + self.props = props + + def getMinIndex(self): + return self.minIndex + + def setMinIndex(self, minIndex): + self.minIndex = minIndex + + def getGroup(self): + return self.group + + def setGroup(self, group): + self.group = group + + def getDataAttributes(self): + return self.dataAttributes + + def setDataAttributes(self, dataAttributes): + self.dataAttributes = dataAttributes + + def getFillValue(self): + return self.fillValue + + def setFillValue(self, fillValue): + self.fillValue = fillValue + + def getMaxChunkSize(self): + return self.maxChunkSize + + def setMaxChunkSize(self, maxChunkSize): + self.maxChunkSize = maxChunkSize + + def retrieveDataObject(self): + return self.getByteData() + + def putDataObject(self, obj): + self.setByteData(obj) + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/FloatDataRecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/FloatDataRecord.py new file mode 100644 index 0000000..b9420fc --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/FloatDataRecord.py @@ -0,0 +1,108 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified by njensen + +class FloatDataRecord(object): + + def __init__(self): + self.floatData = None + self.name = None + self.dimension = None + self.sizes = None + self.maxSizes = None + self.props = None + self.minIndex = None + self.group = None + self.dataAttributes = None + self.fillValue = None + self.maxChunkSize = None + + def getFloatData(self): + return self.floatData + + def setFloatData(self, floatData): + self.floatData = floatData + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getDimension(self): + return self.dimension + + def setDimension(self, dimension): + self.dimension = dimension + + def getSizes(self): + return self.sizes + + def setSizes(self, sizes): + self.sizes = sizes + + def getMaxSizes(self): + return self.maxSizes + + def setMaxSizes(self, maxSizes): + self.maxSizes = maxSizes + + def getProps(self): + return self.props + + def setProps(self, props): + self.props = props + + def getMinIndex(self): + return self.minIndex + + def setMinIndex(self, minIndex): + self.minIndex = minIndex + + def getGroup(self): + return self.group + + def setGroup(self, group): + self.group = group + + def getDataAttributes(self): + return self.dataAttributes + + def setDataAttributes(self, dataAttributes): + self.dataAttributes = dataAttributes + + def getFillValue(self): + return self.fillValue + + def setFillValue(self, fillValue): + self.fillValue = fillValue + + def getMaxChunkSize(self): + return self.maxChunkSize + + def setMaxChunkSize(self, maxChunkSize): + self.maxChunkSize = maxChunkSize + + def retrieveDataObject(self): + return self.getFloatData() + + def putDataObject(self, obj): + self.setFloatData(obj) + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/IntegerDataRecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/IntegerDataRecord.py new file mode 100644 index 0000000..a8d2fd2 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/IntegerDataRecord.py @@ -0,0 +1,107 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified by njensen + +class IntegerDataRecord(object): + + def __init__(self): + self.intData = None + self.name = None + self.dimension = None + self.sizes = None + self.maxSizes = None + self.props = None + self.minIndex = None + self.group = None + self.dataAttributes = None + self.fillValue = None + self.maxChunkSize = None + + def getIntData(self): + return self.intData + + def setIntData(self, intData): + self.intData = intData + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getDimension(self): + return self.dimension + + def setDimension(self, dimension): + self.dimension = dimension + + def getSizes(self): + return self.sizes + + def setSizes(self, sizes): + self.sizes = sizes + + def getMaxSizes(self): + return self.maxSizes + + def setMaxSizes(self, maxSizes): + self.maxSizes = maxSizes + + def getProps(self): + return self.props + + def setProps(self, props): + self.props = props + + def getMinIndex(self): + return self.minIndex + + def setMinIndex(self, minIndex): + self.minIndex = minIndex + + def getGroup(self): + return self.group + + def setGroup(self, group): + self.group = group + + def getDataAttributes(self): + return self.dataAttributes + + def setDataAttributes(self, dataAttributes): + self.dataAttributes = dataAttributes + + def getFillValue(self): + return self.fillValue + + def setFillValue(self, fillValue): + self.fillValue = fillValue + + def getMaxChunkSize(self): + return self.maxChunkSize + + def setMaxChunkSize(self, maxChunkSize): + self.maxChunkSize = maxChunkSize + + def retrieveDataObject(self): + return self.getIntData() + + def putDataObject(self, obj): + self.setIntData(obj) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/LongDataRecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/LongDataRecord.py new file mode 100644 index 0000000..490074e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/LongDataRecord.py @@ -0,0 +1,108 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified by njensen + +class LongDataRecord(object): + + def __init__(self): + self.longData = None + self.name = None + self.dimension = None + self.sizes = None + self.maxSizes = None + self.props = None + self.minIndex = None + self.group = None + self.dataAttributes = None + self.fillValue = None + self.maxChunkSize = None + + def getLongData(self): + return self.longData + + def setLongData(self, longData): + self.longData = longData + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getDimension(self): + return self.dimension + + def setDimension(self, dimension): + self.dimension = dimension + + def getSizes(self): + return self.sizes + + def setSizes(self, sizes): + self.sizes = sizes + + def getMaxSizes(self): + return self.maxSizes + + def setMaxSizes(self, maxSizes): + self.maxSizes = maxSizes + + def getProps(self): + return self.props + + def setProps(self, props): + self.props = props + + def getMinIndex(self): + return self.minIndex + + def setMinIndex(self, minIndex): + self.minIndex = minIndex + + def getGroup(self): + return self.group + + def setGroup(self, group): + self.group = group + + def getDataAttributes(self): + return self.dataAttributes + + def setDataAttributes(self, dataAttributes): + self.dataAttributes = dataAttributes + + def getFillValue(self): + return self.fillValue + + def setFillValue(self, fillValue): + self.fillValue = fillValue + + def getMaxChunkSize(self): + return self.maxChunkSize + + def setMaxChunkSize(self, maxChunkSize): + self.maxChunkSize = maxChunkSize + + def retrieveDataObject(self): + return self.getLongData() + + def putDataObject(self, obj): + self.setLongData(obj) + \ No newline at end of file diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/ShortDataRecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/ShortDataRecord.py new file mode 100644 index 0000000..eaf5b82 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/ShortDataRecord.py @@ -0,0 +1,107 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified by njensen + +class ShortDataRecord(object): + + def __init__(self): + self.shortData = None + self.name = None + self.dimension = None + self.sizes = None + self.maxSizes = None + self.props = None + self.minIndex = None + self.group = None + self.dataAttributes = None + self.fillValue = None + self.maxChunkSize = None + + def getShortData(self): + return self.shortData + + def setShortData(self, shortData): + self.shortData = shortData + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getDimension(self): + return self.dimension + + def setDimension(self, dimension): + self.dimension = dimension + + def getSizes(self): + return self.sizes + + def setSizes(self, sizes): + self.sizes = sizes + + def getMaxSizes(self): + return self.maxSizes + + def setMaxSizes(self, maxSizes): + self.maxSizes = maxSizes + + def getProps(self): + return self.props + + def setProps(self, props): + self.props = props + + def getMinIndex(self): + return self.minIndex + + def setMinIndex(self, minIndex): + self.minIndex = minIndex + + def getGroup(self): + return self.group + + def setGroup(self, group): + self.group = group + + def getDataAttributes(self): + return self.dataAttributes + + def setDataAttributes(self, dataAttributes): + self.dataAttributes = dataAttributes + + def getFillValue(self): + return self.fillValue + + def setFillValue(self, fillValue): + self.fillValue = fillValue + + def getMaxChunkSize(self): + return self.maxChunkSize + + def setMaxChunkSize(self, maxChunkSize): + self.maxChunkSize = maxChunkSize + + def retrieveDataObject(self): + return self.getShortData() + + def putDataObject(self, obj): + self.setShortData(obj) \ No newline at end of file diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/StringDataRecord.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/StringDataRecord.py new file mode 100644 index 0000000..5364308 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/StringDataRecord.py @@ -0,0 +1,125 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# File auto-generated against equivalent DynamicSerialize Java class +# and then modified by njensen + +class StringDataRecord(object): + + def __init__(self): + self.stringData = None + self.maxLength = None + self.name = None + self.dimension = None + self.sizes = None + self.maxSizes = None + self.props = None + self.minIndex = None + self.group = None + self.dataAttributes = None + self.fillValue = None + self.maxChunkSize = None + self.numpyData = None + + def getStringData(self): + return self.stringData + + def setStringData(self, stringData): + self.stringData = stringData + + def getMaxLength(self): + return self.maxLength + + def setMaxLength(self, maxLength): + self.maxLength = maxLength + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getDimension(self): + return self.dimension + + def setDimension(self, dimension): + self.dimension = dimension + + def getSizes(self): + return self.sizes + + def setSizes(self, sizes): + self.sizes = sizes + + def getMaxSizes(self): + return self.maxSizes + + def setMaxSizes(self, maxSizes): + self.maxSizes = maxSizes + + def getProps(self): + return self.props + + def setProps(self, props): + self.props = props + + def getMinIndex(self): + return self.minIndex + + def setMinIndex(self, minIndex): + self.minIndex = minIndex + + def getGroup(self): + return self.group + + def setGroup(self, group): + self.group = group + + def getDataAttributes(self): + return self.dataAttributes + + def setDataAttributes(self, dataAttributes): + self.dataAttributes = dataAttributes + + def getFillValue(self): + return self.fillValue + + def setFillValue(self, fillValue): + self.fillValue = fillValue + + def getMaxChunkSize(self): + return self.maxChunkSize + + def setMaxChunkSize(self, maxChunkSize): + self.maxChunkSize = maxChunkSize + + def retrieveDataObject(self): + if not self.numpyData: + import numpy + from h5py import h5t + if self.maxLength: + dtype = h5t.py_create('S' + str(self.maxLength)) + else: + from pypies.impl.H5pyDataStore import vlen_str_type as dtype + #dtype.set_strpad(h5t.STR_NULLTERM) + numpyData = numpy.asarray(self.getStringData(), dtype) + return numpyData + + def putDataObject(self, obj): + self.setStringData(obj) + \ No newline at end of file diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/__init__.py new file mode 100644 index 0000000..df9a16c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/datastorage/records/__init__.py @@ -0,0 +1,50 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Package definition for com.raytheon.uf.common.datastorage.records +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 08/31/10 njensen Initial Creation. +# +# +# + + +__all__ = [ + 'ByteDataRecord', + 'FloatDataRecord', + 'IntegerDataRecord', + 'LongDataRecord', + 'ShortDataRecord', + 'StringDataRecord', + ] + +from ByteDataRecord import ByteDataRecord +from FloatDataRecord import FloatDataRecord +from IntegerDataRecord import IntegerDataRecord +from LongDataRecord import LongDataRecord +from ShortDataRecord import ShortDataRecord +from StringDataRecord import StringDataRecord \ No newline at end of file diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationContext.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationContext.py new file mode 100644 index 0000000..cd32b9c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationContext.py @@ -0,0 +1,56 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class LocalizationContext(object): + + def __init__(self): + self.localizationType = None + self.localizationLevel = None + self.contextName = None + + def getLocalizationType(self): + return self.localizationType + + def setLocalizationType(self, localizationType): + self.localizationType = localizationType + + def getLocalizationLevel(self): + return self.localizationLevel + + def setLocalizationLevel(self, localizationLevel): + self.localizationLevel = localizationLevel + + def getContextName(self): + return self.contextName + + def setContextName(self, contextName): + self.contextName = contextName + + def __str__(self): + return self.__repr__() + + def __repr__(self): + delimitedString = str(self.localizationType).lower() + "." + str(self.localizationLevel).lower() + if self.contextName is not None and self.contextName != "": + delimitedString += "." + self.contextName + return delimitedString + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationLevel.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationLevel.py new file mode 100644 index 0000000..3ec5294 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationLevel.py @@ -0,0 +1,75 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +knownLevels = {"BASE": {"text" : "BASE", + "order" : 0, + "systemLevel" : True, + }, + "CONFIGURED": {"text" : "CONFIGURED", + "order" : 250, + "systemLevel" : True, + }, + "SITE": {"text" : "SITE", + "order" : 500, + "systemLevel" : False, + }, + "USER": {"text" : "USER", + "order" : 1000, + "systemLevel" : False, + }, + "UNKNOWN": {"text" : "UNKNOWN", + "order" : -1, + } + } + + +class LocalizationLevel(object): + + def __init__(self, level, order=750, systemLevel=False): + if knownLevels.has_key(level.upper()): + self.text = level.upper() + self.order = knownLevels[self.text]["order"] + self.systemLevel = knownLevels[self.text]["systemLevel"] + else: + self.text = level.upper() + self.order = int(order) + self.systemLevel = systemLevel + + def getText(self): + return self.text + + def setText(self, text): + self.text = text + + def getOrder(self): + return self.order + + def setOrder(self, order): + self.order = int(order) + + def isSystemLevel(self): + return self.systemLevel + + def __str__(self): + return self.__repr__() + + def __repr__(self): + return str(self.text) + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationType.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationType.py new file mode 100644 index 0000000..35282c7 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/LocalizationType.py @@ -0,0 +1,37 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +class LocalizationType(object): + + def __init__(self, text=None): + self.text = text + + def __str__(self): + return self.__repr__() + + def __repr__(self): + return str(self.text) + + def getText(self): + return self.text + + def setText(self, text): + self.text = text + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/__init__.py new file mode 100644 index 0000000..25226e7 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/__init__.py @@ -0,0 +1,34 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'LocalizationContext', + 'LocalizationLevel', + 'LocalizationType', + 'msgs', + 'stream' + ] + +from LocalizationContext import LocalizationContext +from LocalizationLevel import LocalizationLevel +from LocalizationType import LocalizationType + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/DeleteUtilityCommand.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/DeleteUtilityCommand.py new file mode 100644 index 0000000..236a8e2 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/DeleteUtilityCommand.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class DeleteUtilityCommand(object): + + def __init__(self): + self.filename = None + self.context = None + self.myContextName = None + + def getFilename(self): + return self.filename + + def setFilename(self, filename): + self.filename = filename + + def getContext(self): + return self.context + + def setContext(self, context): + self.context = context + + def getMyContextName(self): + return self.myContextName + + def setMyContextName(self, contextName): + self.myContextName = str(contextName) + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/DeleteUtilityResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/DeleteUtilityResponse.py new file mode 100644 index 0000000..8eecbcd --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/DeleteUtilityResponse.py @@ -0,0 +1,59 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class DeleteUtilityResponse(object): + + def __init__(self): + self.context = None + self.pathName = None + self.errorText = None + self.timeStamp = None + + def getContext(self): + return self.context + + def setContext(self, context): + self.context = context + + def getPathName(self): + return self.pathName + + def setPathName(self, pathName): + self.pathName = pathName + + def getErrorText(self): + return self.errorText + + def setErrorText(self, errorText): + self.errorText = errorText + + def getTimeStamp(self): + return self.timeStamp + + def setTimeStamp(self, timeStamp): + self.timeStamp = timeStamp + + def getFormattedErrorMessage(self): + return "Error deleting " + self.getContextRelativePath() + ": " + self.getErrorText() + + def getContextRelativePath(self): + return str(self.getContext()) + "/" + self.getPathName() diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListResponseEntry.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListResponseEntry.py new file mode 100644 index 0000000..f18051a --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListResponseEntry.py @@ -0,0 +1,81 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ListResponseEntry(object): + + def __init__(self): + self.fileName = None + self.context = None + self.date = None + self.checksum = None + self.directory = None + self.protectedLevel = None + self.existsOnServer = None + + def getFileName(self): + return self.fileName + + def setFileName(self, fileName): + self.fileName = fileName + + def getContext(self): + return self.context + + def setContext(self, context): + self.context = context + + def getDate(self): + return self.date + + def setDate(self, date): + self.date = date + + def getChecksum(self): + return self.checksum + + def setChecksum(self, checksum): + self.checksum = checksum + + def getDirectory(self): + return self.directory + + def setDirectory(self, directory): + self.directory = directory + + def getProtectedFile(self): + return self.protectedLevel is not None + + def getProtectedLevel(self): + return self.protectedLevel + + def setProtectedLevel(self, protectedLevel): + self.protectedLevel = protectedLevel + + def getExistsOnServer(self): + return self.existsOnServer + + def setExistsOnServer(self, existsOnServer): + self.existsOnServer = existsOnServer + + def __str__(self): + return self.fileName + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListUtilityCommand.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListUtilityCommand.py new file mode 100644 index 0000000..777aa63 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListUtilityCommand.py @@ -0,0 +1,61 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ListUtilityCommand(object): + + def __init__(self): + self.subDirectory = None + self.recursive = None + self.filesOnly = None + self.localizedSite = None + self.context = None + + def getSubDirectory(self): + return self.subDirectory + + def setSubDirectory(self, subDirectory): + self.subDirectory = subDirectory + + def getRecursive(self): + return self.recursive + + def setRecursive(self, recursive): + self.recursive = recursive + + def getFilesOnly(self): + return self.filesOnly + + def setFilesOnly(self, filesOnly): + self.filesOnly = filesOnly + + def getLocalizedSite(self): + return self.localizedSite + + def setLocalizedSite(self, localizedSite): + self.localizedSite = localizedSite + + def getContext(self): + return self.context + + def setContext(self, context): + self.context = context + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListUtilityResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListUtilityResponse.py new file mode 100644 index 0000000..af68733 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/ListUtilityResponse.py @@ -0,0 +1,60 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ListUtilityResponse(object): + + def __init__(self): + self.entries = None + self.context = None + self.pathName = None + self.errorText = None + + def getEntries(self): + return self.entries + + def setEntries(self, entries): + self.entries = entries + + def getContext(self): + return self.context + + def setContext(self, context): + self.context = context + + def getPathName(self): + return self.pathName + + def setPathName(self, pathName): + self.pathName = pathName + + def getErrorText(self): + return self.errorText + + def setErrorText(self, errorText): + self.errorText = errorText + + def __str__(self): + if self.errorText is None: + return str(self.entries) + else: + return "Error retrieving file listing for " + self.pathName + ": " + \ + self.errorText diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/PrivilegedUtilityRequestMessage.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/PrivilegedUtilityRequestMessage.py new file mode 100644 index 0000000..971920b --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/PrivilegedUtilityRequestMessage.py @@ -0,0 +1,42 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from dynamicserialize.dstypes.com.raytheon.uf.common.plugin.nwsauth.user import User + +class PrivilegedUtilityRequestMessage(object): + + def __init__(self): + self.commands = None + self.user = User() + + def getCommands(self): + return self.commands + + def setCommands(self, commands): + self.commands = commands + + def getUser(self): + return self.user + + def setUser(self, user): + self.user = user + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/UtilityRequestMessage.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/UtilityRequestMessage.py new file mode 100644 index 0000000..a62fa65 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/UtilityRequestMessage.py @@ -0,0 +1,33 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class UtilityRequestMessage(object): + + def __init__(self): + self.commands = None + + def getCommands(self): + return self.commands + + def setCommands(self, commands): + self.commands = commands + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/UtilityResponseMessage.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/UtilityResponseMessage.py new file mode 100644 index 0000000..6d20f57 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/UtilityResponseMessage.py @@ -0,0 +1,33 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class UtilityResponseMessage(object): + + def __init__(self): + self.responses = None + + def getResponses(self): + return self.responses + + def setResponses(self, responses): + self.responses = responses + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/__init__.py new file mode 100644 index 0000000..9a0dadb --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/msgs/__init__.py @@ -0,0 +1,42 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'DeleteUtilityCommand', + 'DeleteUtilityResponse', + 'ListResponseEntry', + 'ListUtilityCommand', + 'ListUtilityResponse', + 'PrivilegedUtilityRequestMessage', + 'UtilityRequestMessage', + 'UtilityResponseMessage' + ] + +from DeleteUtilityCommand import DeleteUtilityCommand +from DeleteUtilityResponse import DeleteUtilityResponse +from ListResponseEntry import ListResponseEntry +from ListUtilityCommand import ListUtilityCommand +from ListUtilityResponse import ListUtilityResponse +from PrivilegedUtilityRequestMessage import PrivilegedUtilityRequestMessage +from UtilityRequestMessage import UtilityRequestMessage +from UtilityResponseMessage import UtilityResponseMessage + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/AbstractLocalizationStreamRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/AbstractLocalizationStreamRequest.py new file mode 100644 index 0000000..149acac --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/AbstractLocalizationStreamRequest.py @@ -0,0 +1,62 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +import abc +import os +from dynamicserialize.dstypes.com.raytheon.uf.common.plugin.nwsauth.user import User + +class AbstractLocalizationStreamRequest(object): + __metaclass__ = abc.ABCMeta + + @abc.abstractmethod + def __init__(self): + self.context = None + self.fileName = None + self.myContextName = None + self.user = User() + + def getContext(self): + return self.context + + def setContext(self, context): + self.context = context + + def getFileName(self): + return self.fileName + + def setFileName(self, fileName): + if fileName[0] == os.sep: + fileName = fileName[1:] + self.fileName = fileName + + def getMyContextName(self): + return self.myContextName + + def setMyContextName(self, contextName): + self.myContextName = str(contextName) + + def getUser(self): + return self.user + + def setUser(self, user): + self.user = user + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/LocalizationStreamGetRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/LocalizationStreamGetRequest.py new file mode 100644 index 0000000..8196885 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/LocalizationStreamGetRequest.py @@ -0,0 +1,45 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +import os +from dynamicserialize.dstypes.com.raytheon.uf.common.localization.stream import AbstractLocalizationStreamRequest +from dynamicserialize.dstypes.com.raytheon.uf.common.plugin.nwsauth.user import User + +class LocalizationStreamGetRequest(AbstractLocalizationStreamRequest): + + def __init__(self): + super(LocalizationStreamGetRequest, self).__init__() + self.offset = None + self.numBytes = None + + def getOffset(self): + return self.offset + + def setOffset(self, offset): + self.offset = offset + + def getNumBytes(self): + return self.numBytes + + def setNumBytes(self, numBytes): + self.numBytes = numBytes + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/LocalizationStreamPutRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/LocalizationStreamPutRequest.py new file mode 100644 index 0000000..3876594 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/LocalizationStreamPutRequest.py @@ -0,0 +1,68 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +import os +import uuid +from dynamicserialize.dstypes.com.raytheon.uf.common.localization.stream import AbstractLocalizationStreamRequest +from dynamicserialize.dstypes.com.raytheon.uf.common.plugin.nwsauth.user import User + + +class LocalizationStreamPutRequest(AbstractLocalizationStreamRequest): + + def __init__(self): + super(LocalizationStreamPutRequest, self).__init__() + self.id = str(uuid.uuid4()) + self.bytes = None + self.end = None + self.offset = None + self.localizedSite = None + + def getId(self): + return self.id + + def setId(self, id): + self.id = id + + def getBytes(self): + return self.bytes + + def setBytes(self, bytes): + self.bytes = bytes + + def getEnd(self): + return self.end + + def setEnd(self, end): + self.end = end + + def getOffset(self): + return self.offset + + def setOffset(self, offset): + self.offset = offset + + def getLocalizedSite(self): + return self.localizedSite + + def setLocalizedSite(self, localizedSite): + self.localizedSite = localizedSite + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/__init__.py new file mode 100644 index 0000000..fcc614b --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/localization/stream/__init__.py @@ -0,0 +1,32 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'AbstractLocalizationStreamRequest', + 'LocalizationStreamGetRequest', + 'LocalizationStreamPutRequest' + ] + +from AbstractLocalizationStreamRequest import AbstractLocalizationStreamRequest +from LocalizationStreamGetRequest import LocalizationStreamGetRequest +from LocalizationStreamPutRequest import LocalizationStreamPutRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/__init__.py new file mode 100644 index 0000000..daea64e --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'request', + 'response' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/ChangeContextRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/ChangeContextRequest.py new file mode 100644 index 0000000..a0485e7 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/ChangeContextRequest.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ChangeContextRequest(object): + + def __init__(self): + self.action = None + self.contextName = None + + def getAction(self): + return self.action + + def setAction(self, action): + self.action = action + + def getContextName(self): + return self.contextName + + def setContextName(self, contextName): + self.contextName = contextName + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/PassThroughRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/PassThroughRequest.py new file mode 100644 index 0000000..ca444ba --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/PassThroughRequest.py @@ -0,0 +1,47 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class PassThroughRequest(object): + + def __init__(self): + self.request = None + self.hostname = None + self.jvmName = None + + def getRequest(self): + return self.request + + def setRequest(self, request): + self.request = request + + def getHostname(self): + return self.hostname + + def setHostname(self, hostname): + self.hostname = hostname + + def getJvmName(self): + return self.jvmName + + def setJvmName(self, jvmName): + self.jvmName = jvmName + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/__init__.py new file mode 100644 index 0000000..7541026 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/__init__.py @@ -0,0 +1,31 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'ChangeContextRequest', + 'PassThroughRequest', + 'diagnostic' + ] + +from ChangeContextRequest import ChangeContextRequest +from PassThroughRequest import PassThroughRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/GetClusterMembersRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/GetClusterMembersRequest.py new file mode 100644 index 0000000..0844daf --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/GetClusterMembersRequest.py @@ -0,0 +1,26 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetClusterMembersRequest(object): + + def __init__(self): + pass diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/GetContextsRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/GetContextsRequest.py new file mode 100644 index 0000000..06a89ac --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/GetContextsRequest.py @@ -0,0 +1,33 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetContextsRequest(object): + + def __init__(self): + self.contextState = None + + def getContextState(self): + return self.contextState + + def setContextState(self, contextState): + self.contextState = contextState + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/StatusRequest.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/StatusRequest.py new file mode 100644 index 0000000..03a06fb --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/StatusRequest.py @@ -0,0 +1,26 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class StatusRequest(object): + + def __init__(self): + pass diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/__init__.py new file mode 100644 index 0000000..c20ec58 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/request/diagnostic/__init__.py @@ -0,0 +1,32 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'GetClusterMembersRequest', + 'GetContextsRequest', + 'StatusRequest' + ] + +from GetClusterMembersRequest import GetClusterMembersRequest +from GetContextsRequest import GetContextsRequest +from StatusRequest import StatusRequest + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/__init__.py new file mode 100644 index 0000000..a43d147 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'diagnostic' + ] + + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/ClusterMembersResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/ClusterMembersResponse.py new file mode 100644 index 0000000..7966a2d --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/ClusterMembersResponse.py @@ -0,0 +1,39 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ClusterMembersResponse(object): + + def __init__(self): + self.status = None + + def getStatus(self): + return self.status + + def setStatus(self, status): + self.status = status + + def __repr__(self): + msg = '' + for x in self.status: + msg += str(x) + '\n' + return msg + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/ContextsResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/ContextsResponse.py new file mode 100644 index 0000000..ef011e8 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/ContextsResponse.py @@ -0,0 +1,43 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class ContextsResponse(object): + + def __init__(self): + self.contextState = None + self.contexts = None + + def getContextState(self): + return self.contextState + + def setContextState(self, contextState): + self.contextState = contextState + + def getContexts(self): + return self.contexts + + def setContexts(self, contexts): + self.contexts = contexts + + def __repr__(self): + return str(self.contexts) + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/StatusResponse.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/StatusResponse.py new file mode 100644 index 0000000..c3844b9 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/StatusResponse.py @@ -0,0 +1,50 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class StatusResponse(object): + + def __init__(self): + self.hostname = None + self.jvmName = None + self.statistics = None + + def getHostname(self): + return self.hostname + + def setHostname(self, hostname): + self.hostname = hostname + + def getJvmName(self): + return self.jvmName + + def setJvmName(self, jvmName): + self.jvmName = jvmName + + def getStatistics(self): + return self.statistics + + def setStatistics(self, statistics): + self.statistics = statistics + + def __repr__(self): + return self.hostname + ':' + self.jvmName + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/__init__.py new file mode 100644 index 0000000..7dff143 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/__init__.py @@ -0,0 +1,32 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'ClusterMembersResponse', + 'ContextsResponse', + 'StatusResponse' + ] + +from ClusterMembersResponse import ClusterMembersResponse +from ContextsResponse import ContextsResponse +from StatusResponse import StatusResponse + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/message/Body.py b/dynamicserialize/dstypes/com/raytheon/uf/common/message/Body.py new file mode 100644 index 0000000..a2ea8df --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/message/Body.py @@ -0,0 +1,33 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class Body(object): + + def __init__(self): + self.responses = None + + def getResponses(self): + return self.responses + + def setResponses(self, responses): + self.responses = responses + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/message/Header.py b/dynamicserialize/dstypes/com/raytheon/uf/common/message/Header.py new file mode 100644 index 0000000..3b8f48a --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/message/Header.py @@ -0,0 +1,43 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +from Property import Property + +class Header(object): + + def __init__(self, properties=None, multimap=None): + if properties is None: + self.properties = [] + else: + self.properties = properties + + if multimap is not None: + for k, l in multimap.iteritems(): + for v in l: + self.properties.append(Property(k, v)) + + def getProperties(self): + return self.properties + + def setProperties(self, properties): + self.properties = properties + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/message/Message.py b/dynamicserialize/dstypes/com/raytheon/uf/common/message/Message.py new file mode 100644 index 0000000..9d12331 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/message/Message.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class Message(object): + + def __init__(self, header=None, body=None): + self.header = header + self.body = body + + def getHeader(self): + return self.header + + def setHeader(self, header): + self.header = header + + def getBody(self): + return self.body + + def setBody(self, body): + self.body = body + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/message/Property.py b/dynamicserialize/dstypes/com/raytheon/uf/common/message/Property.py new file mode 100644 index 0000000..eac8d1c --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/message/Property.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class Property(object): + + def __init__(self, name=None, value=None): + self.name = name + self.value = value + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getValue(self): + return self.value + + def setValue(self, value): + self.value = value + diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/message/WsId.py b/dynamicserialize/dstypes/com/raytheon/uf/common/message/WsId.py new file mode 100644 index 0000000..0c5cba6 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/message/WsId.py @@ -0,0 +1,96 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# File auto-generated against equivalent DynamicSerialize Java class +# Modified by njensen to add __repr__ +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 04/25/12 545 randerso Repurposed the lockKey field as threadId +# 06/12/13 2099 dgilling Implemented toPrettyString(). +# + +import struct +import socket +import os +import pwd +import thread + +class WsId(object): + + def __init__(self, networkId=None, userName=None, progName=None): + self.networkId = networkId + if networkId is None: + self.networkId = str(struct.unpack('= self.start and timeArg.end <= self.end) + else: + convTime = self.__convertToDateTime(timeArg) + if type(convTime) is not datetime.datetime: + raise TypeError("Invalid type for argument time specified to TimeRange.contains().") + if self.duration() != 0: + return (convTime >= self.start and convTime < self.end) + return convTime == self.start + + def isValid(self): + return (self.start != self.end) + + def overlaps(self, timeRange): + return (timeRange.contains(self.start) or self.contains(timeRange.start)) + + def combineWith(self, timeRange): + if self.isValid() and timeRange.isValid(): + newStart = min(self.start, timeRange.start) + newEnd = max(self.end, timeRange.end) + return TimeRange(newStart, newEnd) + elif self.isValid(): + return self + + return timeRange + + @staticmethod + def allTimes(): + return TimeRange(0, MAX_TIME) diff --git a/dynamicserialize/dstypes/com/raytheon/uf/common/time/__init__.py b/dynamicserialize/dstypes/com/raytheon/uf/common/time/__init__.py new file mode 100644 index 0000000..2ca8389 --- /dev/null +++ b/dynamicserialize/dstypes/com/raytheon/uf/common/time/__init__.py @@ -0,0 +1,30 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'DataTime', + 'TimeRange' + ] + +from DataTime import DataTime +from TimeRange import TimeRange + diff --git a/dynamicserialize/dstypes/com/vividsolutions/__init__.py b/dynamicserialize/dstypes/com/vividsolutions/__init__.py new file mode 100644 index 0000000..28b918b --- /dev/null +++ b/dynamicserialize/dstypes/com/vividsolutions/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'jts' + ] + + diff --git a/dynamicserialize/dstypes/com/vividsolutions/jts/__init__.py b/dynamicserialize/dstypes/com/vividsolutions/jts/__init__.py new file mode 100644 index 0000000..8c68cc4 --- /dev/null +++ b/dynamicserialize/dstypes/com/vividsolutions/jts/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'geom' + ] + + diff --git a/dynamicserialize/dstypes/com/vividsolutions/jts/geom/Coordinate.py b/dynamicserialize/dstypes/com/vividsolutions/jts/geom/Coordinate.py new file mode 100644 index 0000000..55a64f1 --- /dev/null +++ b/dynamicserialize/dstypes/com/vividsolutions/jts/geom/Coordinate.py @@ -0,0 +1,46 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class Coordinate(object): + + def __init__(self, x=None, y=None): + self.x = x + self.y = y + + def getX(self): + return self.x + + def getY(self): + return self.y + + def setX(self, x): + self.x = x + + def setY(self, y): + self.y = y + + def __str__(self): + return str((self.x, self.y)) + + def __repr__(self): + return self.__str__() + diff --git a/dynamicserialize/dstypes/com/vividsolutions/jts/geom/Envelope.py b/dynamicserialize/dstypes/com/vividsolutions/jts/geom/Envelope.py new file mode 100644 index 0000000..2ad017e --- /dev/null +++ b/dynamicserialize/dstypes/com/vividsolutions/jts/geom/Envelope.py @@ -0,0 +1,68 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# This class is a dummy implementation of the +# com.vividsolutions.jts.geom.Envelope class. It was simply created to allow +# serialization/deserialization of IDataRequest objects from the Data Access +# Framework. This should be re-implemented if useful work needs to be +# performed against serialized Envelope objects. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 05/29/13 2023 dgilling Initial Creation. +# +# + +class Envelope(object): + + def __init__(self, env=None): + self.maxx = -1.0 + self.maxy = -1.0 + self.minx = 0.0 + self.miny = 0.0 + if env is not None: + (self.minx, self.miny, self.maxx, self.maxy) = env.bounds + + def getMaxX(self): + return self.maxx + + def getMaxY(self): + return self.maxy + + def getMinX(self): + return self.minx + + def getMinY(self): + return self.miny + + def setMaxX(self, value): + self.maxx = value + + def setMaxY(self, value): + self.maxy = value + + def setMinX(self, value): + self.minx = value + + def setMinY(self, value): + self.miny = value + diff --git a/dynamicserialize/dstypes/com/vividsolutions/jts/geom/Geometry.py b/dynamicserialize/dstypes/com/vividsolutions/jts/geom/Geometry.py new file mode 100644 index 0000000..c316419 --- /dev/null +++ b/dynamicserialize/dstypes/com/vividsolutions/jts/geom/Geometry.py @@ -0,0 +1,37 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# This class is a dummy implementation of the +# com.vividsolutions.jts.geom.Geometry class. It was simply created to allow +# serialization/deserialization of GridLocation objects. This should be +# reimplemented if useful work needs to be performed against serialized +# Geometry objects. + +class Geometry(object): + + def __init__(self): + self.binaryData = None + + def getBinaryData(self): + return self.binaryData + + def setBinaryData(self, data): + self.binaryData = data + diff --git a/dynamicserialize/dstypes/com/vividsolutions/jts/geom/__init__.py b/dynamicserialize/dstypes/com/vividsolutions/jts/geom/__init__.py new file mode 100644 index 0000000..f4e0734 --- /dev/null +++ b/dynamicserialize/dstypes/com/vividsolutions/jts/geom/__init__.py @@ -0,0 +1,32 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'Coordinate', + 'Envelope', + 'Geometry' + ] + +from Coordinate import Coordinate +from Envelope import Envelope +from Geometry import Geometry + diff --git a/dynamicserialize/dstypes/gov/__init__.py b/dynamicserialize/dstypes/gov/__init__.py new file mode 100644 index 0000000..c19855a --- /dev/null +++ b/dynamicserialize/dstypes/gov/__init__.py @@ -0,0 +1,8 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'noaa' + ] + + diff --git a/dynamicserialize/dstypes/gov/noaa/__init__.py b/dynamicserialize/dstypes/gov/noaa/__init__.py new file mode 100644 index 0000000..47f9c4d --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/__init__.py @@ -0,0 +1,8 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'nws' + ] + + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/__init__.py b/dynamicserialize/dstypes/gov/noaa/nws/__init__.py new file mode 100644 index 0000000..925c05f --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/__init__.py @@ -0,0 +1,8 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'ncep' + ] + + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/__init__.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/__init__.py new file mode 100644 index 0000000..3a99cc7 --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/__init__.py @@ -0,0 +1,8 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'common' + ] + + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/__init__.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/__init__.py new file mode 100644 index 0000000..c28322f --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/__init__.py @@ -0,0 +1,8 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'dataplugin' + ] + + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/__init__.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/__init__.py new file mode 100644 index 0000000..66b19b3 --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/__init__.py @@ -0,0 +1,10 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'gempak', + 'gpd', + 'pgen' + ] + + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/__init__.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/__init__.py new file mode 100644 index 0000000..a944c4e --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/__init__.py @@ -0,0 +1,8 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'request' + ] + + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridDataRequest.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridDataRequest.py new file mode 100644 index 0000000..839d5fb --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridDataRequest.py @@ -0,0 +1,62 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetGridDataRequest(object): + + def __init__(self): + self.pluginName = None + self.modelId = None + self.reftime = None + self.fcstsec = None + self.level1 = None + self.level2 = None + self.vcoord = None + self.parm = None + + def getPluginName(self): + return self.pluginName + + def setPluginName(self, pluginName): + self.pluginName = pluginName + + def getModelId(self): + return self.modelId + + def setModelId(self, modelId): + self.modelId = modelId + + def getReftime(self): + return self.reftime + + def setReftime(self, reftime): + self.reftime = reftime + + def getFcstsec(self): + return self.fcstsec + + def setFcstSec(self, fcstsec): + self.fcstsec = fcstsec + + def getLevel1(self): + return self.level1 + + def setLevel1(self, level1): + self.level1 = level1 + + def getLevel2(self): + return self.level2 + + def setLevel2(self, level2): + self.level2 = level2 + + def getVcoord(self): + return self.vcoord + + def setVcoord(self, vcoord): + self.vcoord = vcoord + + def getParm(self): + return self.parm + + def setParm(self, parm): + self.parm = parm diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridInfoRequest.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridInfoRequest.py new file mode 100644 index 0000000..760b710 --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridInfoRequest.py @@ -0,0 +1,21 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetGridInfoRequest(object): + + def __init__(self): + self.pluginName = None + self.modelId = None + + def getPluginName(self): + return self.pluginName + + def setPluginName(self, pluginName): + self.pluginName = pluginName + + def getModelId(self): + return self.modelId + + def setModelId(self, modelId): + self.modelId = modelId + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridNavRequest.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridNavRequest.py new file mode 100644 index 0000000..c86032f --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetGridNavRequest.py @@ -0,0 +1,21 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetGridNavRequest(object): + + def __init__(self): + self.pluginName = None + self.modelId = None + + def getPluginName(self): + return self.pluginName + + def setPluginName(self, pluginName): + self.pluginName = pluginName + + def getModelId(self): + return self.modelId + + def setModelId(self, modelId): + self.modelId = modelId + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetStationsRequest.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetStationsRequest.py new file mode 100644 index 0000000..57ef8c4 --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetStationsRequest.py @@ -0,0 +1,13 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetStationsRequest(object): + + def __init__(self): + self.pluginName = None + + def getPluginName(self): + return self.pluginName + + def setPluginName(self, pluginName): + self.pluginName = pluginName diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetTimesRequest.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetTimesRequest.py new file mode 100644 index 0000000..0c50bbc --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetTimesRequest.py @@ -0,0 +1,21 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetTimesRequest(object): + + def __init__(self): + self.pluginName = None + self.timeField = None + + def getPluginName(self): + return self.pluginName + + def setPluginName(self, pluginName): + self.pluginName = pluginName + + def getTimeField(self): + return self.timeField + + def setTimeField(self, timeField): + self.timeField = timeField + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetTimesResponse.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetTimesResponse.py new file mode 100644 index 0000000..439a1ef --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/GetTimesResponse.py @@ -0,0 +1,14 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class GetTimesResponse(object): + + def __init__(self): + self.times = None + + def getTimes(self): + return self.times + + def setTimes(self, times): + self.times = times + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/Station.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/Station.py new file mode 100644 index 0000000..971dcbf --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/Station.py @@ -0,0 +1,56 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class Station(object): + + def __init__(self): + self.stationId = None + self.wmoIndex = None + self.elevation = None + self.country = None + self.state = None + self.latitude = None + self.longitude = None + + def getStationId(self): + return self.stationId + + def setStationId(self, stationId): + self.stationId = stationId + + def getWmoIndex(self): + return self.wmoIndex + + def setWmoIndex(self, wmoIndex): + self.wmoIndex = wmoIndex + + def getElevation(self): + return self.elevation + + def setElevation(self, elevation): + self.elevation = elevation + + def getCountry(self): + return self.country + + def setCountry(self, country): + self.country = country + + def getState(self): + return self.state + + def setState(self, state): + self.state = state + + def getLatitude(self): + return self.latitude + + def setLatitude(self, latitude): + self.latitude = latitude + + def getLongitude(self): + return self.longitude + + def setLongitude(self, longitude): + self.longitude = longitude + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/StationDataRequest.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/StationDataRequest.py new file mode 100644 index 0000000..f428ded --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/StationDataRequest.py @@ -0,0 +1,42 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class StationDataRequest(object): + + def __init__(self): + self.pluginName = None + self.stationId = None + self.refTime = None + self.parmList = None + self.partNumber = None + + def getPluginName(self): + return self.pluginName + + def setPluginName(self, pluginName): + self.pluginName = pluginName + + def getStationId(self): + return self.stationId + + def setStationId(self, stationId): + self.stationId = stationId + + def getRefTime(self): + return self.refTime + + def setRefTime(self, refTime): + self.refTime = refTime + + def getParmList(self): + return self.parmList + + def setParmList(self, parmList): + self.parmList = parmList + + def getPartNumber(self): + return self.partNumber + + def setPartNumber(self, partNumber): + self.partNumber = partNumber + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/__init__.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/__init__.py new file mode 100644 index 0000000..615510b --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gempak/request/__init__.py @@ -0,0 +1,22 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'GetTimesRequest', + 'GetStationsRequest', + 'GetTimesResponse', + 'Station', + 'StationDataRequest', + 'GetGridDataRequest', + 'GetGridInfoRequest', + 'GetGridNavRequest' + ] + +from GetTimesRequest import GetTimesRequest +from GetStationsRequest import GetStationsRequest +from GetTimesResponse import GetTimesResponse +from Station import Station +from StationDataRequest import StationDataRequest +from GetGridDataRequest import GetGridDataRequest +from GetGridInfoRequest import GetGridInfoRequest +from GetGridNavRequest import GetGridNavRequest diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/__init__.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/__init__.py new file mode 100644 index 0000000..2e70919 --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/__init__.py @@ -0,0 +1,6 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'query' + ] diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/query/GenericPointDataReqMsg.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/query/GenericPointDataReqMsg.py new file mode 100644 index 0000000..56daf7a --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/query/GenericPointDataReqMsg.py @@ -0,0 +1,84 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class GenericPointDataReqMsg(object): + + def __init__(self): + self.reqType = None + self.refTime = None + self.productName = None + self.stnId = None + self.slat = None + self.slon = None + self.productVersion = None + self.querySpecifiedProductVersion = False + self.queryKey = None + self.gpdDataString = None + self.maxNumLevel = 1 + + def getReqType(self): + return self.reqType + + def setReqType(self, reqType): + self.reqType = reqType + + def getRefTime(self): + return self.refTime + + def setRefTime(self, refTime): + self.refTime = refTime + + def getProductName(self): + return self.productName + + def setProductName(self, productName): + self.productName = productName + + def getStnId(self): + return self.stnId + + def setStnId(self, stnId): + self.stnId = stnId + + def getSlat(self): + return self.slat + + def setSlat(self, slat): + self.slat = slat + + def getSlon(self): + return self.slon + + def setSlon(self, slon): + self.slon = slon + + def getMaxNumLevel(self): + return self.maxNumLevel + + def setMaxNumLevel(self, maxNumLevel): + self.maxNumLevel = maxNumLevel + + def getProductVersion(self): + return self.productVersion + + def setProductVersion(self, productVersion): + self.productVersion = productVersion + + def getQuerySpecifiedProductVersion(self): + return self.querySpecifiedProductVersion + + def setQuerySpecifiedProductVersion(self, querySpecifiedProductVersion): + self.querySpecifiedProductVersion = querySpecifiedProductVersion + + def getQueryKey(self): + return self.queryKey + + def setQueryKey(self, queryKey): + self.queryKey = queryKey + + def getGpdDataString(self): + return self.gpdDataString + + def setGpdDataString(self, gpdDataString): + self.gpdDataString = gpdDataString + \ No newline at end of file diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/query/__init__.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/query/__init__.py new file mode 100644 index 0000000..bfec6fc --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/gpd/query/__init__.py @@ -0,0 +1,8 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'GenericPointDataReqMsg' + ] + +from GenericPointDataReqMsg import GenericPointDataReqMsg diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/ActivityInfo.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/ActivityInfo.py new file mode 100644 index 0000000..8ce7a83 --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/ActivityInfo.py @@ -0,0 +1,77 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class ActivityInfo(object): + + def __init__(self): + self.activityName = None + self.activityType = None + self.activitySubtype = None + self.activityLabel = None + self.site = None + self.desk = None + self.forecaster = None + self.refTime = None + self.mode = None + self.status = None + + def getActivityName(self): + return self.activityName + + def setActivityName(self, activityName): + self.activityName = activityName + + def getActivityType(self): + return self.activityType + + def setActivityType(self, activityType): + self.activityType = activityType + + def getActivitySubtype(self): + return self.activitySubtype + + def setActivitySubtype(self, activitySubtype): + self.activitySubtype = activitySubtype + + def getActivityLabel(self): + return self.activityLabel + + def setActivityLabel(self, activityLabel): + self.activityLabel = activityLabel + + def getSite(self): + return self.site + + def setSite(self, site): + self.site = site + + def getDesk(self): + return self.desk + + def setDesk(self, desk): + self.desk = desk + + def getForecaster(self): + return self.forecaster + + def setForecaster(self, forecaster): + self.forecaster = forecaster + + def getRefTime(self): + return self.refTime + + def setRefTime(self, refTime): + self.refTime = refTime + + def getMode(self): + return self.mode + + def setMode(self, mode): + self.mode = mode + + def getStatus(self): + return self.status + + def setStatus(self, status): + self.status = status + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/DerivedProduct.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/DerivedProduct.py new file mode 100644 index 0000000..888e270 --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/DerivedProduct.py @@ -0,0 +1,28 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class DerivedProduct(object): + + def __init__(self): + self.name = None + self.productType = None + self.product = None + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getProductType(self): + return self.productType + + def setProductType(self, productType): + self.productType = productType + + def getProduct(self): + return self.product + + def setProduct(self, product): + self.product = product + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/ResponseMessageValidate.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/ResponseMessageValidate.py new file mode 100644 index 0000000..2d7dc5c --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/ResponseMessageValidate.py @@ -0,0 +1,42 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class ResponseMessageValidate(object): + + def __init__(self): + self.result = None + self.message = None + self.fileType = None + self.dataURI = None + self.validTime = None + + def getResult(self): + return self.result + + def setResult(self, result): + self.result = result + + def getMessage(self): + return self.message + + def setMessage(self, message): + self.message = message + + def getFileType(self): + return self.fileType + + def setFileType(self, fileType): + self.fileType = fileType + + def getDataURI(self): + return self.dataURI + + def setDataURI(self, dataURI): + self.dataURI = dataURI + + def getValidTime(self): + return self.validTime + + def setValidTime(self, validTime): + self.validTime = validTime + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/__init__.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/__init__.py new file mode 100644 index 0000000..479ce8a --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/__init__.py @@ -0,0 +1,14 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'ActivityInfo', + 'DerivedProduct', + 'ResponseMessageValidate', + 'request' + ] + +from ActivityInfo import ActivityInfo +from DerivedProduct import DerivedProduct +from ResponseMessageValidate import ResponseMessageValidate + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/RetrieveAllProductsRequest.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/RetrieveAllProductsRequest.py new file mode 100644 index 0000000..e3a1124 --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/RetrieveAllProductsRequest.py @@ -0,0 +1,14 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class RetrieveAllProductsRequest(object): + + def __init__(self): + self.dataURI = None + + def getDataURI(self): + return self.dataURI + + def setDataURI(self, dataURI): + self.dataURI = dataURI + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/StoreActivityRequest.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/StoreActivityRequest.py new file mode 100644 index 0000000..3f36740 --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/StoreActivityRequest.py @@ -0,0 +1,21 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class StoreActivityRequest(object): + + def __init__(self): + self.activityInfo = None + self.activityXML = None + + def getActivityInfo(self): + return self.activityInfo + + def setActivityInfo(self, activityInfo): + self.activityInfo = activityInfo + + def getActivityXML(self): + return self.activityXML + + def setActivityXML(self, activityXML): + self.activityXML = activityXML + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/StoreDerivedProductRequest.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/StoreDerivedProductRequest.py new file mode 100644 index 0000000..92d64a9 --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/StoreDerivedProductRequest.py @@ -0,0 +1,21 @@ + +# File auto-generated against equivalent DynamicSerialize Java class + +class StoreDerivedProductRequest(object): + + def __init__(self): + self.dataURI = None + self.productList = None + + def getDataURI(self): + return self.dataURI + + def setDataURI(self, dataURI): + self.dataURI = dataURI + + def getProductList(self): + return self.productList + + def setProductList(self, productList): + self.productList = productList + diff --git a/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/__init__.py b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/__init__.py new file mode 100644 index 0000000..c5c872b --- /dev/null +++ b/dynamicserialize/dstypes/gov/noaa/nws/ncep/common/dataplugin/pgen/request/__init__.py @@ -0,0 +1,13 @@ + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'RetrieveAllProductsRequest', + 'StoreActivityRequest', + 'StoreDerivedProductRequest' + ] + +from RetrieveAllProductsRequest import RetrieveAllProductsRequest +from StoreActivityRequest import StoreActivityRequest +from StoreDerivedProductRequest import StoreDerivedProductRequest + diff --git a/dynamicserialize/dstypes/java/__init__.py b/dynamicserialize/dstypes/java/__init__.py new file mode 100644 index 0000000..06f1a98 --- /dev/null +++ b/dynamicserialize/dstypes/java/__init__.py @@ -0,0 +1,30 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'awt', + 'sql', + 'lang', + 'util' + ] + + diff --git a/dynamicserialize/dstypes/java/awt/Point.py b/dynamicserialize/dstypes/java/awt/Point.py new file mode 100644 index 0000000..7e037b0 --- /dev/null +++ b/dynamicserialize/dstypes/java/awt/Point.py @@ -0,0 +1,56 @@ +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. + +# +# Custom python class representing a java.awt.Point. +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 08/31/10 njensen Initial Creation. +# +# +# + + +class Point(object): + + def __init__(self): + self.x = None + self.y = None + + def __str__(self): + return str((self.x, self.y)) + + def __repr__(self): + return self.__str__() + + def getX(self): + return self.x + + def getY(self): + return self.y + + def setX(self, x): + self.x = x + + def setY(self, y): + self.y = y + diff --git a/dynamicserialize/dstypes/java/awt/__init__.py b/dynamicserialize/dstypes/java/awt/__init__.py new file mode 100644 index 0000000..647ffcc --- /dev/null +++ b/dynamicserialize/dstypes/java/awt/__init__.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + + +# +# Package definition for java.awt +# +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 08/31/10 njensen Initial Creation. +# +# +# + + +__all__ = [ + 'Point', + ] + +from Point import Point diff --git a/dynamicserialize/dstypes/java/lang/StackTraceElement.py b/dynamicserialize/dstypes/java/lang/StackTraceElement.py new file mode 100644 index 0000000..65bf11a --- /dev/null +++ b/dynamicserialize/dstypes/java/lang/StackTraceElement.py @@ -0,0 +1,73 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class StackTraceElement(object): + + def __init__(self): + self.declaringClass = None + self.methodName = None + self.fileName = None + self.lineNumber = 0 + + def getDeclaringClass(self): + return self.declaringClass + + def setDeclaringClass(self, clz): + self.declaringClass = clz + + def getMethodName(self): + return self.methodName + + def setMethodName(self, methodName): + self.methodName = methodName + + def getFileName(self): + return self.fileName + + def setFileName(self, filename): + self.fileName = filename + + def getLineNumber(self): + return self.lineNumber + + def setLineNumber(self, lineNumber): + self.lineNumber = int(lineNumber) + + def isNativeMethod(self): + return (self.lineNumber == -2) + + def __str__(self): + return self.__repr__() + + def __repr__(self): + msg = self.declaringClass + "." + self.methodName + if self.isNativeMethod(): + msg += "(Native Method)" + elif self.fileName is not None and self.lineNumber >= 0: + msg += "(" + self.fileName + ":" + str(self.lineNumber) + ")" + elif self.fileName is not None: + msg += "(" + self.fileName + ")" + else: + msg += "(Unknown Source)" + return msg + + diff --git a/dynamicserialize/dstypes/java/lang/__init__.py b/dynamicserialize/dstypes/java/lang/__init__.py new file mode 100644 index 0000000..a256836 --- /dev/null +++ b/dynamicserialize/dstypes/java/lang/__init__.py @@ -0,0 +1,28 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'StackTraceElement' + ] + +from StackTraceElement import StackTraceElement + diff --git a/dynamicserialize/dstypes/java/sql/Timestamp.py b/dynamicserialize/dstypes/java/sql/Timestamp.py new file mode 100644 index 0000000..9678759 --- /dev/null +++ b/dynamicserialize/dstypes/java/sql/Timestamp.py @@ -0,0 +1,42 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +## NOTE: This is a dummy class that is only used for deserialization +## support. Further work required if it is need in the pure Python +## environment. + +class Timestamp(object): + + def __init__(self, time=None): + self.time = time + + def getTime(self): + return self.time + + def setTime(self, timeInMillis): + self.time = timeInMillis + + def __str__(self): + return self.__repr__() + + def __repr__(self): + from time import gmtime, strftime + + return strftime("%b %d %y %H:%M:%S GMT", gmtime(self.time/1000.0)) diff --git a/dynamicserialize/dstypes/java/sql/__init__.py b/dynamicserialize/dstypes/java/sql/__init__.py new file mode 100644 index 0000000..6a39458 --- /dev/null +++ b/dynamicserialize/dstypes/java/sql/__init__.py @@ -0,0 +1,27 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'Timestamp' + ] + +from Timestamp import Timestamp diff --git a/dynamicserialize/dstypes/java/util/Calendar.py b/dynamicserialize/dstypes/java/util/Calendar.py new file mode 100644 index 0000000..89b13b5 --- /dev/null +++ b/dynamicserialize/dstypes/java/util/Calendar.py @@ -0,0 +1,50 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +## +# Custom python class representing a java.util.GregorianCalendar. +# +# This is a stripped-down version of the class that only supports +# minimal methods for serialization. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 09/29/10 wldougher Initial Creation. +# +# +## +class Calendar(object): + """ +""" + def __init__(self): + self.time = None + + # Methods from the real class that we typically use + @staticmethod + def getInstance(): + return GregorianCalendar() + + def getTimeInMillis(self): + return self.time + + def setTimeInMillis(self, timeInMillis): + self.time = timeInMillis diff --git a/dynamicserialize/dstypes/java/util/Date.py b/dynamicserialize/dstypes/java/util/Date.py new file mode 100644 index 0000000..5f436cf --- /dev/null +++ b/dynamicserialize/dstypes/java/util/Date.py @@ -0,0 +1,40 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated against equivalent DynamicSerialize Java class + +class Date(object): + + def __init__(self): + self.time = None + + def getTime(self): + return self.time + + def setTime(self, timeInMillis): + self.time = timeInMillis + + def __str__(self): + return self.__repr__() + + def __repr__(self): + from time import gmtime, strftime + + return strftime("%b %d %y %H:%M:%S GMT", gmtime(self.time/1000.0)) \ No newline at end of file diff --git a/dynamicserialize/dstypes/java/util/EnumSet.py b/dynamicserialize/dstypes/java/util/EnumSet.py new file mode 100644 index 0000000..e6af671 --- /dev/null +++ b/dynamicserialize/dstypes/java/util/EnumSet.py @@ -0,0 +1,68 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +## +# NOTE: Please do not ever use this class unless you really must. It is not +# designed to be directly accessed from client code. Hide its use from end- +# users as best as you can. +## + +## +# IMPLEMENTATION DETAILS: +# This class is an attempt to simulate Java's EnumSet class. When creating +# a new instance of this class, you must specify the name of the Java enum +# contained within as this is needed for serialization. Do not append the +# "dynamicserialize.dstypes" portion of the Python package to the supplied +# class name as Java won't know what class that is when deserializing. +# +# Since Python has no concept of enums, this class cannot provide the value- +# checking that Java class does. Be very sure that you add only valid enum +# values to your EnumSet. +## + +import collections + + +class EnumSet(collections.MutableSet): + + def __init__(self, enumClassName, iterable=[]): + self.__enumClassName = enumClassName + self.__set = set(iterable) + + def __repr__(self): + return "EnumSet({0})".format(list(self.__set)) + + def __len__(self): + return len(self.__set) + + def __contains__(self, key): + return key in self.__set + + def __iter__(self): + return iter(self.__set) + + def add(self, value): + self.__set.add(value) + + def discard(self, value): + self.__set.discard(value) + + def getEnumClass(self): + return self.__enumClassName diff --git a/dynamicserialize/dstypes/java/util/GregorianCalendar.py b/dynamicserialize/dstypes/java/util/GregorianCalendar.py new file mode 100644 index 0000000..10c4323 --- /dev/null +++ b/dynamicserialize/dstypes/java/util/GregorianCalendar.py @@ -0,0 +1,50 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +## +# Custom python class representing a java.util.GregorianCalendar. +# +# This is a stripped-down version of the class that only supports +# minimal methods for serialization. +# +# SOFTWARE HISTORY +# +# Date Ticket# Engineer Description +# ------------ ---------- ----------- -------------------------- +# 09/29/10 wldougher Initial Creation. +# +# +## +class GregorianCalendar(object): + """ +""" + def __init__(self): + self.time = None + + # Methods from the real class that we typically use + @staticmethod + def getInstance(): + return GregorianCalendar() + + def getTimeInMillis(self): + return self.time + + def setTimeInMillis(self, timeInMillis): + self.time = timeInMillis diff --git a/dynamicserialize/dstypes/java/util/__init__.py b/dynamicserialize/dstypes/java/util/__init__.py new file mode 100644 index 0000000..4483d93 --- /dev/null +++ b/dynamicserialize/dstypes/java/util/__init__.py @@ -0,0 +1,34 @@ +## +# This software was developed and / or modified by Raytheon Company, +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA +# This software product contains export-restricted data whose +# export/transfer/disclosure is restricted by U.S. law. Dissemination +# to non-U.S. persons whether in the United States or abroad requires +# an export license or other authorization. +# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# +# See the AWIPS II Master Rights File ("Master Rights File.pdf") for +# further licensing information. +## + +# File auto-generated by PythonFileGenerator + +__all__ = [ + 'Calendar', + 'Date', + 'EnumSet', + 'GregorianCalendar' + ] + +from Calendar import Calendar +from Date import Date +from EnumSet import EnumSet +from GregorianCalendar import GregorianCalendar + diff --git a/dynamicserialize/setup.py b/dynamicserialize/setup.py new file mode 100644 index 0000000..8760879 --- /dev/null +++ b/dynamicserialize/setup.py @@ -0,0 +1,8 @@ +from distutils.core import setup + +setup( + name='dynamicserialize', + version='', + packages=['dynamicserialize'], + license='Creative Commons Attribution-Noncommercial-Share Alike license', +)