From 1061ccbc4cc04007c8b5208c3aa9b399115b283f Mon Sep 17 00:00:00 2001 From: Dave Hladky Date: Wed, 25 Jan 2012 10:53:51 -0600 Subject: [PATCH] Issue #15 Wes2Bridge time settings Former-commit-id: 66fbee3e04c4e2ddda35829321606d021e348fde [formerly 594412a5b5dc3397ff4f146c1d33b4b44fb41d2c] [formerly 66fbee3e04c4e2ddda35829321606d021e348fde [formerly 594412a5b5dc3397ff4f146c1d33b4b44fb41d2c] [formerly b03b324ead689328746d1e33ae50cba0834ee06d [formerly 61cb464263b06c01f4ea0b7270628f03e9e48d5a]]] Former-commit-id: b03b324ead689328746d1e33ae50cba0834ee06d Former-commit-id: 4e8acfaba33e8cf110561e5d4fe353e1ee348f5b [formerly 2d53cfbe41fbe44769c55e7e043d623ece6a2bb4] Former-commit-id: 8553b8a654b95ce30ffaffd0cb88d3d3d654fca3 --- .../uf/viz/core/catalog/CatalogQuery.java | 4 ++++ .../monitor/ffmp/ui/rsc/FFMPDataLoader.java | 3 ++- .../cave/refresh/ThinClientURICatalog.java | 13 +++++++---- .../satellite/SatelliteDataCubeAdapter.java | 2 ++ .../edex_static/base/python/ObsRequest.py | 21 +++++++++--------- .../build.edex/tmp/includes/core.includes | 2 +- .../build.edex/tmp/includes/cots.includes | 2 +- .../build.edex/tmp/includes/plugins.includes | 2 +- .../tmp/uengine/com.raytheon.edex.common.jar | Bin 347047 -> 347047 bytes .../com.raytheon.uf.common.serialization.jar | Bin 97515 -> 97515 bytes .../dataquery/requests/TimeQueryRequest.java | 14 +++++++++++- .../database/handlers/TimeQueryHandler.java | 11 +++++++++ 12 files changed, 55 insertions(+), 19 deletions(-) diff --git a/cave/com.raytheon.uf.viz.core/src/com/raytheon/uf/viz/core/catalog/CatalogQuery.java b/cave/com.raytheon.uf.viz.core/src/com/raytheon/uf/viz/core/catalog/CatalogQuery.java index 92fae31080..0d9280036e 100644 --- a/cave/com.raytheon.uf.viz.core/src/com/raytheon/uf/viz/core/catalog/CatalogQuery.java +++ b/cave/com.raytheon.uf.viz.core/src/com/raytheon/uf/viz/core/catalog/CatalogQuery.java @@ -36,6 +36,7 @@ import com.raytheon.uf.common.status.UFStatus; import com.raytheon.uf.common.status.UFStatus.Priority; import com.raytheon.uf.common.time.BinOffset; import com.raytheon.uf.common.time.DataTime; +import com.raytheon.uf.common.time.SimulatedTime; import com.raytheon.uf.viz.core.comm.Connector; import com.raytheon.uf.viz.core.exception.VizException; import com.raytheon.uf.viz.core.requests.ThriftClient; @@ -232,7 +233,9 @@ public class CatalogQuery { req.setMaxQuery(max); req.setPluginName(pluginName); req.setBinOffset(binOffset); + req.setSimDate(SimulatedTime.getSystemTime().getTime()); req.setQueryTerms(constraintMap); + return req; } @@ -251,6 +254,7 @@ public class CatalogQuery { * @return the available times that meet the constraints * @throws VizException */ + @SuppressWarnings("unchecked") public static DataTime[] performTimeQuery( Map constraintMap, boolean max, BinOffset binOffset) throws VizException { diff --git a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataLoader.java b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataLoader.java index 17c89b5401..b8a1f6f828 100644 --- a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataLoader.java +++ b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataLoader.java @@ -39,6 +39,7 @@ import com.raytheon.uf.common.serialization.SerializationException; import com.raytheon.uf.common.serialization.SerializationUtil; import com.raytheon.uf.common.status.IUFStatusHandler; import com.raytheon.uf.common.status.UFStatus; +import com.raytheon.uf.common.time.SimulatedTime; import com.raytheon.uf.common.util.FileUtil; import com.raytheon.uf.viz.core.VizApp; import com.raytheon.uf.viz.monitor.ffmp.FFMPMonitor; @@ -474,7 +475,7 @@ public class FFMPDataLoader extends Thread { FFMPBasinData basinData = null; - if (file.exists()) { + if (file.exists() && SimulatedTime.getSystemTime().isRealTime()) { System.out.println("File path: " + file.getName()); diff --git a/cave/com.raytheon.uf.viz.thinclient.cave/src/com/raytheon/uf/viz/thinclient/cave/refresh/ThinClientURICatalog.java b/cave/com.raytheon.uf.viz.thinclient.cave/src/com/raytheon/uf/viz/thinclient/cave/refresh/ThinClientURICatalog.java index 3b412d5af4..941fea86a4 100644 --- a/cave/com.raytheon.uf.viz.thinclient.cave/src/com/raytheon/uf/viz/thinclient/cave/refresh/ThinClientURICatalog.java +++ b/cave/com.raytheon.uf.viz.thinclient.cave/src/com/raytheon/uf/viz/thinclient/cave/refresh/ThinClientURICatalog.java @@ -35,6 +35,7 @@ import com.raytheon.uf.common.dataquery.requests.TimeQueryRequest; import com.raytheon.uf.common.status.IUFStatusHandler; import com.raytheon.uf.common.status.UFStatus; import com.raytheon.uf.common.time.DataTime; +import com.raytheon.uf.common.time.SimulatedTime; import com.raytheon.uf.viz.core.datastructure.DataCubeContainer; import com.raytheon.uf.viz.core.exception.VizException; import com.raytheon.uf.viz.core.rsc.URICatalog; @@ -122,6 +123,7 @@ public class ThinClientURICatalog extends URICatalog implements TimeQueryRequest request = new TimeQueryRequest(); request.setPluginName(pluginName); request.setMaxQuery(true); + request.setSimDate(SimulatedTime.getSystemTime().getTime()); request.setQueryTerms(map); List requestList = requests.get(pluginName); if (requestList == null) { @@ -182,6 +184,7 @@ public class ThinClientURICatalog extends URICatalog implements } } } + rebuildTree(); } @Override @@ -192,11 +195,13 @@ public class ThinClientURICatalog extends URICatalog implements } public void requeryAllMenuTimes() { - Map, List> map = new HashMap, List>(); - for (DataPair pair : getDataPairs()) { - map.put(pair.metadata, pair.data); + if (enableMenuTimes) { + Map, List> map = new HashMap, List>(); + for (DataPair pair : getDataPairs()) { + map.put(pair.metadata, pair.data); + } + queryMenuTimes(map, null, false); } - queryMenuTimes(map, null, false); } } diff --git a/cave/com.raytheon.viz.satellite/src/com/raytheon/viz/satellite/SatelliteDataCubeAdapter.java b/cave/com.raytheon.viz.satellite/src/com/raytheon/viz/satellite/SatelliteDataCubeAdapter.java index 6ce7ea4017..f7bb8f0325 100644 --- a/cave/com.raytheon.viz.satellite/src/com/raytheon/viz/satellite/SatelliteDataCubeAdapter.java +++ b/cave/com.raytheon.viz.satellite/src/com/raytheon/viz/satellite/SatelliteDataCubeAdapter.java @@ -58,6 +58,7 @@ import com.raytheon.uf.common.geospatial.MapUtil; import com.raytheon.uf.common.pointdata.PointDataContainer; import com.raytheon.uf.common.time.BinOffset; import com.raytheon.uf.common.time.DataTime; +import com.raytheon.uf.common.time.SimulatedTime; import com.raytheon.uf.viz.core.HDF5Util; import com.raytheon.uf.viz.core.catalog.CatalogQuery; import com.raytheon.uf.viz.core.catalog.LayerProperty; @@ -541,6 +542,7 @@ public class SatelliteDataCubeAdapter implements IDataCubeAdapter { DerivParamField field = (DerivParamField) ifield; TimeQueryRequest newRequest = new TimeQueryRequest(); newRequest.setBinOffset(binOffset); + newRequest.setSimDate(SimulatedTime.getSystemTime().getTime()); newRequest.setMaxQuery(false); newRequest.setQueryTerms(modifyQuery(queryParams, field)); newRequest.setPluginName("satellite"); diff --git a/edexOsgi/build.edex/esb/data/utility/edex_static/base/python/ObsRequest.py b/edexOsgi/build.edex/esb/data/utility/edex_static/base/python/ObsRequest.py index d076758484..c928079efe 100644 --- a/edexOsgi/build.edex/esb/data/utility/edex_static/base/python/ObsRequest.py +++ b/edexOsgi/build.edex/esb/data/utility/edex_static/base/python/ObsRequest.py @@ -1,19 +1,19 @@ ## # This software was developed and / or modified by Raytheon Company, -# pursuant to Contract DG133W-05-CQ-1067 with the US Government. -# -# U.S. EXPORT CONTROLLED TECHNICAL DATA +# pursuant to Contract DG133W-05-CQ-1067 with the US Government. +# +# U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to non-U.S. persons whether in the United States or abroad requires # an export license or other authorization. # -# Contractor Name: Raytheon Company -# Contractor Address: 6825 Pine Street, Suite 340 -# Mail Stop B8 -# Omaha, NE 68106 -# 402.291.0100 -# +# Contractor Name: Raytheon Company +# Contractor Address: 6825 Pine Street, Suite 340 +# Mail Stop B8 +# Omaha, NE 68106 +# 402.291.0100 +# # See the AWIPS II Master Rights File ("Master Rights File.pdf") for # further licensing information. ## @@ -62,7 +62,8 @@ class ObsRequest(PointDataQuery.PointDataQuery): self._pdq.setParameters(MetarPointDataTransform.ALL_PARAMS_LIST) self.queryResults = self._pdq.execute() if self.queryResults is None: - self.makeNullResponse() + response = ArrayList() + return response else: records = MetarPointDataTransform.toMetarRecords(self.queryResults) size = len(records) diff --git a/edexOsgi/build.edex/tmp/includes/core.includes b/edexOsgi/build.edex/tmp/includes/core.includes index b229dc770a..b5f4413a14 100644 --- a/edexOsgi/build.edex/tmp/includes/core.includes +++ b/edexOsgi/build.edex/tmp/includes/core.includes @@ -1,4 +1,4 @@ -## Core includes file generated on 2012-01-20 17:08:45 GMT +## Core includes file generated on 2012-01-24 20:30:22 GMT com.raytheon.edex.rpgenvdata/component-deploy.xml com.raytheon.uf.common.jms/component-deploy.xml com.raytheon.uf.edex.database/component-deploy.xml diff --git a/edexOsgi/build.edex/tmp/includes/cots.includes b/edexOsgi/build.edex/tmp/includes/cots.includes index 1fc912c95c..95b3c9d04b 100644 --- a/edexOsgi/build.edex/tmp/includes/cots.includes +++ b/edexOsgi/build.edex/tmp/includes/cots.includes @@ -1,4 +1,4 @@ -## Cots includes file generated on 2012-01-20 17:08:45 GMT +## Cots includes file generated on 2012-01-24 20:30:22 GMT com.sun.jndi.nis/*.jar net.sf.ehcache/*.jar javax.persistence/*.jar diff --git a/edexOsgi/build.edex/tmp/includes/plugins.includes b/edexOsgi/build.edex/tmp/includes/plugins.includes index a38b6972d2..0246843b10 100644 --- a/edexOsgi/build.edex/tmp/includes/plugins.includes +++ b/edexOsgi/build.edex/tmp/includes/plugins.includes @@ -1,4 +1,4 @@ -## Plug-in includes file generated on 2012-01-20 17:08:45 GMT +## Plug-in includes file generated on 2012-01-24 20:30:22 GMT com.raytheon.uf.edex.plugin.satellite.mcidas/component-deploy.xml com.raytheon.edex.plugin.ldadhydro/component-deploy.xml com.raytheon.uf.edex.plugin.loctables/component-deploy.xml diff --git a/edexOsgi/build.edex/tmp/uengine/com.raytheon.edex.common.jar b/edexOsgi/build.edex/tmp/uengine/com.raytheon.edex.common.jar index 128f3525a9a05ec14526e457c62997d6dae22e27..4eca5dab047ea5d6dac21b353104083bd98906b2 100644 GIT binary patch delta 6844 zcmZ8kd0bW1_P=MJz2O30ka-pr!2x8FSs4TcN5H3nCZ^={ET_V;6g5XuQ{PRu*2|#` zdX_&$%xmWG`uS3E9`dCnn7=GhP{Dcj?Yq`G{XQ@L;C%0z*LSVG?>&{$yHa{v3i|5Y z*<}Cwp)`4wrGtL1G`TAIJzZZsKH0iY4}s@py#qX*d1rX0@51&!kRikeGFW%?z?u&C=;#EB=f&Z2;$3e3Q;Sh~A7P|p`K=rwNn@d_19>FF zGkI7RC}s~U7XX|_P6vzX`Qx(DG?jDQ!me*f1nR1w%o2dEO zEvo0N9gn@-T6Y-1?vKAmF!z(A2>Nf>2f%9Cv=6#d>8(whT%j@T(?$ykV_oe7=~{H= z{vy@D8Yk<3)qd8P16)3Pq9!tU`%2h{>V}=!P-bI5{F4Wc_)_f-C~j3cVC4@tZEVETp`@7>+d^5 zxnJJ@8e1Isr~uaa>s{KX;A9)hwSNGTj%IB)90fSh^slw7^45H0lY_AQ_xA2`(vHH? z+D^38)&rArqPG@j&u9D0TRR2C$*I0tDg<5YcdY!7YT;MiWJpdZK_eJ2WrCRvPgT0d|H-h?;v`=Tr0t>x0Y%p8kFtz z^TnE(%w#&u<=iB-b-&bVTo${lx>qdM=41SdwIT(HQ^Y zhuV)AzglV^MFVLChqb4`t}XAl_9o77Z>_cyW>{LMC4kkJb=pKXKtZ>(J{WggvzCIM zpWoNMbcJg9!Y!#zs*R0TN!8J;3g{_*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*zirJUD^=p2xw$hg)?bb>$uF{B@1g31_bqS2Hj#*%AUEQSA9ET#8|Blp2^#O1~~ z8g_#zNs1>)S-j~UPc(Zb(6C=g5MAM$=f`Ec=gV6$!dLE15FMbzYYD`Bd?E#UCy^uv z63O2^iC9zJ;ZcV+jU;OGY7*6{`05UL!8Xcp}XvF>sBYxa@Xb1ayxXT z+WVVeO;_UjVpl3TJeMS6bE)I4CU}rbHd%R8`(hKE$s<)jH}XzIf<*5Z_~akZOAm8oSn$*e&Qu nt5M#QuA*b6%Ci^Q4DKbe;N7>jmvXoNuCMPUG6A&jEoT1*Do{HD diff --git a/edexOsgi/build.edex/tmp/uengine/com.raytheon.uf.common.serialization.jar b/edexOsgi/build.edex/tmp/uengine/com.raytheon.uf.common.serialization.jar index 343c4c9e7c3ef0ae8d470101393de004b13a1edd..e04342cf0c805c45e5d15bf79a1ee49524f2e1f3 100644 GIT binary patch delta 1419 zcmYL{dq|T}7{>Sd%}d6zETx-WC@fMdN7T|Z%Su}oN;mDYIhUK$Ih~hzTdmO_QBY6| zzAg|^R1=GAql*axlju(Of+#{Fsq9KfSW)>s?}_~9{PvvZd!F+iPv1az-$1w~e}$xu zRw;jvYjyiH)1^nXy7Ri*B<-(8H5o>~WI@Vlm5>}U1i?vOgrL4hE+6f#HGxr=r z*Zc&Ao(0nwhGr#7!v@V+$wzF_PEx53NxrVbN%C1U#RlEkUQ`E`KH}p(&6&+GL?2)X z<@Ls+?6kQZUf+h&`w&tr=lI;Otcw_?*sKhD%1zw=UO`^qteUNnfx?Ip%2YdIuI}y(Q>pBcD%CPyL2If! zyqZP_J1$@2C~xO322F_g(-GZ?2oI*+OpQdk&6Pck^#46Ysg!?P)+aGV&NnX?-|qj&XX^ZQ zj6)2+gJ_mVNtB}$T{1{i77eC-gLD_C3+`fFrNZC+gi)jgYyBO3S~$Q)kE>th_Cwpfvr{~KdTitR!~RfFo)`B6Cj~pO3PO`_e|Oxv(Em^@C_ Zv``v;>088SddCORqrF63kg+*!Qlrqh-th8mJbki=IbGbR4b2FW{)f)ZL1q|v7 zzAg|^R7OR%(Zz&;MRcbd6+{sdNo7|;!is9&^PXt`e7`;CInVQ+!|Cmh=- zV>Ie-d`bEq?PO_ON&5MWJ0xZ9NDD-U{b7g>Ul#_&64}j)K6-it6puEZm-fYukf5~3 zEra5Z|G?hQ2_3w0dgKpQ+C~?~OS5;R$v;!a;+v?OjBmbfD!y)=PR)`}>vE9!NjHWg zVrQOX=$f6#&^>1o!@!&*X;5fWPVymJjEgjy1CrczaH?|FOmP8Et`F7zMUQ#hr+G6N z2I&0^!GfLyl$|uU!z-^Xe*huHa*pSIWu4D3!DeM>tu%4_*Xrb0n8$6t$9Z48CM}ee ztwx562MhSpB94$KKiV6qdgSkIOW@5tbp?6;v*B!w@)t)AQBSok_Uf+AFpb6@rO_;w zi%z8~gPk-y&~f=XNBKH;GH8RuTZddrLUI4_-vKl$!z9X6i!K=?s)zyI(o$9mC@PD3kf3%gf|N0rnumfe6w%FrlFgZ> zY~4U9fc6b^TnasDrPx3j>Z4X<1I<(2$`b?OK*~fTl|b2QB;3Ao*GRcg;!0^Dprn-a zfD@&(8t|u-@&S62$T?sV+uxXIuKIkHq%xWgC@u@NtBPDkS%8OSv;f-^%v1=lnQ1fN zotaty){WEv=-x=p07E%>058j_0+4SZFW|O?wgXmLX&d0Vm0W=36;urfR*(%a#YRiY+_O(OZ(CUIj$byNv+u#VOP z66;0I-g;_+GRQ41e7BocLFsXeODJv-$GOoUy0RKYU|S=(VIJQ^YXB`xBJg{YXm>T! f7A%F5M=9DC%EUi?i#TPc3hFye_E0v!?ji4AQ!UI| diff --git a/edexOsgi/com.raytheon.uf.common.dataquery/src/com/raytheon/uf/common/dataquery/requests/TimeQueryRequest.java b/edexOsgi/com.raytheon.uf.common.dataquery/src/com/raytheon/uf/common/dataquery/requests/TimeQueryRequest.java index 732851b889..0cf4c83020 100644 --- a/edexOsgi/com.raytheon.uf.common.dataquery/src/com/raytheon/uf/common/dataquery/requests/TimeQueryRequest.java +++ b/edexOsgi/com.raytheon.uf.common.dataquery/src/com/raytheon/uf/common/dataquery/requests/TimeQueryRequest.java @@ -19,6 +19,7 @@ **/ package com.raytheon.uf.common.dataquery.requests; +import java.util.Date; import java.util.Map; import com.raytheon.uf.common.serialization.annotations.DynamicSerialize; @@ -53,6 +54,9 @@ public class TimeQueryRequest implements IServerRequest { @DynamicSerializeElement private boolean maxQuery; + @DynamicSerializeElement + private Date simDate; + @DynamicSerializeElement private Map queryTerms; @@ -91,11 +95,19 @@ public class TimeQueryRequest implements IServerRequest { return queryTerms; } + public void setSimDate(Date simDate) { + this.simDate = simDate; + } + + public Date getSimDate() { + return simDate; + } + @Override public String toString() { return "TimeQueryRequest [pluginName=" + pluginName + ", maxQuery=" + maxQuery + ", queryTerms=" + queryTerms + ", binOffset=" - + binOffset + "]"; + + binOffset + " simDate=" + simDate + " ]"; } } diff --git a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/handlers/TimeQueryHandler.java b/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/handlers/TimeQueryHandler.java index ba94ce5e95..ab0b0335d3 100644 --- a/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/handlers/TimeQueryHandler.java +++ b/edexOsgi/com.raytheon.uf.edex.database/src/com/raytheon/uf/edex/database/handlers/TimeQueryHandler.java @@ -70,6 +70,16 @@ public class TimeQueryHandler implements IRequestHandler { map.remove("pluginName"); } + // Simulated Date is the date set in the CAVE calling this + if (request.getSimDate() != null) { + RequestConstraint timeConstraint = new RequestConstraint(); + timeConstraint.setConstraintType(ConstraintType.LESS_THAN); + timeConstraint + .setConstraintValue(new DataTime(request.getSimDate()) + .toString()); + map.put(REF_TIME, timeConstraint); + } + String database = PluginFactory.getInstance().getDatabase( request.getPluginName()); String classname = PluginFactory.getInstance() @@ -136,6 +146,7 @@ public class TimeQueryHandler implements IRequestHandler { constraint.getConstraintType().getOperand(), classname); } + //System.out.println("TimeQuery: " + query.createHQLQuery()); return query; }