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
# 02/06/14 #2672 bsteffen Added JTSEnvelopeAdapter
# 06/22/2015 #4573 randerso Added JobProgressAdapter
#
# 09/21/2015 #4486 rjpeter Added FormattedDateAdapter
#
__all__ = [
@ -43,6 +43,7 @@ __all__ = [
'GregorianCalendarAdapter',
'ActiveTableModeAdapter',
'DateAdapter',
'FormattedDateAdapter',
'LocalizationLevelSerializationAdapter',
'LocalizationTypeSerializationAdapter',
'GeometryTypeAdapter',

View file

@ -23,6 +23,7 @@
# Date Ticket# Engineer Description
# ------------ ---------- ----------- --------------------------
# 05/22/2015 4522 randerso Initial creation
# 03/17/2016 5426 randerso Add issueYear to primary key
#
##
class ActiveTableKey(object):
@ -33,6 +34,7 @@ class ActiveTableKey(object):
self.sig = None
self.etn = None
self.ugcZone = None
self.issueYear = None
def getOfficeid(self):
return self.officeid
@ -63,3 +65,9 @@ class ActiveTableKey(object):
def setUgcZone(self, 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
# ------------ ---------- ----------- --------------------------
# 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
def setIssueTime(self, issueTime):
from datetime import datetime
date = datetime.utcfromtimestamp(issueTime.getTime()/1000)
self.key.setIssueYear(date.year)
self.issueTime = issueTime
def getPurgeTime(self):

View file

@ -19,6 +19,7 @@
##
# File auto-generated against equivalent DynamicSerialize Java class
# Jul 27, 2015 4654 skorolev Added filters
class AlertVizRequest(object):
@ -29,6 +30,7 @@ class AlertVizRequest(object):
self.sourceKey = None
self.category = None
self.audioFile = None
self.filters = None
def getMessage(self):
return self.message
@ -66,3 +68,13 @@ class AlertVizRequest(object):
def setAudioFile(self, 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.
##
# 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):
self.workstationID = None
self.siteID = None
super(GetSiteTimeZoneInfoRequest, self).__init__()
self.requestedSiteIDs = None
def getWorkstationID(self):
return self.workstationID
def getRequestedSiteIDs(self):
return self.requestedSiteIDs
def setWorkstationID(self, workstationID):
self.workstationID = workstationID
def getSiteID(self):
return self.siteID
def setSiteID(self, siteID):
self.siteID = siteID
def setRequestedSiteIDs(self, requestedSiteIDs):
self.requestedSiteIDs = requestedSiteIDs

View file

@ -22,7 +22,7 @@
__all__ = [
'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',
'DatasetNamesRequest',
'DeleteFilesRequest',
'DeleteOrphansRequest',
'DeleteRequest',
'GroupsRequest',
'RepackRequest',
@ -38,6 +39,7 @@ from CreateDatasetRequest import CreateDatasetRequest
from DatasetDataRequest import DatasetDataRequest
from DatasetNamesRequest import DatasetNamesRequest
from DeleteFilesRequest import DeleteFilesRequest
from DeleteOrphansRequest import DeleteOrphansRequest
from DeleteRequest import DeleteRequest
from GroupsRequest import GroupsRequest
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__ = [
'DataTime',
'TimeRange'
'TimeRange',
'FormattedDate'
]
from DataTime import DataTime
from TimeRange import TimeRange
from FormattedDate import FormattedDate

View file

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

View file

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