Issue #1151 fix radar updates to use levels
Former-commit-id:f04ac9f7b0
[formerly9efd40dfd0
] [formerlyf04ac9f7b0
[formerly9efd40dfd0
] [formerly8ac1373035
[formerly 7666bee12af83d195fccd845e874df19eabd94f6]]] Former-commit-id:8ac1373035
Former-commit-id:956b6ecfdb
[formerlya1d70499eb
] Former-commit-id:060aed7ce2
This commit is contained in:
parent
97ce309e3a
commit
07cae7c217
1 changed files with 18 additions and 2 deletions
|
@ -35,12 +35,12 @@ import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||||
import com.raytheon.uf.common.status.UFStatus;
|
import com.raytheon.uf.common.status.UFStatus;
|
||||||
import com.raytheon.uf.common.status.UFStatus.Priority;
|
import com.raytheon.uf.common.status.UFStatus.Priority;
|
||||||
import com.raytheon.uf.common.time.DataTime;
|
import com.raytheon.uf.common.time.DataTime;
|
||||||
|
import com.raytheon.uf.viz.core.alerts.AlertMessage;
|
||||||
import com.raytheon.uf.viz.core.exception.NoDataAvailableException;
|
import com.raytheon.uf.viz.core.exception.NoDataAvailableException;
|
||||||
import com.raytheon.uf.viz.core.exception.VizException;
|
import com.raytheon.uf.viz.core.exception.VizException;
|
||||||
import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData;
|
import com.raytheon.uf.viz.core.rsc.AbstractRequestableResourceData;
|
||||||
import com.raytheon.uf.viz.core.rsc.AbstractVizResource;
|
import com.raytheon.uf.viz.core.rsc.AbstractVizResource;
|
||||||
import com.raytheon.uf.viz.core.rsc.LoadProperties;
|
import com.raytheon.uf.viz.core.rsc.LoadProperties;
|
||||||
import com.raytheon.uf.viz.core.status.StatusConstants;
|
|
||||||
import com.raytheon.viz.radar.interrogators.IRadarInterrogator;
|
import com.raytheon.viz.radar.interrogators.IRadarInterrogator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -60,7 +60,8 @@ import com.raytheon.viz.radar.interrogators.IRadarInterrogator;
|
||||||
*/
|
*/
|
||||||
@XmlAccessorType(XmlAccessType.NONE)
|
@XmlAccessorType(XmlAccessType.NONE)
|
||||||
public class RadarResourceData extends AbstractRequestableResourceData {
|
public class RadarResourceData extends AbstractRequestableResourceData {
|
||||||
private static final transient IUFStatusHandler statusHandler = UFStatus.getHandler(RadarResourceData.class);
|
private static final transient IUFStatusHandler statusHandler = UFStatus
|
||||||
|
.getHandler(RadarResourceData.class);
|
||||||
|
|
||||||
@XmlAttribute
|
@XmlAttribute
|
||||||
protected String pointID = "";
|
protected String pointID = "";
|
||||||
|
@ -228,4 +229,19 @@ public class RadarResourceData extends AbstractRequestableResourceData {
|
||||||
return all;
|
return all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void update(AlertMessage... messages) {
|
||||||
|
for (AlertMessage message : messages) {
|
||||||
|
// since radar dataTimes are expected to set the level value,
|
||||||
|
// need to do that here.
|
||||||
|
Object timeObj = message.decodedAlert.get("dataTime");
|
||||||
|
if (timeObj instanceof DataTime) {
|
||||||
|
DataTime time = (DataTime) timeObj;
|
||||||
|
time.setLevelValue(((Number) message.decodedAlert
|
||||||
|
.get("primaryElevationAngle")).doubleValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
super.update(messages);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue