diff --git a/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResourceData.java b/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResourceData.java index 0463297fdf..5d9e3e5c52 100644 --- a/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResourceData.java +++ b/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResourceData.java @@ -41,6 +41,7 @@ import javax.xml.bind.annotation.XmlElement; import com.raytheon.uf.common.dataplugin.PluginDataObject; import com.raytheon.uf.common.time.DataTime; import com.raytheon.uf.common.time.DataTime.FLAG; +import com.raytheon.uf.viz.core.alerts.DataCubeAlertMessageParser; import com.raytheon.uf.viz.core.exception.VizException; import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData; import com.raytheon.uf.viz.core.rsc.AbstractVizResource; @@ -60,6 +61,7 @@ import com.vividsolutions.jts.geom.Coordinate; * Apr 12, 2011 bsteffen Initial creation * May 31, 2013 1847 bsteffen D2D nsharp will now format Lat/Lons as * stationId like NC ncharp. + * May 08, 2014 2060 njensen Constructor sets alert parser * * * @@ -81,6 +83,7 @@ public abstract class D2DNSharpResourceData extends public D2DNSharpResourceData() { super(); + this.setAlertParser(new DataCubeAlertMessageParser()); } public D2DNSharpResourceData(String soundingType) { diff --git a/cave/com.raytheon.uf.viz.xy.crosssection/src/com/raytheon/uf/viz/xy/crosssection/rsc/CrossSectionResourceData.java b/cave/com.raytheon.uf.viz.xy.crosssection/src/com/raytheon/uf/viz/xy/crosssection/rsc/CrossSectionResourceData.java index a9a1ef4d2f..5d5296d1fe 100644 --- a/cave/com.raytheon.uf.viz.xy.crosssection/src/com/raytheon/uf/viz/xy/crosssection/rsc/CrossSectionResourceData.java +++ b/cave/com.raytheon.uf.viz.xy.crosssection/src/com/raytheon/uf/viz/xy/crosssection/rsc/CrossSectionResourceData.java @@ -40,6 +40,7 @@ import org.eclipse.core.runtime.Platform; import com.raytheon.uf.common.dataplugin.PluginDataObject; import com.raytheon.uf.common.time.DataTime; import com.raytheon.uf.viz.core.RecordFactory; +import com.raytheon.uf.viz.core.alerts.DataCubeAlertMessageParser; import com.raytheon.uf.viz.core.drawables.IDescriptor; import com.raytheon.uf.viz.core.exception.VizException; import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData; @@ -59,6 +60,7 @@ import com.raytheon.uf.viz.xy.crosssection.display.CrossSectionDescriptor; * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * Feb 17, 2009 njensen Initial creation + * May 08, 2014 2060 njensen Constructor sets alert parser * * * @@ -88,6 +90,10 @@ public class CrossSectionResourceData extends AbstractRequestableResourceData { private Set blackListedTimes = new HashSet(); + public CrossSectionResourceData() { + this.setAlertParser(new DataCubeAlertMessageParser()); + } + @Override public AbstractVizResource construct(LoadProperties loadProperties, IDescriptor descriptor) throws VizException { diff --git a/cave/com.raytheon.uf.viz.xy.timeseries/src/com/raytheon/uf/viz/xy/timeseries/rsc/TimeSeriesResourceData.java b/cave/com.raytheon.uf.viz.xy.timeseries/src/com/raytheon/uf/viz/xy/timeseries/rsc/TimeSeriesResourceData.java index c15aa1eab0..4018fd3dfe 100644 --- a/cave/com.raytheon.uf.viz.xy.timeseries/src/com/raytheon/uf/viz/xy/timeseries/rsc/TimeSeriesResourceData.java +++ b/cave/com.raytheon.uf.viz.xy.timeseries/src/com/raytheon/uf/viz/xy/timeseries/rsc/TimeSeriesResourceData.java @@ -35,6 +35,7 @@ import org.eclipse.core.runtime.Platform; import com.raytheon.uf.common.dataplugin.PluginDataObject; import com.raytheon.uf.viz.core.RecordFactory; +import com.raytheon.uf.viz.core.alerts.DataCubeAlertMessageParser; import com.raytheon.uf.viz.core.drawables.IDescriptor; import com.raytheon.uf.viz.core.exception.VizException; import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData; @@ -55,6 +56,7 @@ import com.vividsolutions.jts.geom.Coordinate; * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- * Feb 23, 2009 njensen Initial creation + * May 08, 2014 2060 njensen Constructor sets alert parser * * * @@ -107,6 +109,10 @@ public class TimeSeriesResourceData extends AbstractRequestableResourceData private AbstractVizResource secondaryResource; + public TimeSeriesResourceData() { + this.setAlertParser(new DataCubeAlertMessageParser()); + } + /* * (non-Javadoc) * @@ -255,10 +261,12 @@ public class TimeSeriesResourceData extends AbstractRequestableResourceData this.source = source; } + @Override public String getPointLetter() { return pointLetter; } + @Override public void setPointLetter(String pointLetter) { this.pointLetter = pointLetter; } diff --git a/cave/com.raytheon.uf.viz.xy.varheight/src/com/raytheon/uf/viz/xy/varheight/rsc/VarHeightResourceData.java b/cave/com.raytheon.uf.viz.xy.varheight/src/com/raytheon/uf/viz/xy/varheight/rsc/VarHeightResourceData.java index 1d803ffc92..d87bcd841a 100644 --- a/cave/com.raytheon.uf.viz.xy.varheight/src/com/raytheon/uf/viz/xy/varheight/rsc/VarHeightResourceData.java +++ b/cave/com.raytheon.uf.viz.xy.varheight/src/com/raytheon/uf/viz/xy/varheight/rsc/VarHeightResourceData.java @@ -37,6 +37,7 @@ import com.raytheon.uf.common.dataplugin.PluginDataObject; import com.raytheon.uf.common.geospatial.ISpatialEnabled; import com.raytheon.uf.common.time.DataTime; import com.raytheon.uf.viz.core.RecordFactory; +import com.raytheon.uf.viz.core.alerts.DataCubeAlertMessageParser; import com.raytheon.uf.viz.core.drawables.IDescriptor; import com.raytheon.uf.viz.core.exception.VizException; import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData; @@ -49,7 +50,7 @@ import com.raytheon.viz.core.rsc.ICombinedResourceData; import com.vividsolutions.jts.geom.Coordinate; /** - * TODO Add Description + * Resource data for var height displays * *
  * 
@@ -59,6 +60,7 @@ import com.vividsolutions.jts.geom.Coordinate;
  * Feb 20, 2009            njensen     Initial creation
  * Aug 15, 2013 2258       bsteffen    Convert profiler sounding to var height
  *                                     with hodo.
+ * May 08, 2014 2060       njensen     Constructor sets alert parser
  * 
  * 
* @@ -95,6 +97,10 @@ public class VarHeightResourceData extends AbstractRequestableResourceData private AbstractVizResource secondaryResource; + public VarHeightResourceData() { + this.setAlertParser(new DataCubeAlertMessageParser()); + } + /* * (non-Javadoc) * @@ -155,10 +161,6 @@ public class VarHeightResourceData extends AbstractRequestableResourceData rsc.addRecord(rec); } return rsc; - } else { - throw new VizException( - "No resource type available for record type: " - + pdo.getClass().getName()); } } throw new VizException( @@ -351,10 +353,12 @@ public class VarHeightResourceData extends AbstractRequestableResourceData this.point = pointCoordinate; } + @Override public String getPointLetter() { return pointLetter; } + @Override public void setPointLetter(String pointLetter) { this.pointLetter = pointLetter; }