raytheon (omaha_16.2.2) and NCEP (ncep_16.2.2-n) updates for release 0.9.4

This commit is contained in:
Michael James 2016-07-13 13:50:10 -05:00
parent 254411e5e7
commit b8bbbb23a8
16 changed files with 206 additions and 19 deletions

View file

@ -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 FormattedDate
#
#
# SOFTWARE HISTORY
#
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 9/21/2015 4486 rjpeter Initial creation.
#
#
#
from dynamicserialize.dstypes.com.raytheon.uf.common.time import FormattedDate
ClassAdapter = 'com.raytheon.uf.common.time.FormattedDate'
def serialize(context, date):
context.writeI64(date.getTime())
def deserialize(context):
result = FormattedDate()
result.setTime(context.readI64())
return result

View file

@ -32,7 +32,7 @@
# 04/22/13 #1949 rjpeter Added LockTableAdapter # 04/22/13 #1949 rjpeter Added LockTableAdapter
# 02/06/14 #2672 bsteffen Added JTSEnvelopeAdapter # 02/06/14 #2672 bsteffen Added JTSEnvelopeAdapter
# 06/22/2015 #4573 randerso Added JobProgressAdapter # 06/22/2015 #4573 randerso Added JobProgressAdapter
# # 09/21/2015 #4486 rjpeter Added FormattedDateAdapter
# #
__all__ = [ __all__ = [
@ -43,6 +43,7 @@ __all__ = [
'GregorianCalendarAdapter', 'GregorianCalendarAdapter',
'ActiveTableModeAdapter', 'ActiveTableModeAdapter',
'DateAdapter', 'DateAdapter',
'FormattedDateAdapter',
'LocalizationLevelSerializationAdapter', 'LocalizationLevelSerializationAdapter',
'LocalizationTypeSerializationAdapter', 'LocalizationTypeSerializationAdapter',
'GeometryTypeAdapter', 'GeometryTypeAdapter',

View file

@ -23,6 +23,7 @@
# Date Ticket# Engineer Description # Date Ticket# Engineer Description
# ------------ ---------- ----------- -------------------------- # ------------ ---------- ----------- --------------------------
# 05/22/2015 4522 randerso Initial creation # 05/22/2015 4522 randerso Initial creation
# 03/17/2016 5426 randerso Add issueYear to primary key
# #
## ##
class ActiveTableKey(object): class ActiveTableKey(object):
@ -33,6 +34,7 @@ class ActiveTableKey(object):
self.sig = None self.sig = None
self.etn = None self.etn = None
self.ugcZone = None self.ugcZone = None
self.issueYear = None
def getOfficeid(self): def getOfficeid(self):
return self.officeid return self.officeid
@ -63,3 +65,9 @@ class ActiveTableKey(object):
def setUgcZone(self, ugcZone): def setUgcZone(self, ugcZone):
self.ugcZone = ugcZone self.ugcZone = ugcZone
def getIssueYear(self):
return self.issueYear
def setIssueYear(self, issueYear):
self.issueYear = issueYear

View file

@ -23,6 +23,7 @@
# Date Ticket# Engineer Description # Date Ticket# Engineer Description
# ------------ ---------- ----------- -------------------------- # ------------ ---------- ----------- --------------------------
# 05/22/2015 4522 randerso Initial creation (hand generated) # 05/22/2015 4522 randerso Initial creation (hand generated)
# 03/17/2016 5426 randerso Add issueYear to primary key
# #
## ##
@ -161,6 +162,9 @@ class ActiveTableRecord(object):
return self.issueTime return self.issueTime
def setIssueTime(self, issueTime): def setIssueTime(self, issueTime):
from datetime import datetime
date = datetime.utcfromtimestamp(issueTime.getTime()/1000)
self.key.setIssueYear(date.year)
self.issueTime = issueTime self.issueTime = issueTime
def getPurgeTime(self): def getPurgeTime(self):

View file

@ -19,6 +19,7 @@
## ##
# File auto-generated against equivalent DynamicSerialize Java class # File auto-generated against equivalent DynamicSerialize Java class
# Jul 27, 2015 4654 skorolev Added filters
class AlertVizRequest(object): class AlertVizRequest(object):
@ -29,6 +30,7 @@ class AlertVizRequest(object):
self.sourceKey = None self.sourceKey = None
self.category = None self.category = None
self.audioFile = None self.audioFile = None
self.filters = None
def getMessage(self): def getMessage(self):
return self.message return self.message
@ -66,3 +68,13 @@ class AlertVizRequest(object):
def setAudioFile(self, audioFile): def setAudioFile(self, audioFile):
self.audioFile = audioFile self.audioFile = audioFile
def getFilters(self):
return self.filters
def setFilters(self, filters):
if filters is None:
self.filters = {}
elif not(filters.has_key(None) or filters.values().count(None)>0 or filters.has_key('') or filters.values().count('')>0):
self.filters = filters
else:
raise ValueError('Filters must not contain None or empty keys or values: %s' % filters)

View file

@ -18,23 +18,27 @@
# further licensing information. # further licensing information.
## ##
# File auto-generated against equivalent DynamicSerialize Java class ##
# SOFTWARE HISTORY
#
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# xx/xx/?? dgilling Initial Creation.
# 12/02/15 5129 dgilling Refactor based on AbstractGfeRequest.
#
##
class GetSiteTimeZoneInfoRequest(object): from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe.request import AbstractGfeRequest
class GetSiteTimeZoneInfoRequest(AbstractGfeRequest):
def __init__(self): def __init__(self):
self.workstationID = None super(GetSiteTimeZoneInfoRequest, self).__init__()
self.siteID = None self.requestedSiteIDs = None
def getWorkstationID(self): def getRequestedSiteIDs(self):
return self.workstationID return self.requestedSiteIDs
def setWorkstationID(self, workstationID): def setRequestedSiteIDs(self, requestedSiteIDs):
self.workstationID = workstationID self.requestedSiteIDs = requestedSiteIDs
def getSiteID(self):
return self.siteID
def setSiteID(self, siteID):
self.siteID = siteID

View file

@ -22,7 +22,7 @@
__all__ = [ __all__ = [
'dbsrv', 'dbsrv',
'request' 'subscription'
] ]

View file

@ -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'
]

View file

@ -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 DeleteOrphansRequest(object):
def __init__(self):
self.filename = None
self.oldestDate = None
def getOldestDate(self):
return self.oldestDate
def setOldestDate(self, oldestDate):
self.oldestDate = oldestDate
def getFilename(self):
return self.filename
def setFilename(self, filename):
self.filename = filename

View file

@ -26,6 +26,7 @@ __all__ = [
'DatasetDataRequest', 'DatasetDataRequest',
'DatasetNamesRequest', 'DatasetNamesRequest',
'DeleteFilesRequest', 'DeleteFilesRequest',
'DeleteOrphansRequest',
'DeleteRequest', 'DeleteRequest',
'GroupsRequest', 'GroupsRequest',
'RepackRequest', 'RepackRequest',
@ -38,6 +39,7 @@ from CreateDatasetRequest import CreateDatasetRequest
from DatasetDataRequest import DatasetDataRequest from DatasetDataRequest import DatasetDataRequest
from DatasetNamesRequest import DatasetNamesRequest from DatasetNamesRequest import DatasetNamesRequest
from DeleteFilesRequest import DeleteFilesRequest from DeleteFilesRequest import DeleteFilesRequest
from DeleteOrphansRequest import DeleteOrphansRequest
from DeleteRequest import DeleteRequest from DeleteRequest import DeleteRequest
from GroupsRequest import GroupsRequest from GroupsRequest import GroupsRequest
from RepackRequest import RepackRequest from RepackRequest import RepackRequest

View file

@ -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.
##
# ----------------------------------------------------------------------------
#
# SOFTWARE HISTORY
#
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 09/21/2015 4486 rjpeter Initial creation.
#
##
from time import gmtime, strftime
from dynamicserialize.dstypes.java.util import Date
class FormattedDate(Date):
def __init__(self, timeInMillis=None):
super(FormattedDate, self).__init__(timeInMillis)
def __repr__(self):
return strftime("%Y-%m-%d %H:%M:%S.", gmtime(self.time/1000.0)) + '{:03d}'.format(self.time%1000)

View file

@ -22,9 +22,11 @@
__all__ = [ __all__ = [
'DataTime', 'DataTime',
'TimeRange' 'TimeRange',
'FormattedDate'
] ]
from DataTime import DataTime from DataTime import DataTime
from TimeRange import TimeRange from TimeRange import TimeRange
from FormattedDate import FormattedDate

View file

@ -5,7 +5,8 @@ __all__ = [
'ActivityInfo', 'ActivityInfo',
'DerivedProduct', 'DerivedProduct',
'ResponseMessageValidate', 'ResponseMessageValidate',
'request' 'request',
'response'
] ]
from ActivityInfo import ActivityInfo from ActivityInfo import ActivityInfo

View file

@ -4,10 +4,12 @@
__all__ = [ __all__ = [
'RetrieveAllProductsRequest', 'RetrieveAllProductsRequest',
'StoreActivityRequest', 'StoreActivityRequest',
'StoreDerivedProductRequest' 'StoreDerivedProductRequest',
'RetrieveActivityMapRequest'
] ]
from RetrieveAllProductsRequest import RetrieveAllProductsRequest from RetrieveAllProductsRequest import RetrieveAllProductsRequest
from StoreActivityRequest import StoreActivityRequest from StoreActivityRequest import StoreActivityRequest
from StoreDerivedProductRequest import StoreDerivedProductRequest from StoreDerivedProductRequest import StoreDerivedProductRequest
from RetrieveActivityMapRequest import RetrieveActivityMapRequest