Issue #2361 remove XML annotations and IDecoderGettable from a variety of plugins
Change-Id: Ib9b09659bbcca9b47c3e185e895d0deb1ba23739 Former-commit-id: 065be6691bf102699dc7ece3424f6972792c4d6f
This commit is contained in:
parent
0f8ecc7c48
commit
6c2ff04b69
52 changed files with 105 additions and 1009 deletions
|
@ -1,2 +0,0 @@
|
||||||
com.raytheon.uf.common.activetable.OperationalActiveTableRecord
|
|
||||||
com.raytheon.uf.common.activetable.PracticeActiveTableRecord
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.bufrascat.AScatObs
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.bufrmthdw.BufrMTHDWObs
|
|
|
@ -1,2 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.ncwf.BUFRncwf
|
|
||||||
com.raytheon.uf.common.dataplugin.ncwf.NCWFFeature
|
|
|
@ -19,8 +19,6 @@
|
||||||
**/
|
**/
|
||||||
package com.raytheon.uf.common.dataplugin.ncwf;
|
package com.raytheon.uf.common.dataplugin.ncwf;
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
import javax.persistence.Access;
|
import javax.persistence.Access;
|
||||||
import javax.persistence.AccessType;
|
import javax.persistence.AccessType;
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
|
@ -30,15 +28,9 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
||||||
|
@ -52,7 +44,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO Add Description
|
* Record implemtnation for National Convective Weather Forecast
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -66,6 +58,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 15, 2013 2361 njensen Remove XML annotations and IDecoderGettable
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -81,11 +74,9 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "bufrncwf", indexes = { @Index(name = "bufrncwf_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "bufrncwf", indexes = { @Index(name = "bufrncwf_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class BUFRncwf extends PersistablePluginDataObject implements
|
public class BUFRncwf extends PersistablePluginDataObject implements
|
||||||
ISpatialEnabled, IDecoderGettable, IPointData, IPersistable {
|
ISpatialEnabled, IPointData, IPersistable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -95,32 +86,26 @@ public class BUFRncwf extends PersistablePluginDataObject implements
|
||||||
|
|
||||||
@Embedded
|
@Embedded
|
||||||
@DataURI(position = 1, embedded = true)
|
@DataURI(position = 1, embedded = true)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private SurfaceObsLocation location;
|
private SurfaceObsLocation location;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private NCWFFeature detection;
|
private NCWFFeature detection;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private NCWFFeature forecast;
|
private NCWFFeature forecast;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Double stormDir;
|
private Double stormDir;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Double stormSpeed;
|
private Double stormSpeed;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Double stormTop;
|
private Double stormTop;
|
||||||
|
|
||||||
|
@ -233,36 +218,11 @@ public class BUFRncwf extends PersistablePluginDataObject implements
|
||||||
this.stormTop = stormTop;
|
this.stormTop = stormTop;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ISpatialObject getSpatialObject() {
|
public ISpatialObject getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getString(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getStrings(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Amount getValue(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Collection<Amount> getValues(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -20,31 +20,38 @@
|
||||||
package com.raytheon.uf.common.dataplugin.ncwf;
|
package com.raytheon.uf.common.dataplugin.ncwf;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
// import java.util.ArrayList;
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
|
|
||||||
import com.raytheon.uf.common.serialization.ISerializableObject;
|
|
||||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
import com.raytheon.uf.edex.decodertools.core.DecoderTools;
|
import com.raytheon.uf.edex.decodertools.core.DecoderTools;
|
||||||
import com.vividsolutions.jts.geom.Coordinate;
|
import com.vividsolutions.jts.geom.Coordinate;
|
||||||
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
/**
|
||||||
|
* Feature for NCWF
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
*
|
||||||
|
* SOFTWARE HISTORY
|
||||||
|
* Date Ticket# Engineer Description
|
||||||
|
* ------------ ---------- ----------- --------------------------
|
||||||
|
* --/--/---- jkorman Initial creation
|
||||||
|
* Oct 15, 2013 2361 njensen Remove XML annotations
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @author jkorman
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class NCWFFeature implements Serializable, ISerializableObject {
|
public class NCWFFeature implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Coordinate centroidLocation;
|
private Coordinate centroidLocation;
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
List<Coordinate> featureBoundary;
|
List<Coordinate> featureBoundary;
|
||||||
|
|
||||||
|
@ -59,7 +66,7 @@ public class NCWFFeature implements Serializable, ISerializableObject {
|
||||||
* Feature centroid longitude.
|
* Feature centroid longitude.
|
||||||
*/
|
*/
|
||||||
public NCWFFeature(Double lat, Double lon) {
|
public NCWFFeature(Double lat, Double lon) {
|
||||||
centroidLocation = DecoderTools.createCoordinate(lat,lon);
|
centroidLocation = DecoderTools.createCoordinate(lat, lon);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -68,7 +75,7 @@ public class NCWFFeature implements Serializable, ISerializableObject {
|
||||||
public Coordinate getCentroidLocation() {
|
public Coordinate getCentroidLocation() {
|
||||||
return centroidLocation;
|
return centroidLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
|
@ -76,7 +83,7 @@ public class NCWFFeature implements Serializable, ISerializableObject {
|
||||||
public double getCentroidLatitude() {
|
public double getCentroidLatitude() {
|
||||||
return DecoderTools.getCoordinateLatitude(centroidLocation);
|
return DecoderTools.getCoordinateLatitude(centroidLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
|
@ -84,7 +91,7 @@ public class NCWFFeature implements Serializable, ISerializableObject {
|
||||||
public double getCentroidLongitude() {
|
public double getCentroidLongitude() {
|
||||||
return DecoderTools.getCoordinateLongitude(centroidLocation);
|
return DecoderTools.getCoordinateLongitude(centroidLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param centroidLocation
|
* @param centroidLocation
|
||||||
* the centroidLocation to set
|
* the centroidLocation to set
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.bufrquikscat.QUIKScatObs
|
|
|
@ -20,7 +20,6 @@
|
||||||
package com.raytheon.uf.common.dataplugin.bufrquikscat;
|
package com.raytheon.uf.common.dataplugin.bufrquikscat;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
import javax.persistence.Access;
|
import javax.persistence.Access;
|
||||||
import javax.persistence.AccessType;
|
import javax.persistence.AccessType;
|
||||||
|
@ -31,15 +30,9 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
||||||
|
@ -54,7 +47,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
import com.vividsolutions.jts.geom.Geometry;
|
import com.vividsolutions.jts.geom.Geometry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Observation from QUIKScat
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -68,6 +61,7 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -83,11 +77,9 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "bufrquikscat", indexes = { @Index(name = "bufrquikscat_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "bufrquikscat", indexes = { @Index(name = "bufrquikscat_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class QUIKScatObs extends PersistablePluginDataObject implements
|
public class QUIKScatObs extends PersistablePluginDataObject implements
|
||||||
ISpatialEnabled, IDecoderGettable, IPointData, IPersistable {
|
ISpatialEnabled, IPointData, IPersistable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -96,49 +88,40 @@ public class QUIKScatObs extends PersistablePluginDataObject implements
|
||||||
private PointDataView pointDataView;
|
private PointDataView pointDataView;
|
||||||
|
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer satId;
|
private Integer satId;
|
||||||
|
|
||||||
@Embedded
|
@Embedded
|
||||||
@DataURI(position = 2, embedded = true)
|
@DataURI(position = 2, embedded = true)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private SurfaceObsLocation location;
|
private SurfaceObsLocation location;
|
||||||
|
|
||||||
// Text of the WMO header
|
// Text of the WMO header
|
||||||
@Column(length = 32)
|
@Column(length = 32)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private String wmoHeader;
|
private String wmoHeader;
|
||||||
|
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private Integer orbitNumber;
|
private Integer orbitNumber;
|
||||||
|
|
||||||
// The observation time.
|
// The observation time.
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private Calendar timeObs;
|
private Calendar timeObs;
|
||||||
|
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private Double windDir;
|
private Double windDir;
|
||||||
|
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private Double windSpd;
|
private Double windSpd;
|
||||||
|
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private Double probRain;
|
private Double probRain;
|
||||||
|
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private Integer rainIndex;
|
private Integer rainIndex;
|
||||||
|
@ -346,36 +329,11 @@ public class QUIKScatObs extends PersistablePluginDataObject implements
|
||||||
this.timeObs = timeObs;
|
this.timeObs = timeObs;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ISpatialObject getSpatialObject() {
|
public ISpatialObject getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getString(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getStrings(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Amount getValue(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Collection<Amount> getValues(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.bufrsigwx.SigWxData
|
|
|
@ -19,8 +19,6 @@
|
||||||
**/
|
**/
|
||||||
package com.raytheon.uf.common.dataplugin.bufrsigwx;
|
package com.raytheon.uf.common.dataplugin.bufrsigwx;
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
import javax.persistence.Access;
|
import javax.persistence.Access;
|
||||||
import javax.persistence.AccessType;
|
import javax.persistence.AccessType;
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
|
@ -30,15 +28,9 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.bufrsigwx.common.SigWxLayer;
|
import com.raytheon.uf.common.dataplugin.bufrsigwx.common.SigWxLayer;
|
||||||
|
@ -52,7 +44,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO Add Description
|
* Upper air pointdata for significant weather
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -66,6 +58,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations and IDecoderGettable
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -82,38 +75,31 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
@org.hibernate.annotations.Table(appliesTo = "bufrsigwx", indexes = { @Index(name = "bufrswigwx_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "bufrsigwx", indexes = { @Index(name = "bufrswigwx_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
public class SigWxData extends PersistablePluginDataObject implements
|
public class SigWxData extends PersistablePluginDataObject implements
|
||||||
IDecoderGettable, IPointData, IPersistable {
|
IPointData, IPersistable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private SigWxLayer wxLayer;
|
private SigWxLayer wxLayer;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DataURI(position = 2)
|
@DataURI(position = 2)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private SigWxType wxType;
|
private SigWxType wxType;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DataURI(position = 3)
|
@DataURI(position = 3)
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer key;
|
private Integer key;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer baseHeight;
|
private Integer baseHeight;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer topHeight;
|
private Integer topHeight;
|
||||||
|
|
||||||
|
@ -124,12 +110,10 @@ public class SigWxData extends PersistablePluginDataObject implements
|
||||||
// Text of the WMO header
|
// Text of the WMO header
|
||||||
@Column(length = 32)
|
@Column(length = 32)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private String wmoHeader;
|
private String wmoHeader;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private TropopauseLayerData tropData;
|
private TropopauseLayerData tropData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -256,31 +240,6 @@ public class SigWxData extends PersistablePluginDataObject implements
|
||||||
this.key = key;
|
this.key = key;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getString(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getStrings(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Amount getValue(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Collection<Amount> getValues(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.bufrssmi.SSMIScanData
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.cwa.CWARecord
|
|
|
@ -30,14 +30,9 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
||||||
|
@ -49,7 +44,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
import com.vividsolutions.jts.geom.Coordinate;
|
import com.vividsolutions.jts.geom.Coordinate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* A record for the CWA product
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -63,6 +58,7 @@ import com.vividsolutions.jts.geom.Coordinate;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 15, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -78,8 +74,6 @@ import com.vividsolutions.jts.geom.Coordinate;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "cwa", indexes = { @Index(name = "cwa_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "cwa", indexes = { @Index(name = "cwa_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class CWARecord extends PersistablePluginDataObject implements
|
public class CWARecord extends PersistablePluginDataObject implements
|
||||||
IPointData, IPersistable {
|
IPointData, IPersistable {
|
||||||
|
@ -92,27 +86,22 @@ public class CWARecord extends PersistablePluginDataObject implements
|
||||||
|
|
||||||
// Text of the WMO header
|
// Text of the WMO header
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String wmoHeader = "";
|
private String wmoHeader = "";
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private CWADimension dimension;
|
private CWADimension dimension;
|
||||||
|
|
||||||
@DataURI(position = 1, embedded = true)
|
@DataURI(position = 1, embedded = true)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String eventId;
|
private String eventId;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Coordinate[] coordinates;
|
private Coordinate[] coordinates;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String text;
|
private String text;
|
||||||
|
|
||||||
|
@ -159,11 +148,6 @@ public class CWARecord extends PersistablePluginDataObject implements
|
||||||
identifier = dataURI;
|
identifier = dataURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getText() {
|
public String getText() {
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.cwat.CWATRecord
|
|
|
@ -31,10 +31,6 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.geotools.coverage.grid.GeneralGridEnvelope;
|
import org.geotools.coverage.grid.GeneralGridEnvelope;
|
||||||
import org.geotools.coverage.grid.GridGeometry2D;
|
import org.geotools.coverage.grid.GridGeometry2D;
|
||||||
|
@ -42,7 +38,6 @@ import org.geotools.geometry.GeneralEnvelope;
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
import org.opengis.referencing.crs.ProjectedCRS;
|
import org.opengis.referencing.crs.ProjectedCRS;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
||||||
|
@ -81,6 +76,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 06, 2013 2228 njensen Use deserialize(byte[])
|
* Aug 06, 2013 2228 njensen Use deserialize(byte[])
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -96,8 +92,6 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "cwat", indexes = { @Index(name = "cwat_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "cwat", indexes = { @Index(name = "cwat_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class CWATRecord extends PersistablePluginDataObject implements
|
public class CWATRecord extends PersistablePluginDataObject implements
|
||||||
IPersistable, ISpatialEnabled {
|
IPersistable, ISpatialEnabled {
|
||||||
|
@ -109,44 +103,36 @@ public class CWATRecord extends PersistablePluginDataObject implements
|
||||||
@Column(length = 7)
|
@Column(length = 7)
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String icao;
|
private String icao;
|
||||||
|
|
||||||
@Column(length = 30)
|
@Column(length = 30)
|
||||||
@DataURI(position = 2)
|
@DataURI(position = 2)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String fieldName;
|
private String fieldName;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@PrimaryKeyJoinColumn
|
@PrimaryKeyJoinColumn
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private RadarStation spatialInfo;
|
private RadarStation spatialInfo;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer nx = 0;
|
public Integer nx = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer ny = 0;
|
public Integer ny = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer dx = 0;
|
public Integer dx = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer dy = 0;
|
public Integer dy = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer maxScti = 0;
|
public Integer maxScti = 0;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -363,17 +349,6 @@ public class CWATRecord extends PersistablePluginDataObject implements
|
||||||
return maxScti;
|
return maxScti;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the IDecoderGettable reference for this record.
|
|
||||||
*
|
|
||||||
* @return The IDecoderGettable reference for this record. Null for this
|
|
||||||
* class.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public RadarStation getSpatialInfo() {
|
public RadarStation getSpatialInfo() {
|
||||||
return spatialInfo;
|
return spatialInfo;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.ffmp.FFMPRecord
|
|
|
@ -37,10 +37,6 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
|
@ -77,13 +73,13 @@ import com.raytheon.uf.common.time.util.ImmutableDate;
|
||||||
*
|
*
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Jun 03, 2009 2521 D. Hladky Initial release
|
* Jun 03, 2009 2521 D. Hladky Initial release
|
||||||
* Jan 27, 2013 1478 D. Hladky OUN memory help
|
* Jan 27, 2013 1478 D. Hladky OUN memory help
|
||||||
* Feb 28, 2013 1729 dhladky Supressed un-necessary debug loggers
|
* Feb 28, 2013 1729 dhladky Supressed un-necessary debug loggers
|
||||||
* Apr 04, 2013 1846 bkowal Added an index on refTime and
|
* Apr 04, 2013 1846 bkowal Added an index on refTime and
|
||||||
* forecastTime
|
* forecastTime
|
||||||
* Apr 08, 2013 1293 bkowal Removed references to hdffileid.
|
* Apr 08, 2013 1293 bkowal Removed references to hdffileid.
|
||||||
* April, 9 2013 1890 dhladky Moved dates to referenced map in record
|
* April, 9 2013 1890 dhladky Moved dates to referenced map in record
|
||||||
* rather than multiple dates in
|
* rather than multiple dates in
|
||||||
* FFMPBasin objs.
|
* FFMPBasin objs.
|
||||||
* Apr 12, 2013 1857 bgonzale Added SequenceGenerator annotation.
|
* Apr 12, 2013 1857 bgonzale Added SequenceGenerator annotation.
|
||||||
|
@ -93,6 +89,7 @@ import com.raytheon.uf.common.time.util.ImmutableDate;
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Jul 15, 2013 2184 dhladky Remove all HUC's for storage except ALL
|
* Jul 15, 2013 2184 dhladky Remove all HUC's for storage except ALL
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -108,8 +105,6 @@ import com.raytheon.uf.common.time.util.ImmutableDate;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "ffmp", indexes = { @Index(name = "ffmp_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "ffmp", indexes = { @Index(name = "ffmp_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class FFMPRecord extends PersistablePluginDataObject implements
|
public class FFMPRecord extends PersistablePluginDataObject implements
|
||||||
IPersistable {
|
IPersistable {
|
||||||
|
@ -119,25 +114,21 @@ public class FFMPRecord extends PersistablePluginDataObject implements
|
||||||
@Column(length = 7)
|
@Column(length = 7)
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String wfo;
|
private String wfo;
|
||||||
|
|
||||||
@Column(length = 32)
|
@Column(length = 32)
|
||||||
@DataURI(position = 2)
|
@DataURI(position = 2)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String sourceName;
|
private String sourceName;
|
||||||
|
|
||||||
@Column(length = 32)
|
@Column(length = 32)
|
||||||
@DataURI(position = 3)
|
@DataURI(position = 3)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String dataKey;
|
private String dataKey;
|
||||||
|
|
||||||
@Column(length = 32)
|
@Column(length = 32)
|
||||||
@DataURI(position = 4)
|
@DataURI(position = 4)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String siteKey;
|
private String siteKey;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.fog.FogRecord
|
|
|
@ -29,10 +29,6 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.geotools.coverage.grid.GeneralGridEnvelope;
|
import org.geotools.coverage.grid.GeneralGridEnvelope;
|
||||||
import org.geotools.coverage.grid.GridGeometry2D;
|
import org.geotools.coverage.grid.GridGeometry2D;
|
||||||
|
@ -40,7 +36,6 @@ import org.geotools.geometry.GeneralEnvelope;
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
import org.opengis.referencing.crs.ProjectedCRS;
|
import org.opengis.referencing.crs.ProjectedCRS;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.fog.analysis.FogRange;
|
import com.raytheon.uf.common.dataplugin.fog.analysis.FogRange;
|
||||||
|
@ -70,6 +65,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 15, 2013 2361 njensen Remove XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -85,8 +81,6 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "fog", indexes = { @Index(name = "fog_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "fog", indexes = { @Index(name = "fog_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class FogRecord extends PersistablePluginDataObject implements
|
public class FogRecord extends PersistablePluginDataObject implements
|
||||||
IPersistable {
|
IPersistable {
|
||||||
|
@ -96,53 +90,43 @@ public class FogRecord extends PersistablePluginDataObject implements
|
||||||
@Column(length = 7)
|
@Column(length = 7)
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String cwa;
|
private String cwa;
|
||||||
|
|
||||||
// Time of the observation to the nearest hour.
|
// Time of the observation to the nearest hour.
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Calendar refHour;
|
private Calendar refHour;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public int nx = 0;
|
public int nx = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public int ny = 0;
|
public int ny = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public float dx = 0;
|
public float dx = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public float dy = 0;
|
public float dy = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public double satLon = 0.0;
|
public double satLon = 0.0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public double satHeight = 0.0;
|
public double satHeight = 0.0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public double lon = 0.0;
|
public double lon = 0.0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public double lat = 0.0;
|
public double lat = 0.0;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -397,17 +381,6 @@ public class FogRecord extends PersistablePluginDataObject implements
|
||||||
this.lon = lon;
|
this.lon = lon;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the IDecoderGettable reference for this record.
|
|
||||||
*
|
|
||||||
* @return The IDecoderGettable reference for this record. Null for this
|
|
||||||
* class.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the VIS pixel array
|
* Set the VIS pixel array
|
||||||
*
|
*
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.fssobs.FSSObsRecord
|
|
|
@ -1,18 +1,7 @@
|
||||||
package com.raytheon.uf.common.dataplugin.fssobs;
|
package com.raytheon.uf.common.dataplugin.fssobs;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
import javax.measure.quantity.Angle;
|
|
||||||
import javax.measure.quantity.DataAmount;
|
|
||||||
import javax.measure.quantity.Length;
|
|
||||||
import javax.measure.quantity.Pressure;
|
|
||||||
import javax.measure.quantity.Temperature;
|
|
||||||
import javax.measure.quantity.Velocity;
|
|
||||||
import javax.measure.unit.NonSI;
|
|
||||||
import javax.measure.unit.SI;
|
|
||||||
import javax.measure.unit.Unit;
|
|
||||||
import javax.persistence.Access;
|
import javax.persistence.Access;
|
||||||
import javax.persistence.AccessType;
|
import javax.persistence.AccessType;
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
|
@ -22,14 +11,9 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
||||||
|
@ -42,6 +26,24 @@ import com.raytheon.uf.common.pointdata.spatial.SurfaceObsLocation;
|
||||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Record object for observations for Fog and Safeseas.
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
*
|
||||||
|
* SOFTWARE HISTORY
|
||||||
|
*
|
||||||
|
* Date Ticket# Engineer Description
|
||||||
|
* ------------ ---------- ----------- --------------------------
|
||||||
|
* Dec 13, 2010 skorolev Initial creation
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations and IDecoderGettable
|
||||||
|
*
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
* @author njensen
|
||||||
|
* @version 1.0
|
||||||
|
*/
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "fssobsseq")
|
@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "fssobsseq")
|
||||||
@Table(name = FSSObsRecord.PLUGIN_NAME, uniqueConstraints = { @UniqueConstraint(columnNames = { "dataURI" }) })
|
@Table(name = FSSObsRecord.PLUGIN_NAME, uniqueConstraints = { @UniqueConstraint(columnNames = { "dataURI" }) })
|
||||||
|
@ -51,69 +53,23 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = FSSObsRecord.PLUGIN_NAME, indexes = { @Index(name = "fssobs_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = FSSObsRecord.PLUGIN_NAME, indexes = { @Index(name = "fssobs_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class FSSObsRecord extends PersistablePluginDataObject implements
|
public class FSSObsRecord extends PersistablePluginDataObject implements
|
||||||
ISpatialEnabled, IDecoderGettable, IPersistable, IPointData {
|
ISpatialEnabled, IPersistable, IPointData {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
public static final String PLUGIN_NAME = "fssobs";
|
public static final String PLUGIN_NAME = "fssobs";
|
||||||
|
|
||||||
private static final int MISSING = -9999;
|
|
||||||
|
|
||||||
// UNITS
|
|
||||||
|
|
||||||
public static final Unit<Temperature> TEMPERATURE_UNIT = SI.CELSIUS;
|
|
||||||
|
|
||||||
public static final Unit<Velocity> WIND_SPEED_UNIT = NonSI.KNOT;
|
|
||||||
|
|
||||||
public static final Unit<Length> HEIGHT_UNIT = SI.METER;
|
|
||||||
|
|
||||||
public static final Unit<Angle> WIND_DIR_UNIT = NonSI.DEGREE_ANGLE;
|
|
||||||
|
|
||||||
public static final Unit<Angle> LOCATION_UNIT = NonSI.DEGREE_ANGLE;
|
|
||||||
|
|
||||||
public static final Unit<Pressure> PRESSURE_UNIT = SI.HECTO(SI.PASCAL);
|
|
||||||
|
|
||||||
public static final Unit<Length> PRECIP_UNIT = NonSI.INCH;
|
|
||||||
|
|
||||||
public static final Unit<Length> WAVE_UNIT = SI.METER;
|
|
||||||
|
|
||||||
public static final Unit<Length> VISIBILITY_UNIT = NonSI.MILE;
|
|
||||||
|
|
||||||
public static final Unit<DataAmount> CLOUD_COVER = NonSI.OCTET;
|
|
||||||
|
|
||||||
/** Metar specific parameter keys */
|
|
||||||
public static final class ParameterKey {
|
|
||||||
public static final String SFC_ALTIMETER = "SFC.PRESS.ALTIMETER";
|
|
||||||
|
|
||||||
public static final String PRESSURE_CHANGE = "PCHNG";
|
|
||||||
|
|
||||||
public static final String VISIBILITY = "VIS";
|
|
||||||
|
|
||||||
public static final String PRECIPITATION_1HR = "PR1HR";
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final HashMap<String, String> PARM_MAP = new HashMap<String, String>();
|
|
||||||
static {
|
|
||||||
PARM_MAP.put("NLAT", STA_LAT);
|
|
||||||
PARM_MAP.put("NLON", STA_LON);
|
|
||||||
PARM_MAP.put("rawMessage", "rawMessage");
|
|
||||||
}
|
|
||||||
|
|
||||||
/** is feature new **/
|
/** is feature new **/
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
public boolean isNew = true;
|
public boolean isNew = true;
|
||||||
|
|
||||||
// Current CWA (WFO)
|
// Current CWA (WFO)
|
||||||
@Column
|
@Column
|
||||||
@DataURI(position = 2)
|
@DataURI(position = 2)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String cwa;
|
private String cwa;
|
||||||
|
|
||||||
// Monitor which should use this station record
|
// Monitor which should use this station record
|
||||||
|
@ -123,18 +79,15 @@ public class FSSObsRecord extends PersistablePluginDataObject implements
|
||||||
@Column
|
@Column
|
||||||
@DataURI(position = 4)
|
@DataURI(position = 4)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private String monitorUse = "";
|
private String monitorUse = "";
|
||||||
|
|
||||||
// Station name
|
// Station name
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private String stnName;
|
private String stnName;
|
||||||
|
|
||||||
/* From ============ObReport================= */
|
/* From ============ObReport================= */
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Column
|
@Column
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
|
@ -142,30 +95,25 @@ public class FSSObsRecord extends PersistablePluginDataObject implements
|
||||||
|
|
||||||
@Embedded
|
@Embedded
|
||||||
@DataURI(position = 3, embedded = true)
|
@DataURI(position = 3, embedded = true)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private SurfaceObsLocation location;
|
private SurfaceObsLocation location;
|
||||||
|
|
||||||
// Observing platform identifier (same as stationID)
|
// Observing platform identifier (same as stationID)
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String platformId;
|
private String platformId;
|
||||||
|
|
||||||
// Indicator of whether observing platform is stationary
|
// Indicator of whether observing platform is stationary
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private boolean isStationary;
|
private boolean isStationary;
|
||||||
|
|
||||||
// Actual time of the observation
|
// Actual time of the observation
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Calendar timeObs;
|
private Calendar timeObs;
|
||||||
|
|
||||||
// Time of the observation to the nearest hour.
|
// Time of the observation to the nearest hour.
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Column
|
@Column
|
||||||
private Calendar refHour;
|
private Calendar refHour;
|
||||||
|
@ -173,214 +121,178 @@ public class FSSObsRecord extends PersistablePluginDataObject implements
|
||||||
// Raw message
|
// Raw message
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private String rawMessage;
|
private String rawMessage;
|
||||||
|
|
||||||
// Observed wind speed in knots
|
// Observed wind speed in knots
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float windSpeed = -9999;;
|
private float windSpeed = -9999;;
|
||||||
|
|
||||||
// Wind gust in knots
|
// Wind gust in knots
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float windGust = -9999;;
|
private float windGust = -9999;;
|
||||||
|
|
||||||
// Observed maximum wind speed in knots
|
// Observed maximum wind speed in knots
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float maxWindSpeed = -9999;
|
private float maxWindSpeed = -9999;
|
||||||
|
|
||||||
// Observed wind direction in azimuth degrees
|
// Observed wind direction in azimuth degrees
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float windDir;
|
private float windDir;
|
||||||
|
|
||||||
// Observed wind chill in Fahrenheit
|
// Observed wind chill in Fahrenheit
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float windChill = -9999;
|
private float windChill = -9999;
|
||||||
|
|
||||||
// Observed high resolution wave height in
|
// Observed high resolution wave height in
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float highResWaveHeight = -9999;
|
private float highResWaveHeight = -9999;
|
||||||
|
|
||||||
// Observed wave steepness in seconds ??? None
|
// Observed wave steepness in seconds ??? None
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float waveSteepness = -9999;
|
private float waveSteepness = -9999;
|
||||||
|
|
||||||
// Observed visibility in Statute miles
|
// Observed visibility in Statute miles
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float visibility = -9999;
|
private float visibility = -9999;
|
||||||
|
|
||||||
// Observed visibility in meters for Maritime obs.
|
// Observed visibility in meters for Maritime obs.
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float horzVisibility = -9999;
|
private float horzVisibility = -9999;
|
||||||
|
|
||||||
// Observed temperature in degrees in Farenheit
|
// Observed temperature in degrees in Farenheit
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float temperature = -9999;
|
private float temperature = -9999;
|
||||||
|
|
||||||
// in feet
|
// in feet
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Double waveHeight = -9999.0;
|
private Double waveHeight = -9999.0;
|
||||||
|
|
||||||
// in seconds
|
// in seconds
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer wavePeriod = -9999;
|
private Integer wavePeriod = -9999;
|
||||||
|
|
||||||
// in Azimuth degrees
|
// in Azimuth degrees
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Double primarySwellWaveDir = -9999.0;
|
private Double primarySwellWaveDir = -9999.0;
|
||||||
|
|
||||||
// in seconds
|
// in seconds
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer primarySwellWavePeriod = -9999;
|
private Integer primarySwellWavePeriod = -9999;
|
||||||
|
|
||||||
// in feet
|
// in feet
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Double primarySwellWaveHeight = -9999.0;
|
private Double primarySwellWaveHeight = -9999.0;
|
||||||
|
|
||||||
// in Azimuth degrees
|
// in Azimuth degrees
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Double secondarySwellWaveDir = -9999.0;
|
private Double secondarySwellWaveDir = -9999.0;
|
||||||
|
|
||||||
// in seconds
|
// in seconds
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer secondarySwellWavePeriod = -9999;
|
private Integer secondarySwellWavePeriod = -9999;
|
||||||
|
|
||||||
// in feet
|
// in feet
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Double secondarySwellWaveHeight = -9999.0;
|
private Double secondarySwellWaveHeight = -9999.0;
|
||||||
|
|
||||||
// Three-hour pressure change in thousandths of an inch of mercury ????
|
// Three-hour pressure change in thousandths of an inch of mercury ????
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float pressChange3Hour = -9999f;
|
private float pressChange3Hour = -9999f;
|
||||||
|
|
||||||
// Pressure change character for metar plot model
|
// Pressure change character for metar plot model
|
||||||
/** A string denoting the pressure tendency(rising or falling) */
|
/** A string denoting the pressure tendency(rising or falling) */
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private String pressChangeChar;
|
private String pressChangeChar;
|
||||||
|
|
||||||
// Observed dewpoint in degrees Farenheit
|
// Observed dewpoint in degrees Farenheit
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float dewpoint = -9999f;
|
private float dewpoint = -9999f;
|
||||||
|
|
||||||
// Observed sea surface temperature in degrees in Farenheit
|
// Observed sea surface temperature in degrees in Farenheit
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float seaSurfaceTemp = -9999f;
|
private float seaSurfaceTemp = -9999f;
|
||||||
|
|
||||||
// the sea level pressure in hPa
|
// the sea level pressure in hPa
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private float seaLevelPress = -9999f;
|
private float seaLevelPress = -9999f;
|
||||||
|
|
||||||
// Altimeter setting in mm Hg.
|
// Altimeter setting in mm Hg.
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private float pressureAltimeter = -9999f;
|
private float pressureAltimeter = -9999f;
|
||||||
|
|
||||||
// Observed hourly precipitation in inches
|
// Observed hourly precipitation in inches
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float hourlyPrecip = -9999f;
|
private float hourlyPrecip = -9999f;
|
||||||
|
|
||||||
// Observed snow depth in inch
|
// Observed snow depth in inch
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float snowDepth = -9999f;
|
private float snowDepth = -9999f;
|
||||||
|
|
||||||
// Observed snow increasing rapidly, hourly total in inches
|
// Observed snow increasing rapidly, hourly total in inches
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float snincrHourly = -9999f;
|
private float snincrHourly = -9999f;
|
||||||
|
|
||||||
// Observed snow increasing rapidly, total in inches
|
// Observed snow increasing rapidly, total in inches
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float snincrTotal = -9999f;
|
private float snincrTotal = -9999f;
|
||||||
|
|
||||||
// Observed frostbite time in minutes
|
// Observed frostbite time in minutes
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float frostbiteTime;
|
private float frostbiteTime;
|
||||||
|
|
||||||
// present weather conditions for metar plot model
|
// present weather conditions for metar plot model
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private String[] presWeather;
|
private String[] presWeather;
|
||||||
|
|
||||||
// Observed relative humidity in percent
|
// Observed relative humidity in percent
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float relativeHumidity = -9999f;
|
private float relativeHumidity = -9999f;
|
||||||
|
|
||||||
// Observed ceiling in feet above ground level
|
// Observed ceiling in feet above ground level
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float ceiling = -9999f;
|
private float ceiling = -9999f;
|
||||||
|
|
||||||
// Observed dewpoint depression in Farenheit
|
// Observed dewpoint depression in Farenheit
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private float dewpointDepr = -9999f;
|
private float dewpointDepr = -9999f;
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private String[] skyCover;
|
private String[] skyCover;
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private int totCloudAmount = -9999;
|
private int totCloudAmount = -9999;
|
||||||
|
@ -397,58 +309,6 @@ public class FSSObsRecord extends PersistablePluginDataObject implements
|
||||||
super(uri);
|
super(uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Amount getValue(String paramName) {
|
|
||||||
Amount a = null;
|
|
||||||
|
|
||||||
String pName = PARM_MAP.get(paramName);
|
|
||||||
|
|
||||||
if (SFC_TEMP.equals(pName) && (temperature != -9999f)) {
|
|
||||||
a = new Amount(temperature, TEMPERATURE_UNIT);
|
|
||||||
} else if (SFC_DWPT.equals(pName) && (dewpoint != -9999f)) {
|
|
||||||
a = new Amount(dewpoint, TEMPERATURE_UNIT);
|
|
||||||
} else if (SFC_WNDSPD.equals(pName) && (windSpeed != -9999f)) {
|
|
||||||
a = new Amount(windSpeed, WIND_SPEED_UNIT);
|
|
||||||
} else if (SFC_WNDDIR.equals(pName) && (windDir != -9999f)) {
|
|
||||||
a = new Amount(windDir, WIND_DIR_UNIT);
|
|
||||||
} else if (SFC_WNDGST.equals(pName) && (windGust != -9999f)) {
|
|
||||||
a = new Amount(windGust, WIND_SPEED_UNIT);
|
|
||||||
} else if (PRES_SLP.equals(pName) && (seaLevelPress != -9999f)) {
|
|
||||||
a = new Amount(seaLevelPress, PRESSURE_UNIT);
|
|
||||||
// } else if (PRES_ALTSG.equals(pName) && (pressureAltimeter !=
|
|
||||||
// -9999f)) {
|
|
||||||
// a = new Amount(pressureAltimeter, PRESSURE_UNIT);
|
|
||||||
} else if (STA_LAT.equals(pName)) {
|
|
||||||
a = new Amount(this.getLatitude(), LOCATION_UNIT);
|
|
||||||
} else if (STA_LON.equals(pName)) {
|
|
||||||
a = new Amount(this.getLongitude(), LOCATION_UNIT);
|
|
||||||
} else if ("WT".equals(pName) && (this.seaSurfaceTemp != -9999f)) {
|
|
||||||
a = new Amount(this.seaSurfaceTemp, TEMPERATURE_UNIT);
|
|
||||||
} else if ("WH".equals(pName)) {
|
|
||||||
a = new Amount(waveHeight, WAVE_UNIT);
|
|
||||||
} else if ("SWP".equals(pName)) {
|
|
||||||
a = new Amount(primarySwellWavePeriod, WAVE_UNIT);
|
|
||||||
} else if ("SWH".equals(pName)) {
|
|
||||||
a = new Amount(primarySwellWaveHeight, WAVE_UNIT);
|
|
||||||
// } else if ("PCHNG".equals(pName) && pressChange3Hour != MISSING)
|
|
||||||
// {
|
|
||||||
// a = new Amount(pressChange3Hour, PRESSURE_UNIT);
|
|
||||||
} else if ("PKWND".equals(paramName) && (maxWindSpeed != MISSING)) {
|
|
||||||
a = new Amount(maxWindSpeed, WIND_SPEED_UNIT);
|
|
||||||
} else if ("SWS".equals(paramName) || "SWGS".equals(paramName)) {
|
|
||||||
a = new Amount(1, WIND_SPEED_UNIT);
|
|
||||||
} else if ("SWD".equals(paramName) && (primarySwellWaveDir != MISSING)) {
|
|
||||||
a = new Amount(primarySwellWaveDir, WIND_DIR_UNIT);
|
|
||||||
}
|
|
||||||
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the isNew
|
* @return the isNew
|
||||||
*/
|
*/
|
||||||
|
@ -1172,21 +1032,6 @@ public class FSSObsRecord extends PersistablePluginDataObject implements
|
||||||
return totCloudAmount;
|
return totCloudAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Collection<Amount> getValues(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getString(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getStrings(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ISpatialObject getSpatialObject() {
|
public ISpatialObject getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.ldadhydro.HydroLdadRecord
|
|
|
@ -21,8 +21,6 @@ package com.raytheon.uf.common.dataplugin.ldadhydro;
|
||||||
**/
|
**/
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
import javax.measure.quantity.Angle;
|
import javax.measure.quantity.Angle;
|
||||||
import javax.measure.quantity.Length;
|
import javax.measure.quantity.Length;
|
||||||
|
@ -40,15 +38,9 @@ import javax.persistence.Entity;
|
||||||
import javax.persistence.SequenceGenerator;
|
import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
||||||
|
@ -77,6 +69,7 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 15, 2013 2361 njensen Remove XML annotations and IDecoderGettable
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -93,11 +86,9 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "ldadhydro", indexes = { @Index(name = "ldadhydro_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "ldadhydro", indexes = { @Index(name = "ldadhydro_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class HydroLdadRecord extends PersistablePluginDataObject implements
|
public class HydroLdadRecord extends PersistablePluginDataObject implements
|
||||||
ISpatialEnabled, IDecoderGettable, IPointData, IPersistable {
|
ISpatialEnabled, IPointData, IPersistable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -115,269 +106,211 @@ public class HydroLdadRecord extends PersistablePluginDataObject implements
|
||||||
|
|
||||||
public static final Unit<Angle> LOCATION_UNIT = NonSI.DEGREE_ANGLE;
|
public static final Unit<Angle> LOCATION_UNIT = NonSI.DEGREE_ANGLE;
|
||||||
|
|
||||||
private static final HashMap<String, String> PARM_MAP = new HashMap<String, String>();
|
|
||||||
static {
|
|
||||||
PARM_MAP.put("T", SFC_TEMP);
|
|
||||||
PARM_MAP.put("DpT", SFC_DWPT);
|
|
||||||
PARM_MAP.put("WS", SFC_WNDSPD);
|
|
||||||
PARM_MAP.put("WD", SFC_WNDDIR);
|
|
||||||
PARM_MAP.put("WGS", SFC_WNDGST);
|
|
||||||
PARM_MAP.put("ASET", "SFC.PRESS.ALTIMETER");
|
|
||||||
PARM_MAP.put("PMSL", PRES_SLP);
|
|
||||||
PARM_MAP.put("NLAT", STA_LAT);
|
|
||||||
PARM_MAP.put("NLON", STA_LON);
|
|
||||||
PARM_MAP.put("STA", "STA");
|
|
||||||
PARM_MAP.put("stationId", "STA");
|
|
||||||
PARM_MAP.put("message", OBS_TEXT);
|
|
||||||
PARM_MAP.put(OBS_TEXT, OBS_TEXT);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Time of the observation.
|
// Time of the observation.
|
||||||
@DataURI(position = 2)
|
@DataURI(position = 2)
|
||||||
@Column
|
@Column
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Calendar observationTime;
|
private Calendar observationTime;
|
||||||
|
|
||||||
// numeric WMO identification number
|
// numeric WMO identification number
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private long numericWMOid;
|
private long numericWMOid;
|
||||||
|
|
||||||
// latitude, longitude, elevation, stationId="RALC2"
|
// latitude, longitude, elevation, stationId="RALC2"
|
||||||
@Embedded
|
@Embedded
|
||||||
@DataURI(position = 3, embedded = true)
|
@DataURI(position = 3, embedded = true)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private SurfaceObsLocation location;
|
private SurfaceObsLocation location;
|
||||||
|
|
||||||
// Data Provider station Id
|
// Data Provider station Id
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String providerId; // * "110" "FA6026DA"
|
private String providerId; // * "110" "FA6026DA"
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String stationName; // * "Ralston_Res"
|
private String stationName; // * "Ralston_Res"
|
||||||
|
|
||||||
// Handbook Id (AFOS id or SHEF id)
|
// Handbook Id (AFOS id or SHEF id)
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String handbook5Id;
|
private String handbook5Id;
|
||||||
|
|
||||||
// Home WFO Id for the LDAD data
|
// Home WFO Id for the LDAD data
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String homeWFO;
|
private String homeWFO;
|
||||||
|
|
||||||
// LDAD hydro station type.
|
// LDAD hydro station type.
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String stationType;
|
private String stationType;
|
||||||
|
|
||||||
// LDAD hydro data provider
|
// LDAD hydro data provider
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String dataProvider;
|
private String dataProvider;
|
||||||
|
|
||||||
// time data was processed by the provider
|
// time data was processed by the provider
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private double reportTime; // * 1.247436157E9
|
private double reportTime; // * 1.247436157E9
|
||||||
|
|
||||||
// * time data was received
|
// * time data was received
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Double receivedTime; // seconds since 1-1-1970
|
private Double receivedTime; // seconds since 1-1-1970
|
||||||
|
|
||||||
// Below surface
|
// Below surface
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float belowSurface; // meter
|
private Float belowSurface; // meter
|
||||||
|
|
||||||
// River stage
|
// River stage
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float riverStage; // meter
|
private Float riverStage; // meter
|
||||||
|
|
||||||
// Pool elevation
|
// Pool elevation
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float poolElevation; // meter
|
private Float poolElevation; // meter
|
||||||
|
|
||||||
// Tail water stage
|
// Tail water stage
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float tailwaterStage; // meter
|
private Float tailwaterStage; // meter
|
||||||
|
|
||||||
// River velocity
|
// River velocity
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float riverVelocity; // kph
|
private Float riverVelocity; // kph
|
||||||
|
|
||||||
// River inflow
|
// River inflow
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float riverInflow; // meter^3 / sec
|
private Float riverInflow; // meter^3 / sec
|
||||||
|
|
||||||
// River flow
|
// River flow
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float riverFlow; // meter^3 / sec
|
private Float riverFlow; // meter^3 / sec
|
||||||
|
|
||||||
// Computed outflow
|
// Computed outflow
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float computedOutflow; // meter^3 / sec
|
private Float computedOutflow; // meter^3 / sec
|
||||||
|
|
||||||
// Water temperature
|
// Water temperature
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float waterTemperature; // kelvin
|
private Float waterTemperature; // kelvin
|
||||||
|
|
||||||
// Battery voltage
|
// Battery voltage
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float voltageBattery; // volt
|
private Float voltageBattery; // volt
|
||||||
|
|
||||||
// Water conductance
|
// Water conductance
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float waterConductance; // umhos/cm
|
private Float waterConductance; // umhos/cm
|
||||||
|
|
||||||
// Water oxygen
|
// Water oxygen
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float waterOxygen; // mg/l
|
private Float waterOxygen; // mg/l
|
||||||
|
|
||||||
// Water PH
|
// Water PH
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float waterPH; // pH
|
private Float waterPH; // pH
|
||||||
|
|
||||||
// Relative humidity
|
// Relative humidity
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float relHumidity;
|
private Float relHumidity;
|
||||||
|
|
||||||
// River stage & flow - time of last change (ALERT)
|
// River stage & flow - time of last change (ALERT)
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Double riverReportChangeTime; // seconds since 1970-1-1 00:00:00.0
|
private Double riverReportChangeTime; // seconds since 1970-1-1 00:00:00.0
|
||||||
|
|
||||||
// Observation air temperature in degrees Kelvin.
|
// Observation air temperature in degrees Kelvin.
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Float temperature;
|
private Float temperature;
|
||||||
|
|
||||||
// Observation dewpoint temperature in degrees Kelvin.
|
// Observation dewpoint temperature in degrees Kelvin.
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Float dewpoint;
|
private Float dewpoint;
|
||||||
|
|
||||||
// Observation wind direction in angular degrees.
|
// Observation wind direction in angular degrees.
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Float windDir;
|
private Float windDir;
|
||||||
|
|
||||||
// Observation wind speed in meters per second.
|
// Observation wind speed in meters per second.
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Float windSpeed;
|
private Float windSpeed;
|
||||||
|
|
||||||
// Wind speed peak
|
// Wind speed peak
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float windSpeedPeak;
|
private Float windSpeedPeak;
|
||||||
|
|
||||||
// Observation wind gust in meters per second.
|
// Observation wind gust in meters per second.
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Double windGust;
|
private Double windGust;
|
||||||
|
|
||||||
// precip accumulation with an unknown time period in mm.
|
// precip accumulation with an unknown time period in mm.
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Float precipAccum; // mm
|
private Float precipAccum; // mm
|
||||||
|
|
||||||
// 5 minute precip accumulation
|
// 5 minute precip accumulation
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Float precip5min; // mm
|
private Float precip5min; // mm
|
||||||
|
|
||||||
// 1 hour precip accumulation
|
// 1 hour precip accumulation
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Float precip1hr; // mm
|
private Float precip1hr; // mm
|
||||||
|
|
||||||
// 3 hour precip accumulation
|
// 3 hour precip accumulation
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Float precip3hr; // float precip3hr mm
|
private Float precip3hr; // float precip3hr mm
|
||||||
|
|
||||||
// 6 hour precip accumulation
|
// 6 hour precip accumulation
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Float precip6hr; // float precip6hr mm
|
private Float precip6hr; // float precip6hr mm
|
||||||
|
|
||||||
// 12 hour precip accumulation mm
|
// 12 hour precip accumulation mm
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float precip12hr;
|
private Float precip12hr;
|
||||||
|
|
||||||
// 18 hour precip accumulation mm
|
// 18 hour precip accumulation mm
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float precip18hr;
|
private Float precip18hr;
|
||||||
|
|
||||||
// 24 hour precip accumulation
|
// 24 hour precip accumulation
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private Float precip24hr; // mm
|
private Float precip24hr; // mm
|
||||||
|
|
||||||
// Raw text LDAD hydro report
|
// Raw text LDAD hydro report
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
private String rawMessage;
|
private String rawMessage;
|
||||||
|
|
||||||
private PointDataView pointDataView;
|
private PointDataView pointDataView;
|
||||||
|
@ -519,69 +452,6 @@ public class HydroLdadRecord extends PersistablePluginDataObject implements
|
||||||
return location;
|
return location;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This class implements IDecoderGettable so return this instance.
|
|
||||||
*
|
|
||||||
* @return The reference to this instance.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public String getString(String paramName) {
|
|
||||||
String retValue = null;
|
|
||||||
String pName = PARM_MAP.get(paramName);
|
|
||||||
if ("STA".matches(pName)) {
|
|
||||||
retValue = getStationId();
|
|
||||||
} else if (OBS_TEXT.equals(pName)) {
|
|
||||||
retValue = getStationId();
|
|
||||||
}
|
|
||||||
|
|
||||||
return retValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getStrings(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Amount getValue(String paramName) {
|
|
||||||
Amount a = null;
|
|
||||||
String pName = PARM_MAP.get(paramName);
|
|
||||||
|
|
||||||
if (SFC_TEMP.equals(pName)) {
|
|
||||||
a = new Amount(temperature, TEMPERATURE_UNIT);
|
|
||||||
} else if (SFC_DWPT.equals(pName)) {
|
|
||||||
a = new Amount(dewpoint, TEMPERATURE_UNIT);
|
|
||||||
} else if (SFC_WNDSPD.equals(pName)) {
|
|
||||||
a = new Amount(windSpeed, WIND_SPEED_UNIT);
|
|
||||||
} else if (SFC_WNDGST.equals(pName)) {
|
|
||||||
a = new Amount(windGust, WIND_SPEED_UNIT);
|
|
||||||
} else if (SFC_WNDDIR.equals(pName)) {
|
|
||||||
a = new Amount(windDir, WIND_DIR_UNIT);
|
|
||||||
} else if (STA_LAT.equals(pName)) {
|
|
||||||
a = new Amount(getLatitude(), LOCATION_UNIT);
|
|
||||||
} else if (STA_LON.equals(pName)) {
|
|
||||||
a = new Amount(getLongitude(), LOCATION_UNIT);
|
|
||||||
}
|
|
||||||
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public Collection<Amount> getValues(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param providerId
|
* @param providerId
|
||||||
* the providerId to set
|
* the providerId to set
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.ldadmesonet.MesonetLdadRecord
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.lsr.LocalStormReport
|
|
|
@ -20,7 +20,6 @@
|
||||||
package com.raytheon.uf.common.dataplugin.lsr;
|
package com.raytheon.uf.common.dataplugin.lsr;
|
||||||
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
import javax.measure.quantity.Angle;
|
import javax.measure.quantity.Angle;
|
||||||
import javax.measure.quantity.DataAmount;
|
import javax.measure.quantity.DataAmount;
|
||||||
|
@ -40,14 +39,9 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
||||||
|
@ -61,7 +55,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
import com.vividsolutions.jts.geom.Geometry;
|
import com.vividsolutions.jts.geom.Geometry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Record implementation for Local Storm Reports
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -75,6 +69,7 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations and IDecoderGettable
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -90,11 +85,9 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "lsr", indexes = { @Index(name = "lsr_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "lsr", indexes = { @Index(name = "lsr_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class LocalStormReport extends PersistablePluginDataObject implements
|
public class LocalStormReport extends PersistablePluginDataObject implements
|
||||||
ISpatialEnabled, IDecoderGettable, IPointData, IPersistable {
|
ISpatialEnabled, IPointData, IPersistable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -119,20 +112,17 @@ public class LocalStormReport extends PersistablePluginDataObject implements
|
||||||
//
|
//
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private LSREventType eventType;
|
private LSREventType eventType;
|
||||||
|
|
||||||
// Correction indicator from wmo header
|
// Correction indicator from wmo header
|
||||||
@DataURI(position = 2)
|
@DataURI(position = 2)
|
||||||
@Column
|
@Column
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String corIndicator;
|
private String corIndicator;
|
||||||
|
|
||||||
@Embedded
|
@Embedded
|
||||||
@DataURI(position = 3, embedded = true)
|
@DataURI(position = 3, embedded = true)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private SurfaceObsLocation location;
|
private SurfaceObsLocation location;
|
||||||
|
|
||||||
|
@ -142,48 +132,40 @@ public class LocalStormReport extends PersistablePluginDataObject implements
|
||||||
|
|
||||||
// Text of the WMO header
|
// Text of the WMO header
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String wmoHeader = "";
|
private String wmoHeader = "";
|
||||||
|
|
||||||
// Text of the office
|
// Text of the office
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String officeid = "";
|
private String officeid = "";
|
||||||
|
|
||||||
//
|
//
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String cityLoc = "";
|
private String cityLoc = "";
|
||||||
|
|
||||||
//
|
//
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String source = "";
|
private String source = "";
|
||||||
|
|
||||||
//
|
//
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String countyLoc = "";
|
private String countyLoc = "";
|
||||||
|
|
||||||
//
|
//
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String stateLoc = "";
|
private String stateLoc = "";
|
||||||
|
|
||||||
//
|
//
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String remarks = "";
|
private String remarks = "";
|
||||||
|
|
||||||
//
|
//
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Float magnitude = -9999.0f;
|
private Float magnitude = -9999.0f;
|
||||||
|
|
||||||
|
@ -193,19 +175,16 @@ public class LocalStormReport extends PersistablePluginDataObject implements
|
||||||
// 3 =
|
// 3 =
|
||||||
// 4 =
|
// 4 =
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer magQual = MISSING;
|
private Integer magQual = MISSING;
|
||||||
|
|
||||||
//
|
//
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer injuries = MISSING;
|
private Integer injuries = MISSING;
|
||||||
|
|
||||||
//
|
//
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer fatalities = MISSING;
|
private Integer fatalities = MISSING;
|
||||||
|
|
||||||
|
@ -430,11 +409,6 @@ public class LocalStormReport extends PersistablePluginDataObject implements
|
||||||
identifier = dataURI;
|
identifier = dataURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SurfaceObsLocation getSpatialObject() {
|
public SurfaceObsLocation getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
|
@ -502,26 +476,6 @@ public class LocalStormReport extends PersistablePluginDataObject implements
|
||||||
return location.getLocationDefined();
|
return location.getLocationDefined();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Amount getValue(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getString(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getStrings(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Collection<Amount> getValues(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PointDataView getPointDataView() {
|
public PointDataView getPointDataView() {
|
||||||
return pointDataView;
|
return pointDataView;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.madis.MadisRecord
|
|
|
@ -20,7 +20,6 @@ package com.raytheon.uf.common.dataplugin.madis;
|
||||||
* further licensing information.
|
* further licensing information.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -47,7 +46,6 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
||||||
|
@ -74,6 +72,8 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
* Jul 12, 2013 2096 mpduff Changed temperature unit to F.
|
* Jul 12, 2013 2096 mpduff Changed temperature unit to F.
|
||||||
* Jul 14, 2013 2180 dhladky GUI update for mouse over display
|
* Jul 14, 2013 2180 dhladky GUI update for mouse over display
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed IDecoderGettable
|
||||||
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author dhladky
|
* @author dhladky
|
||||||
|
@ -88,7 +88,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
"refTime", "location" }), })
|
"refTime", "location" }), })
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class MadisRecord extends PersistablePluginDataObject implements
|
public class MadisRecord extends PersistablePluginDataObject implements
|
||||||
ISpatialEnabled, IDecoderGettable, IPointData {
|
ISpatialEnabled, IPointData {
|
||||||
|
|
||||||
private static final long serialVersionUID = -2234739310998758367L;
|
private static final long serialVersionUID = -2234739310998758367L;
|
||||||
|
|
||||||
|
@ -370,20 +370,6 @@ public class MadisRecord extends PersistablePluginDataObject implements
|
||||||
|
|
||||||
public static final Unit<Length> PRECIP_UNIT = NonSI.INCH;
|
public static final Unit<Length> PRECIP_UNIT = NonSI.INCH;
|
||||||
|
|
||||||
/** Keys that map back to known decoder params **/
|
|
||||||
private static final HashMap<String, String> PARM_MAP = new HashMap<String, String>();
|
|
||||||
static {
|
|
||||||
PARM_MAP.put(SFC_DWPT, SFC_DWPT);
|
|
||||||
PARM_MAP.put(SFC_TEMP, SFC_TEMP);
|
|
||||||
PARM_MAP.put(SFC_WNDSPD, SFC_WNDSPD);
|
|
||||||
PARM_MAP.put(SFC_WNDDIR, SFC_WNDDIR);
|
|
||||||
PARM_MAP.put(SFC_WNDGST, SFC_WNDGST);
|
|
||||||
PARM_MAP.put(PRES_ALTSG, PRES_ALTSG);
|
|
||||||
PARM_MAP.put(PRES_STATION, PRES_STATION);
|
|
||||||
PARM_MAP.put(STA_LAT, STA_LAT);
|
|
||||||
PARM_MAP.put(STA_LON, STA_LON);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** MADIS specific parameter keys */
|
/** MADIS specific parameter keys */
|
||||||
public static final class ParameterKey {
|
public static final class ParameterKey {
|
||||||
|
|
||||||
|
@ -482,80 +468,6 @@ public class MadisRecord extends PersistablePluginDataObject implements
|
||||||
this.pointDataView = pointDataView;
|
this.pointDataView = pointDataView;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Amount getValue(final String paramName) {
|
|
||||||
Amount a = null;
|
|
||||||
|
|
||||||
String pName = paramName;
|
|
||||||
|
|
||||||
if (SFC_TEMP.equals(pName)) {
|
|
||||||
if (temperature != -9999) {
|
|
||||||
a = new Amount(temperature, TEMPERATURE_UNIT);
|
|
||||||
}
|
|
||||||
} else if (SFC_DWPT.equals(pName)) {
|
|
||||||
if (dewpoint != -9999) {
|
|
||||||
a = new Amount(dewpoint, TEMPERATURE_UNIT);
|
|
||||||
}
|
|
||||||
} else if (SFC_WNDSPD.equals(pName)) {
|
|
||||||
a = new Amount(windSpeed, WIND_SPEED_UNIT);
|
|
||||||
} else if (SFC_WNDGST.equals(pName)) {
|
|
||||||
a = new Amount(windGust, WIND_SPEED_UNIT);
|
|
||||||
} else if (SFC_WNDDIR.equals(pName)) {
|
|
||||||
if (getWindDirection() != -9999) {
|
|
||||||
Double result = (double) getWindDirection();
|
|
||||||
a = new Amount(result, WIND_DIR_UNIT);
|
|
||||||
}
|
|
||||||
} else if (PRES_ALTSG.equals(pName)) {
|
|
||||||
a = new Amount(altimeter, ALTIMETER_UNIT);
|
|
||||||
} else if (STA_LAT.equals(pName)) {
|
|
||||||
a = new Amount(getLatitude(), LOCATION_UNIT);
|
|
||||||
} else if (STA_LON.equals(pName)) {
|
|
||||||
a = new Amount(getLongitude(), LOCATION_UNIT);
|
|
||||||
} else if (ParameterKey.PRECIPITALWATER.equals(pName)) {
|
|
||||||
if (precipitalWater != -9999) {
|
|
||||||
a = new Amount(precipitalWater, PRECIP_UNIT);
|
|
||||||
}
|
|
||||||
} else if (ParameterKey.RELATIVEHUMIDITY.equals(pName)) {
|
|
||||||
if (rh != -9999) {
|
|
||||||
a = new Amount(rh, HUMIDITY_UNIT);
|
|
||||||
}
|
|
||||||
} else if (PRES_STATION.equals(pName)) {
|
|
||||||
if (pressure != -9999) {
|
|
||||||
a = new Amount(pressure, PRESSURE_UNIT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Collection<Amount> getValues(final String paramName) {
|
|
||||||
return Collections.emptyList();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getString(final String paramName) {
|
|
||||||
if (ParameterKey.PROVIDER.matches(paramName)) {
|
|
||||||
return getProvider();
|
|
||||||
} else if (ParameterKey.SUB_PROVIDER.matches(paramName)) {
|
|
||||||
return getSubProvider();
|
|
||||||
} else if (ParameterKey.STATIONID.matches(paramName)) {
|
|
||||||
return getStationId();
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getStrings(final String paramName) {
|
|
||||||
if (ParameterKey.PROVIDER.matches(paramName)) {
|
|
||||||
return new String[] { getProvider() };
|
|
||||||
} else if (ParameterKey.SUB_PROVIDER.matches(paramName)) {
|
|
||||||
return new String[] { getSubProvider() };
|
|
||||||
} else if (ParameterKey.STATIONID.matches(paramName)) {
|
|
||||||
return new String[] { getStationId() };
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enumeration of Quality types, we know so far
|
* Enumeration of Quality types, we know so far
|
||||||
*
|
*
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.npp.crimss.CrimssRecord
|
|
|
@ -26,9 +26,6 @@ import javax.persistence.Entity;
|
||||||
import javax.persistence.SequenceGenerator;
|
import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.npp.sounding.NPPSoundingRecord;
|
import com.raytheon.uf.common.dataplugin.npp.sounding.NPPSoundingRecord;
|
||||||
|
@ -48,6 +45,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -58,8 +56,6 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||||
@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "crimssseq")
|
@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "crimssseq")
|
||||||
@Table(name = "crimss", uniqueConstraints = { @UniqueConstraint(columnNames = { "dataURI" }) })
|
@Table(name = "crimss", uniqueConstraints = { @UniqueConstraint(columnNames = { "dataURI" }) })
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
public class CrimssRecord extends NPPSoundingRecord {
|
public class CrimssRecord extends NPPSoundingRecord {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.npp.nucaps.NucapsRecord
|
|
|
@ -26,9 +26,6 @@ import javax.persistence.Entity;
|
||||||
import javax.persistence.SequenceGenerator;
|
import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.npp.sounding.NPPSoundingRecord;
|
import com.raytheon.uf.common.dataplugin.npp.sounding.NPPSoundingRecord;
|
||||||
|
@ -48,6 +45,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -58,8 +56,6 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||||
@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "nucapsseq")
|
@SequenceGenerator(initialValue = 1, name = PluginDataObject.ID_GEN, sequenceName = "nucapsseq")
|
||||||
@Table(name = NucapsRecord.PLUGIN_NAME, uniqueConstraints = { @UniqueConstraint(columnNames = { "dataURI" }) })
|
@Table(name = NucapsRecord.PLUGIN_NAME, uniqueConstraints = { @UniqueConstraint(columnNames = { "dataURI" }) })
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
public class NucapsRecord extends NPPSoundingRecord {
|
public class NucapsRecord extends NPPSoundingRecord {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.npp.viirs.VIIRSDataRecord
|
|
||||||
com.raytheon.uf.common.dataplugin.npp.viirs.VIIRSSpatialCoverage
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.preciprate.PrecipRateRecord
|
|
|
@ -32,10 +32,6 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.geotools.coverage.grid.GeneralGridEnvelope;
|
import org.geotools.coverage.grid.GeneralGridEnvelope;
|
||||||
import org.geotools.coverage.grid.GridGeometry2D;
|
import org.geotools.coverage.grid.GridGeometry2D;
|
||||||
|
@ -43,7 +39,6 @@ import org.geotools.geometry.GeneralEnvelope;
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
import org.opengis.referencing.crs.ProjectedCRS;
|
import org.opengis.referencing.crs.ProjectedCRS;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
||||||
|
@ -83,6 +78,7 @@ import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 06, 2013 2228 njensen Use deserialize(byte[])
|
* Aug 06, 2013 2228 njensen Use deserialize(byte[])
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -98,8 +94,6 @@ import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "preciprate", indexes = { @Index(name = "preciprate_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "preciprate", indexes = { @Index(name = "preciprate_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class PrecipRateRecord extends PersistablePluginDataObject implements
|
public class PrecipRateRecord extends PersistablePluginDataObject implements
|
||||||
IMonitorProcessing {
|
IMonitorProcessing {
|
||||||
|
@ -110,69 +104,56 @@ public class PrecipRateRecord extends PersistablePluginDataObject implements
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private Integer gateResolution;
|
private Integer gateResolution;
|
||||||
|
|
||||||
@Column(length = 7)
|
@Column(length = 7)
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String icao;
|
private String icao;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private Float latitude;
|
private Float latitude;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private Float longitude;
|
private Float longitude;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private Integer numRadials;
|
private Integer numRadials;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private Integer numBins;
|
private Integer numBins;
|
||||||
|
|
||||||
@Column(length = 7)
|
@Column(length = 7)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String mnemonic;
|
private String mnemonic;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private Integer volumeCoveragePattern;
|
private Integer volumeCoveragePattern;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@PrimaryKeyJoinColumn
|
@PrimaryKeyJoinColumn
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private RadarStation location;
|
private RadarStation location;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private Double coefficent = 0.0;
|
private Double coefficent = 0.0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private Double acoefficent = 0.0;
|
private Double acoefficent = 0.0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private Double hailcap = 0.0;
|
private Double hailcap = 0.0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private Double bias = 0.0;
|
private Double bias = 0.0;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -183,7 +164,6 @@ public class PrecipRateRecord extends PersistablePluginDataObject implements
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement
|
|
||||||
protected float[] angleData;
|
protected float[] angleData;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -596,17 +576,6 @@ public class PrecipRateRecord extends PersistablePluginDataObject implements
|
||||||
this.crs = crs;
|
this.crs = crs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see
|
|
||||||
* com.raytheon.uf.common.dataplugin.PluginDataObject#getDecoderGettable()
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Column
|
@Column
|
||||||
@Access(AccessType.PROPERTY)
|
@Access(AccessType.PROPERTY)
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.profiler.ProfilerObs
|
|
||||||
com.raytheon.uf.common.dataplugin.profiler.ProfilerLevel
|
|
|
@ -21,11 +21,6 @@ package com.raytheon.uf.common.dataplugin.profiler;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
|
||||||
|
|
||||||
import com.raytheon.uf.common.serialization.ISerializableObject;
|
|
||||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
|
|
||||||
|
@ -37,6 +32,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* 20080303 969 jkorman Initial implementation.
|
* 20080303 969 jkorman Initial implementation.
|
||||||
|
* Oct 15, 2013 2361 njensen Remove XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -44,53 +40,41 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
public class ProfilerLevel implements Serializable, Comparable<ProfilerLevel> {
|
||||||
public class ProfilerLevel implements Serializable, ISerializableObject, Comparable<ProfilerLevel> {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Integer modeInfo;
|
private Integer modeInfo;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Integer levelQualCode;
|
private Integer levelQualCode;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Double peakPower;
|
private Double peakPower;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Integer levelHeight;
|
private Integer levelHeight;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Double ucWind;
|
private Double ucWind;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Double vcWind;
|
private Double vcWind;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Double horzStdDev;
|
private Double horzStdDev;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Integer horzConsensus;
|
private Integer horzConsensus;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Double wcWind;
|
private Double wcWind;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Double vertStdDev;
|
private Double vertStdDev;
|
||||||
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlAttribute
|
|
||||||
private Integer vertConsensus;
|
private Integer vertConsensus;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -339,5 +323,5 @@ public class ProfilerLevel implements Serializable, ISerializableObject, Compara
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,6 @@ package com.raytheon.uf.common.dataplugin.profiler;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
|
@ -41,15 +40,9 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
import com.raytheon.uf.common.dataplugin.persist.IPersistable;
|
||||||
|
@ -81,6 +74,7 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations and IDecoderGettable
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -96,12 +90,9 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = ProfilerObs.PLUGIN_NAME, indexes = { @Index(name = "profiler_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = ProfilerObs.PLUGIN_NAME, indexes = { @Index(name = "profiler_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class ProfilerObs extends PersistablePluginDataObject implements
|
public class ProfilerObs extends PersistablePluginDataObject implements
|
||||||
ISpatialEnabled, IDecoderGettable, IPointData, IPersistable,
|
ISpatialEnabled, IPointData, IPersistable, Comparable<ProfilerObs> {
|
||||||
Comparable<ProfilerObs> {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ -127,18 +118,6 @@ public class ProfilerObs extends PersistablePluginDataObject implements
|
||||||
|
|
||||||
public static final Unit<Angle> WIND_DIR_UNIT = NonSI.DEGREE_ANGLE;
|
public static final Unit<Angle> WIND_DIR_UNIT = NonSI.DEGREE_ANGLE;
|
||||||
|
|
||||||
private static final HashMap<String, String> PARM_MAP = new HashMap<String, String>();
|
|
||||||
|
|
||||||
private static final String PROF_ID = "profid";
|
|
||||||
|
|
||||||
static {
|
|
||||||
PARM_MAP.put("NLAT", STA_LAT);
|
|
||||||
PARM_MAP.put("NLON", STA_LON);
|
|
||||||
PARM_MAP.put("WS", SFC_WNDSPD);
|
|
||||||
PARM_MAP.put("WD", SFC_WNDDIR);
|
|
||||||
PARM_MAP.put("PROF_ID", PROF_ID);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final String PRESS = "PRESS";
|
private static final String PRESS = "PRESS";
|
||||||
|
|
||||||
private static final String AGL = "AGL";
|
private static final String AGL = "AGL";
|
||||||
|
@ -166,24 +145,20 @@ public class ProfilerObs extends PersistablePluginDataObject implements
|
||||||
private Integer levelId;
|
private Integer levelId;
|
||||||
|
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Integer reportType;
|
private Integer reportType;
|
||||||
|
|
||||||
// The profiler observation time.
|
// The profiler observation time.
|
||||||
@Column
|
@Column
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private Calendar timeObs;
|
private Calendar timeObs;
|
||||||
|
|
||||||
@Embedded
|
@Embedded
|
||||||
@DataURI(position = 2, embedded = true)
|
@DataURI(position = 2, embedded = true)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private SurfaceObsLocation location;
|
private SurfaceObsLocation location;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String profilerId;
|
private String profilerId;
|
||||||
|
|
||||||
|
@ -192,28 +167,23 @@ public class ProfilerObs extends PersistablePluginDataObject implements
|
||||||
private PointDataView pointDataView;
|
private PointDataView pointDataView;
|
||||||
|
|
||||||
// Text of the WMO header
|
// Text of the WMO header
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String wmoHeader;
|
private String wmoHeader;
|
||||||
|
|
||||||
// the level data
|
// the level data
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private String profilerName;
|
private String profilerName;
|
||||||
|
|
||||||
// the level data
|
// the level data
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private List<ProfilerLevel> levels;
|
private List<ProfilerLevel> levels;
|
||||||
|
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private Double sfcWindSpeed;
|
private Double sfcWindSpeed;
|
||||||
|
|
||||||
@XmlAttribute
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
private Double sfcWindDir;
|
private Double sfcWindDir;
|
||||||
|
@ -383,75 +353,6 @@ public class ProfilerObs extends PersistablePluginDataObject implements
|
||||||
return wmoHeader;
|
return wmoHeader;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getString(String paramName) {
|
|
||||||
String value = null;
|
|
||||||
String pName = PARM_MAP.get(paramName);
|
|
||||||
if (PROF_ID.equals(pName)) {
|
|
||||||
value = profilerId;
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String[] getStrings(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Amount getValue(String paramName) {
|
|
||||||
Amount a = null;
|
|
||||||
|
|
||||||
if (parseParameter(paramName)) {
|
|
||||||
String pName = PARM_MAP.get(parameterName);
|
|
||||||
if (unit.equals(AGL) && (levelId == 0)) {
|
|
||||||
Double dValue = null;
|
|
||||||
if (SFC_WNDSPD.equals(pName)) {
|
|
||||||
dValue = getSfcWindSpeed();
|
|
||||||
if (dValue != null) {
|
|
||||||
a = new Amount(dValue, WIND_SPEED_UNIT);
|
|
||||||
}
|
|
||||||
} else if (SFC_WNDDIR.equals(pName)) {
|
|
||||||
dValue = getSfcWindDir();
|
|
||||||
if (dValue != null) {
|
|
||||||
a = new Amount(dValue, WIND_DIR_UNIT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if ((pName != null) && (levels != null) && (levels.size() > 0)) {
|
|
||||||
profLevel = getLevel(levelId);
|
|
||||||
if (profLevel != null) {
|
|
||||||
Double dValue = null;
|
|
||||||
if (SFC_WNDSPD.equals(pName)) {
|
|
||||||
dValue = getWindSpeed();
|
|
||||||
if (dValue != null) {
|
|
||||||
a = new Amount(dValue, WIND_SPEED_UNIT);
|
|
||||||
}
|
|
||||||
} else if (SFC_WNDDIR.equals(pName)) {
|
|
||||||
dValue = getWindDirection();
|
|
||||||
if (dValue != null) {
|
|
||||||
a = new Amount(dValue, WIND_DIR_UNIT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
String pName = PARM_MAP.get(paramName);
|
|
||||||
if (STA_LAT.equals(pName)) {
|
|
||||||
a = new Amount(getLatitude(), LOCATION_UNIT);
|
|
||||||
} else if (STA_LON.equals(pName)) {
|
|
||||||
a = new Amount(getLongitude(), LOCATION_UNIT);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Collection<Amount> getValues(String paramName) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the WMOHeader of the file that contained this data.
|
* Get the WMOHeader of the file that contained this data.
|
||||||
*
|
*
|
||||||
|
@ -508,17 +409,6 @@ public class ProfilerObs extends PersistablePluginDataObject implements
|
||||||
this.levels = levels;
|
this.levels = levels;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the IDecoderGettable interface implementation. This class does not
|
|
||||||
* currently support this interface.
|
|
||||||
*
|
|
||||||
* @return Returns null.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SurfaceObsLocation getSpatialObject() {
|
public SurfaceObsLocation getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.qc.QCRecord
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.qpf.QPFRecord
|
|
|
@ -29,10 +29,6 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.geotools.coverage.grid.GeneralGridEnvelope;
|
import org.geotools.coverage.grid.GeneralGridEnvelope;
|
||||||
import org.geotools.coverage.grid.GridGeometry2D;
|
import org.geotools.coverage.grid.GridGeometry2D;
|
||||||
|
@ -40,7 +36,6 @@ import org.geotools.geometry.GeneralEnvelope;
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
import org.opengis.referencing.crs.ProjectedCRS;
|
import org.opengis.referencing.crs.ProjectedCRS;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
||||||
|
@ -74,6 +69,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -89,8 +85,6 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "qpf", indexes = { @Index(name = "qpf_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "qpf", indexes = { @Index(name = "qpf_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class QPFRecord extends PersistablePluginDataObject implements
|
public class QPFRecord extends PersistablePluginDataObject implements
|
||||||
ISpatialEnabled, IMonitorProcessing {
|
ISpatialEnabled, IMonitorProcessing {
|
||||||
|
@ -100,59 +94,48 @@ public class QPFRecord extends PersistablePluginDataObject implements
|
||||||
@Column(length = 7)
|
@Column(length = 7)
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String icao;
|
private String icao;
|
||||||
|
|
||||||
@Column(length = 30)
|
@Column(length = 30)
|
||||||
@DataURI(position = 2)
|
@DataURI(position = 2)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String fieldName;
|
private String fieldName;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@PrimaryKeyJoinColumn
|
@PrimaryKeyJoinColumn
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private RadarStation spatialInfo;
|
private RadarStation spatialInfo;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer nx = 0;
|
public Integer nx = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer ny = 0;
|
public Integer ny = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer dx = 0;
|
public Integer dx = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer dy = 0;
|
public Integer dy = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Float nsvelocity = 0.0f;
|
public Float nsvelocity = 0.0f;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Float ewvelocity = 0.0f;
|
public Float ewvelocity = 0.0f;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Float avgdir = 0.0f;
|
public Float avgdir = 0.0f;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Float avgspd = 0.0f;
|
public Float avgspd = 0.0f;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -423,17 +406,6 @@ public class QPFRecord extends PersistablePluginDataObject implements
|
||||||
return avgdir;
|
return avgdir;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the IDecoderGettable reference for this record.
|
|
||||||
*
|
|
||||||
* @return The IDecoderGettable reference for this record. Null for this
|
|
||||||
* class.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public RadarStation getSpatialInfo() {
|
public RadarStation getSpatialInfo() {
|
||||||
return spatialInfo;
|
return spatialInfo;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.scan.ScanRecord
|
|
|
@ -30,15 +30,10 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.geotools.coverage.grid.GridGeometry2D;
|
import org.geotools.coverage.grid.GridGeometry2D;
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
||||||
|
@ -78,6 +73,7 @@ import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 06, 2013 2228 njensen Use deserialize(byte[])
|
* Aug 06, 2013 2228 njensen Use deserialize(byte[])
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -94,8 +90,6 @@ import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "scan", indexes = { @Index(name = "scan_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "scan", indexes = { @Index(name = "scan_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class ScanRecord extends PersistablePluginDataObject {
|
public class ScanRecord extends PersistablePluginDataObject {
|
||||||
|
|
||||||
|
@ -110,19 +104,16 @@ public class ScanRecord extends PersistablePluginDataObject {
|
||||||
@Column(length = 7)
|
@Column(length = 7)
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String icao;
|
private String icao;
|
||||||
|
|
||||||
@Column(length = 7)
|
@Column(length = 7)
|
||||||
@DataURI(position = 2)
|
@DataURI(position = 2)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
@Column(length = 7)
|
@Column(length = 7)
|
||||||
@DataURI(position = 3)
|
@DataURI(position = 3)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private double tilt;
|
private double tilt;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -130,12 +121,10 @@ public class ScanRecord extends PersistablePluginDataObject {
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Date volScanTime = null;
|
public Date volScanTime = null;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private boolean lastElevationAngle;
|
private boolean lastElevationAngle;
|
||||||
|
|
||||||
/** table data **/
|
/** table data **/
|
||||||
|
@ -158,12 +147,6 @@ public class ScanRecord extends PersistablePluginDataObject {
|
||||||
super(uri);
|
super(uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the type of Table
|
* Gets the type of Table
|
||||||
*
|
*
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.svrwx.SvrWxRecord
|
|
|
@ -30,14 +30,9 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
||||||
|
@ -50,7 +45,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
import com.vividsolutions.jts.geom.Geometry;
|
import com.vividsolutions.jts.geom.Geometry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Pointdata for severe weather
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -64,6 +59,7 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Remove XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -79,8 +75,6 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "svrwx", indexes = { @Index(name = "svrwx_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "svrwx", indexes = { @Index(name = "svrwx_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class SvrWxRecord extends PersistablePluginDataObject implements
|
public class SvrWxRecord extends PersistablePluginDataObject implements
|
||||||
ISpatialEnabled, IPointData {
|
ISpatialEnabled, IPointData {
|
||||||
|
@ -93,34 +87,28 @@ public class SvrWxRecord extends PersistablePluginDataObject implements
|
||||||
|
|
||||||
// Text of the WMO header
|
// Text of the WMO header
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String wmoHeader = "";
|
private String wmoHeader = "";
|
||||||
|
|
||||||
@Embedded
|
@Embedded
|
||||||
@DataURI(position = 2, embedded = true)
|
@DataURI(position = 2, embedded = true)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private SurfaceObsLocation location;
|
private SurfaceObsLocation location;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
protected String eventKey;
|
protected String eventKey;
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Column
|
@Column
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
protected String reportType;
|
protected String reportType;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
protected String details;
|
protected String details;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
protected String greenTime;
|
protected String greenTime;
|
||||||
|
|
||||||
|
@ -165,11 +153,6 @@ public class SvrWxRecord extends PersistablePluginDataObject implements
|
||||||
identifier = dataURI;
|
identifier = dataURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SurfaceObsLocation getSpatialObject() {
|
public SurfaceObsLocation getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.tcg.TropicalCycloneGuidance
|
|
|
@ -30,14 +30,9 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
||||||
|
@ -64,6 +59,7 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 15, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -79,8 +75,6 @@ import com.vividsolutions.jts.geom.Geometry;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "tcg", indexes = { @Index(name = "tcg_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "tcg", indexes = { @Index(name = "tcg_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class TropicalCycloneGuidance extends PersistablePluginDataObject
|
public class TropicalCycloneGuidance extends PersistablePluginDataObject
|
||||||
implements ISpatialEnabled, IPointData {
|
implements ISpatialEnabled, IPointData {
|
||||||
|
@ -93,22 +87,18 @@ public class TropicalCycloneGuidance extends PersistablePluginDataObject
|
||||||
|
|
||||||
// Text of the WMO header
|
// Text of the WMO header
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private String wmoHeader = "";
|
private String wmoHeader = "";
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@Transient
|
@Transient
|
||||||
protected String stormName;
|
protected String stormName;
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@Column
|
@Column
|
||||||
protected String productType = "";
|
protected String productType = "";
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@DataURI(position = 2)
|
@DataURI(position = 2)
|
||||||
@Column
|
@Column
|
||||||
|
@ -116,12 +106,10 @@ public class TropicalCycloneGuidance extends PersistablePluginDataObject
|
||||||
|
|
||||||
@Embedded
|
@Embedded
|
||||||
@DataURI(position = 3, embedded = true)
|
@DataURI(position = 3, embedded = true)
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private SurfaceObsLocation location;
|
private SurfaceObsLocation location;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
protected TCGStormType type = TCGStormType.UNKNOWN;
|
protected TCGStormType type = TCGStormType.UNKNOWN;
|
||||||
|
|
||||||
|
@ -174,11 +162,6 @@ public class TropicalCycloneGuidance extends PersistablePluginDataObject
|
||||||
identifier = dataURI;
|
identifier = dataURI;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SurfaceObsLocation getSpatialObject() {
|
public SurfaceObsLocation getSpatialObject() {
|
||||||
return location;
|
return location;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.dataplugin.vil.VILRecord
|
|
|
@ -29,10 +29,6 @@ import javax.persistence.SequenceGenerator;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import javax.persistence.UniqueConstraint;
|
import javax.persistence.UniqueConstraint;
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
import org.geotools.coverage.grid.GeneralGridEnvelope;
|
import org.geotools.coverage.grid.GeneralGridEnvelope;
|
||||||
import org.geotools.coverage.grid.GridGeometry2D;
|
import org.geotools.coverage.grid.GridGeometry2D;
|
||||||
|
@ -40,7 +36,6 @@ import org.geotools.geometry.GeneralEnvelope;
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
import org.opengis.referencing.crs.ProjectedCRS;
|
import org.opengis.referencing.crs.ProjectedCRS;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.IDecoderGettable;
|
|
||||||
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
import com.raytheon.uf.common.dataplugin.PluginDataObject;
|
||||||
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
import com.raytheon.uf.common.dataplugin.annotations.DataURI;
|
||||||
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject;
|
||||||
|
@ -71,6 +66,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
* May 07, 2013 1869 bsteffen Remove dataURI column from
|
||||||
* PluginDataObject.
|
* PluginDataObject.
|
||||||
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
* Aug 30, 2013 2298 rjpeter Make getPluginName abstract
|
||||||
|
* Oct 14, 2013 2361 njensen Removed XML annotations
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -86,8 +82,6 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
*/
|
*/
|
||||||
@org.hibernate.annotations.Table(appliesTo = "vil", indexes = { @Index(name = "vil_refTimeIndex", columnNames = {
|
@org.hibernate.annotations.Table(appliesTo = "vil", indexes = { @Index(name = "vil_refTimeIndex", columnNames = {
|
||||||
"refTime", "forecastTime" }) })
|
"refTime", "forecastTime" }) })
|
||||||
@XmlRootElement
|
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class VILRecord extends PersistablePluginDataObject implements
|
public class VILRecord extends PersistablePluginDataObject implements
|
||||||
ISpatialEnabled {
|
ISpatialEnabled {
|
||||||
|
@ -99,39 +93,32 @@ public class VILRecord extends PersistablePluginDataObject implements
|
||||||
@Column(length = 7)
|
@Column(length = 7)
|
||||||
@DataURI(position = 1)
|
@DataURI(position = 1)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String icao;
|
private String icao;
|
||||||
|
|
||||||
@Column(length = 30)
|
@Column(length = 30)
|
||||||
@DataURI(position = 2)
|
@DataURI(position = 2)
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
private String fieldName;
|
private String fieldName;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@PrimaryKeyJoinColumn
|
@PrimaryKeyJoinColumn
|
||||||
@XmlElement
|
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
private RadarStation spatialInfo;
|
private RadarStation spatialInfo;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer nx = 0;
|
public Integer nx = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer ny = 0;
|
public Integer ny = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer dx = 0;
|
public Integer dx = 0;
|
||||||
|
|
||||||
@Column
|
@Column
|
||||||
@DynamicSerializeElement
|
@DynamicSerializeElement
|
||||||
@XmlElement(nillable = false)
|
|
||||||
public Integer dy = 0;
|
public Integer dy = 0;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
|
@ -329,17 +316,6 @@ public class VILRecord extends PersistablePluginDataObject implements
|
||||||
return dy;
|
return dy;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the IDecoderGettable reference for this record.
|
|
||||||
*
|
|
||||||
* @return The IDecoderGettable reference for this record. Null for this
|
|
||||||
* class.
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public IDecoderGettable getDecoderGettable() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public RadarStation getSpatialInfo() {
|
public RadarStation getSpatialInfo() {
|
||||||
return spatialInfo;
|
return spatialInfo;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,12 +37,17 @@ import javax.measure.unit.Unit;
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* 20071129 472 jkorman Initial Coding.
|
* 20071129 472 jkorman Initial Coding.
|
||||||
* 20090402 952 jsanchez Added PIREP constants.
|
* 20090402 952 jsanchez Added PIREP constants.
|
||||||
|
* Oct 14, 2013 2361 njensen Deprecated
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author jkorman
|
* @author jkorman
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
|
* @deprecated With the pointdata APIs, this class is deprecated. Anything using
|
||||||
|
* this should be removed from the system or converted to use the
|
||||||
|
* pointdata APIs.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public interface IDecoderGettable {
|
public interface IDecoderGettable {
|
||||||
|
|
||||||
public static class Amount {
|
public static class Amount {
|
||||||
|
@ -147,19 +152,19 @@ public interface IDecoderGettable {
|
||||||
public static final String UA_PRESSURE = "UA.PRESSURE";
|
public static final String UA_PRESSURE = "UA.PRESSURE";
|
||||||
|
|
||||||
public static final String UA_GEOHGT = "UA.GEOPOTENTIAL_HGT";
|
public static final String UA_GEOHGT = "UA.GEOPOTENTIAL_HGT";
|
||||||
|
|
||||||
public static final String UA_FLTLVL = "UA.FLT_LVL";
|
public static final String UA_FLTLVL = "UA.FLT_LVL";
|
||||||
|
|
||||||
public static final String UA_ICETYPE = "UA.ICE_TYPE";
|
public static final String UA_ICETYPE = "UA.ICE_TYPE";
|
||||||
|
|
||||||
public static final String UA_ICEINTENSE = "UA.ICE_INTENSITY";
|
public static final String UA_ICEINTENSE = "UA.ICE_INTENSITY";
|
||||||
|
|
||||||
public static final String UA_TURBFREQ = "UA.TURB_FREQ";
|
public static final String UA_TURBFREQ = "UA.TURB_FREQ";
|
||||||
|
|
||||||
public static final String UA_TURBINTENSE = "UA.TURB_INTENSITY";
|
public static final String UA_TURBINTENSE = "UA.TURB_INTENSITY";
|
||||||
|
|
||||||
public static final String UA_TOPHGT = "UA.TOP_HGT";
|
public static final String UA_TOPHGT = "UA.TOP_HGT";
|
||||||
|
|
||||||
public static final String UA_BOTHGT = "UA.BOTTOM_HGT";
|
public static final String UA_BOTHGT = "UA.BOTTOM_HGT";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
com.raytheon.uf.common.tafqueue.TafQueueRecord
|
|
|
@ -34,12 +34,11 @@ import javax.persistence.Table;
|
||||||
import org.hibernate.annotations.Index;
|
import org.hibernate.annotations.Index;
|
||||||
|
|
||||||
import com.raytheon.uf.common.dataplugin.persist.IPersistableDataObject;
|
import com.raytheon.uf.common.dataplugin.persist.IPersistableDataObject;
|
||||||
import com.raytheon.uf.common.serialization.ISerializableObject;
|
|
||||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
||||||
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO Add Description
|
* A record corresponding to a TAF ready to be sent
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
*
|
*
|
||||||
|
@ -59,7 +58,8 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
||||||
@Table(name = "taf_queue")
|
@Table(name = "taf_queue")
|
||||||
@DynamicSerialize
|
@DynamicSerialize
|
||||||
public class TafQueueRecord implements IPersistableDataObject,
|
public class TafQueueRecord implements IPersistableDataObject,
|
||||||
ISerializableObject, Comparable<TafQueueRecord> {
|
Comparable<TafQueueRecord> {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
public enum TafQueueState {
|
public enum TafQueueState {
|
||||||
|
@ -118,9 +118,9 @@ public class TafQueueRecord implements IPersistableDataObject,
|
||||||
@Column
|
@Column
|
||||||
private boolean display;
|
private boolean display;
|
||||||
|
|
||||||
public TafQueueRecord() {
|
public TafQueueRecord() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a record with the desired values.
|
* Construct a record with the desired values.
|
||||||
|
@ -158,10 +158,13 @@ public class TafQueueRecord implements IPersistableDataObject,
|
||||||
* @return info
|
* @return info
|
||||||
*/
|
*/
|
||||||
public String getInfo() {
|
public String getInfo() {
|
||||||
String productTag = "TAF";
|
String productTag = "TAF";
|
||||||
if ( forecasterId == TafQueueVftConfigMgr.getInstance().getFcstid() ) { // for VFT product (DR15375)
|
if (forecasterId == TafQueueVftConfigMgr.getInstance().getFcstid()) { // for
|
||||||
productTag = "VFT";
|
// VFT
|
||||||
}
|
// product
|
||||||
|
// (DR15375)
|
||||||
|
productTag = "VFT";
|
||||||
|
}
|
||||||
return String
|
return String
|
||||||
.format("%1$03d-%7$s%8$s%5$s-%6$s-%7$s-%2$ty%2$tm%2$td%2$tH%2$tM-%4$s-%9$d",
|
.format("%1$03d-%7$s%8$s%5$s-%6$s-%7$s-%2$ty%2$tm%2$td%2$tH%2$tM-%4$s-%9$d",
|
||||||
forecasterId, headerTime, tafText, bbb, siteId, wmoId,
|
forecasterId, headerTime, tafText, bbb, siteId, wmoId,
|
||||||
|
|
Loading…
Add table
Reference in a new issue