mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -05:00
add dynamicserialize
This commit is contained in:
parent
6da99eae07
commit
0e85dacbe2
321 changed files with 16625 additions and 0 deletions
69
dynamicserialize/DynamicSerializationManager.py
Normal file
69
dynamicserialize/DynamicSerializationManager.py
Normal file
|
@ -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)
|
132
dynamicserialize/SelfDescribingBinaryProtocol.py
Normal file
132
dynamicserialize/SelfDescribingBinaryProtocol.py
Normal file
|
@ -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
|
||||
#
|
||||
# <B>Missing functionality:</B>
|
||||
# <UL>
|
||||
# <LI> Custom Serializers
|
||||
# <LI> Inheritance
|
||||
# </UL>
|
||||
#
|
||||
# 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))
|
||||
|
418
dynamicserialize/ThriftSerializationContext.py
Normal file
418
dynamicserialize/ThriftSerializationContext.py
Normal file
|
@ -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)
|
||||
|
58
dynamicserialize/__init__.py
Normal file
58
dynamicserialize/__init__.py
Normal file
|
@ -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)
|
51
dynamicserialize/adapters/ActiveTableModeAdapter.py
Normal file
51
dynamicserialize/adapters/ActiveTableModeAdapter.py
Normal file
|
@ -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
|
46
dynamicserialize/adapters/ByteBufferAdapter.py
Normal file
46
dynamicserialize/adapters/ByteBufferAdapter.py
Normal 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 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
|
||||
|
||||
|
||||
|
46
dynamicserialize/adapters/CalendarAdapter.py
Normal file
46
dynamicserialize/adapters/CalendarAdapter.py
Normal 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 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
|
50
dynamicserialize/adapters/CoordAdapter.py
Normal file
50
dynamicserialize/adapters/CoordAdapter.py
Normal file
|
@ -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
|
||||
|
44
dynamicserialize/adapters/DatabaseIDAdapter.py
Normal file
44
dynamicserialize/adapters/DatabaseIDAdapter.py
Normal file
|
@ -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
|
45
dynamicserialize/adapters/DateAdapter.py
Normal file
45
dynamicserialize/adapters/DateAdapter.py
Normal file
|
@ -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
|
57
dynamicserialize/adapters/EnumSetAdapter.py
Normal file
57
dynamicserialize/adapters/EnumSetAdapter.py
Normal file
|
@ -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)
|
46
dynamicserialize/adapters/FloatBufferAdapter.py
Normal file
46
dynamicserialize/adapters/FloatBufferAdapter.py
Normal 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 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
|
||||
|
||||
|
||||
|
56
dynamicserialize/adapters/GeometryTypeAdapter.py
Normal file
56
dynamicserialize/adapters/GeometryTypeAdapter.py
Normal file
|
@ -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
|
||||
|
46
dynamicserialize/adapters/GregorianCalendarAdapter.py
Normal file
46
dynamicserialize/adapters/GregorianCalendarAdapter.py
Normal 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 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
|
47
dynamicserialize/adapters/GridDataHistoryAdapter.py
Normal file
47
dynamicserialize/adapters/GridDataHistoryAdapter.py
Normal file
|
@ -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
|
51
dynamicserialize/adapters/JTSEnvelopeAdapter.py
Normal file
51
dynamicserialize/adapters/JTSEnvelopeAdapter.py
Normal file
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
@ -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)
|
||||
|
88
dynamicserialize/adapters/LockTableAdapter.py
Normal file
88
dynamicserialize/adapters/LockTableAdapter.py
Normal file
|
@ -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
|
44
dynamicserialize/adapters/ParmIDAdapter.py
Normal file
44
dynamicserialize/adapters/ParmIDAdapter.py
Normal file
|
@ -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
|
50
dynamicserialize/adapters/PointAdapter.py
Normal file
50
dynamicserialize/adapters/PointAdapter.py
Normal file
|
@ -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
|
||||
|
52
dynamicserialize/adapters/StackTraceElementAdapter.py
Normal file
52
dynamicserialize/adapters/StackTraceElementAdapter.py
Normal file
|
@ -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
|
||||
|
||||
|
46
dynamicserialize/adapters/TimeConstraintsAdapter.py
Normal file
46
dynamicserialize/adapters/TimeConstraintsAdapter.py
Normal 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 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
|
63
dynamicserialize/adapters/TimeRangeTypeAdapter.py
Normal file
63
dynamicserialize/adapters/TimeRangeTypeAdapter.py
Normal file
|
@ -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
|
44
dynamicserialize/adapters/TimestampAdapter.py
Normal file
44
dynamicserialize/adapters/TimestampAdapter.py
Normal file
|
@ -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
|
58
dynamicserialize/adapters/WsIdAdapter.py
Normal file
58
dynamicserialize/adapters/WsIdAdapter.py
Normal file
|
@ -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
|
||||
|
85
dynamicserialize/adapters/__init__.py
Normal file
85
dynamicserialize/adapters/__init__.py
Normal file
|
@ -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()
|
||||
|
29
dynamicserialize/dstypes/__init__.py
Normal file
29
dynamicserialize/dstypes/__init__.py
Normal file
|
@ -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'
|
||||
]
|
||||
|
||||
|
28
dynamicserialize/dstypes/com/__init__.py
Normal file
28
dynamicserialize/dstypes/com/__init__.py
Normal file
|
@ -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'
|
||||
]
|
||||
|
||||
|
27
dynamicserialize/dstypes/com/raytheon/__init__.py
Normal file
27
dynamicserialize/dstypes/com/raytheon/__init__.py
Normal 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__ = [
|
||||
'uf'
|
||||
]
|
||||
|
||||
|
27
dynamicserialize/dstypes/com/raytheon/uf/__init__.py
Normal file
27
dynamicserialize/dstypes/com/raytheon/uf/__init__.py
Normal 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__ = [
|
||||
'common'
|
||||
]
|
||||
|
||||
|
41
dynamicserialize/dstypes/com/raytheon/uf/common/__init__.py
Normal file
41
dynamicserialize/dstypes/com/raytheon/uf/common/__init__.py
Normal file
|
@ -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'
|
||||
]
|
||||
|
||||
|
|
@ -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)
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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;
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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)
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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'
|
||||
]
|
||||
|
||||
|
|
@ -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
|
||||
|
|
@ -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. ##
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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
|
|
@ -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'
|
||||
]
|
||||
|
||||
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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__()
|
|
@ -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__()
|
||||
|
|
@ -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__()
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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__()
|
||||
|
|
@ -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__()
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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'
|
||||
]
|
||||
|
||||
|
|
@ -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'
|
||||
]
|
||||
|
||||
|
|
@ -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'
|
||||
]
|
||||
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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']
|
||||
|
|
@ -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
|
||||
|
|
@ -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'
|
||||
]
|
||||
|
||||
|
|
@ -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))
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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 = "<Invalid>"
|
||||
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
|
||||
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue