Issue #2859 - Implement redbook MPC NDM menus
Change-Id: Ib681435386ea8e4335f5984ddbee2213633cac8e Former-commit-id:f49bb3b30c
[formerly4be30fdc5b
] [formerly059ac9c52a
] [formerlye479bd7055
[formerly059ac9c52a
[formerly 619efadc2230af13707f124534d3caf2fdfaba68]]] Former-commit-id:e479bd7055
Former-commit-id: 9530e3b61c98479d8b44cd26d6af7c2592220ee4 [formerlybb07c57f3e
] Former-commit-id:0b94340d7e
This commit is contained in:
parent
9c2583527b
commit
22a240a919
7 changed files with 314 additions and 122 deletions
|
@ -19,8 +19,5 @@
|
|||
further_licensing_information.
|
||||
-->
|
||||
<menuTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<contribute xsi:type="subMenu" menuText="Marine Guidance"
|
||||
id="ncepHydro.mpc.marineGuidance">
|
||||
<contribute xsi:type="subinclude" fileName="menus/ncepHydro/mpc/marineGuidance.xml"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="subinclude" fileName="menus/ncepHydro/mpc/mpcMenus.xml"/>
|
||||
</menuTemplate>
|
|
@ -1,118 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!--
|
||||
This_software_was_developed_and_/_or_modified_by_Raytheon_Company,
|
||||
pursuant_to_Contract_DG133W-05-CQ-1067_with_the_US_Government.
|
||||
|
||||
U.S._EXPORT_CONTROLLED_TECHNICAL_DATA
|
||||
This_software_product_contains_export-restricted_data_whose
|
||||
export/transfer/disclosure_is_restricted_by_U.S._law._Dissemination
|
||||
to_non-U.S._persons_whether_in_the_United_States_or_abroad_requires
|
||||
an_export_license_or_other_authorization.
|
||||
|
||||
Contractor_Name:________Raytheon_Company
|
||||
Contractor_Address:_____6825_Pine_Street,_Suite_340
|
||||
________________________Mail_Stop_B8
|
||||
________________________Omaha,_NE_68106
|
||||
________________________402.291.0100
|
||||
|
||||
See_the_AWIPS_II_Master_Rights_File_("Master_Rights_File.pdf")_for
|
||||
further_licensing_information.
|
||||
-->
|
||||
<menuTemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Tropical Sfc Analysis" id="tropicalSfcAnalysis">
|
||||
<substitute key="wmo" value="PYNA98" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="24hr Dense Fog Fcst" id="denseFogFcst">
|
||||
<substitute key="wmo" value="PGNE88" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="24hr Freezing Spray Fcst" id="freezingSprayFcst">
|
||||
<substitute key="wmo" value="PGNE98" />
|
||||
</contribute>
|
||||
<contribute xsi:type="titleItem" titleText="------ West Atlantic ------"
|
||||
id="WestAtlanticLine" />
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Atl 850MB Strmlines/Wind Analysis" id="atl850MBWindAnalysis">
|
||||
<substitute key="wmo" value="PWAA85" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Atl 200MB Strmlines/Wind Anal" id="atl200MBWindAnal">
|
||||
<substitute key="wmo" value="PWAA20" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Atl Deep Layer Mean Cir 1000-100mb" id="atlDeepLayerMeanCir">
|
||||
<substitute key="wmo" value="PWAA00" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Atl 850-200mb Winds/Shear Analysis" id="atlWindsShearAnalysis">
|
||||
<substitute key="wmo" value="PWAA65" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="WATL Wind/Wave" id="windWave">
|
||||
<substitute key="wmo" value="PWIA98, PWIE98" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Fronts/Press Fcst" id="frontsPressFcst">
|
||||
<substitute key="wmo" value="PPAE89" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Caribbean Wind/Seas Fcst" id="CaribbeanWindSeasFcstLine">
|
||||
<substitute key="wmo" value="PWEA88, PWEC88, PWEE88, PWEG88" />
|
||||
</contribute>
|
||||
|
||||
<contribute xsi:type="separator" id="separator1" />
|
||||
<contribute xsi:type="titleItem" titleText="------ North Atlantic ------"
|
||||
id="NorthAtlanticLine" />
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Surface Analysis" id="surfaceAnalysis">
|
||||
<substitute key="wmo" value="PYAA89" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Fronts/Press/Winds Fcst" id="frontsPressWindsFcst">
|
||||
<substitute key="wmo" value="PPAI89, PPAM89" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Sig Wave/Wind" id="sigWaveWind">
|
||||
<substitute key="wmo" value="PJAI88,PJAA88" />
|
||||
</contribute>
|
||||
<contribute xsi:type="separator" id="separator2" />
|
||||
<contribute xsi:type="titleItem" titleText="------ East Pacific ------"
|
||||
id="EastPacificLine" />
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="E. Pacific Wind/Seas Analysis" id="easternPacWindSeas">
|
||||
<substitute key="wmo" value="PWBA88" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Pac Deep Layer Mean Cir 1000-100mb" id="pacDeepLayerMeanCir">
|
||||
<substitute key="wmo" value="PWDA00" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Pac 850-200mb Winds/Shear Analysis" id="pacWindsShearAnalysis">
|
||||
<substitute key="wmo" value="PWDA65" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="EPAC Wind/Wave" id="Wind/Wave">
|
||||
<substitute key="wmo" value="PWIA97, PWIE97" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Fronts/Press Fcst" id="FrontsPressFcst">
|
||||
<substitute key="wmo" value="PPBE89" />
|
||||
</contribute>
|
||||
<contribute xsi:type="separator" id="separator3" />
|
||||
<contribute xsi:type="titleItem" titleText="------ North Pacific ------"
|
||||
id="EastPacificLine" />
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Surface Analysis" id="pacSurfaceAnalysis">
|
||||
<substitute key="wmo" value="PYBA89" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Fronts/Press/Winds Fcst" id="pacFrontsPressWindsFcst">
|
||||
<substitute key="wmo" value="PPBI89, PPBM89" />
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" file="bundles/Redbook.xml"
|
||||
menuText="Sig Wave/Wind" id="pacSigWaveWind">
|
||||
<substitute key="wmo" value="PJBI88,PJBA88" />
|
||||
</contribute>
|
||||
</menuTemplate>
|
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<menuTemplate>
|
||||
<contribute xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="subMenu" menuText="Marine Guidance" id="ncepHydro.mpc.marineGuidance">
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Tropical Sfc Analysis" timeQuery="true" id="tropicalSfcAnalysis">
|
||||
<substitute value="PYNA98" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="24hr Dense Fog Fcst" timeQuery="true" id="denseFogFcst">
|
||||
<substitute value="PGNE88" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="24hr Freezing Spray Fcst" timeQuery="true" id="freezingSprayFcst">
|
||||
<substitute value="PGNE98" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="titleItem" titleText="------ West Atlantic ------" id="WestAtlanticLine"/>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Atl 850MB Strmlines/Wind Analysis" timeQuery="true" id="atl850MBWindAnalysis">
|
||||
<substitute value="PWAA85" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Atl 200MB Strmlines/Wind Anal" timeQuery="true" id="atl200MBWindAnal">
|
||||
<substitute value="PWAA20" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Atl Deep Layer Mean Cir 1000-100mb" timeQuery="true" id="atlDeepLayerMeanCir">
|
||||
<substitute value="PWAA00" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Atl 850-200mb Winds/Shear Analysis" timeQuery="true" id="atlWindsShearAnalysis">
|
||||
<substitute value="PWAA65" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="WATL Wind/Wave" timeQuery="true" id="windWave">
|
||||
<substitute value="PWIA98, PWIE98" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Fronts/Press Fcst" timeQuery="true" id="frontsPressFcst">
|
||||
<substitute value="PPAE89" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Caribbean Wind/Seas Fcst" timeQuery="true" id="CaribbeanWindSeasFcstLine">
|
||||
<substitute value="PWEA88, PWEC88, PWEE88, PWEG88" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="separator" visible="true" id="separator1"/>
|
||||
<contribute xsi:type="titleItem" titleText="------ North Atlantic ------" id="NorthAtlanticLine"/>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Surface Analysis" timeQuery="true" id="surfaceAnalysis">
|
||||
<substitute value="PYAA89" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Fronts/Press/Winds Fcst" timeQuery="true" id="frontsPressWindsFcst">
|
||||
<substitute value="PPAI89, PPAM89" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Sig Wave/Wind" timeQuery="true" id="sigWaveWind">
|
||||
<substitute value="PJAI88,PJAA88" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="separator" visible="true" id="separator2"/>
|
||||
<contribute xsi:type="titleItem" titleText="------ East Pacific ------" id="EastPacificLine"/>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="E. Pacific Wind/Seas Analysis" timeQuery="true" id="easternPacWindSeas">
|
||||
<substitute value="PWBA88" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Pac Deep Layer Mean Cir 1000-100mb" timeQuery="true" id="pacDeepLayerMeanCir">
|
||||
<substitute value="PWDA00" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Pac 850-200mb Winds/Shear Analysis" timeQuery="true" id="pacWindsShearAnalysis">
|
||||
<substitute value="PWDA65" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="EPAC Wind/Wave" timeQuery="true" id="Wind/Wave">
|
||||
<substitute value="PWIA97, PWIE97" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Fronts/Press Fcst" timeQuery="true" id="FrontsPressFcst">
|
||||
<substitute value="PPBE89" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="separator" visible="true" id="separator3"/>
|
||||
<contribute xsi:type="titleItem" titleText="------ North Pacific ------" id="EastPacificLine"/>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Surface Analysis" timeQuery="true" id="pacSurfaceAnalysis">
|
||||
<substitute value="PYBA89" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Fronts/Press/Winds Fcst" timeQuery="true" id="pacFrontsPressWindsFcst">
|
||||
<substitute value="PPBI89, PPBM89" key="wmo"/>
|
||||
</contribute>
|
||||
<contribute xsi:type="bundleItem" useReferenceTime="true" file="bundles/Redbook.xml" menuText="Sig Wave/Wind" timeQuery="true" id="pacSigWaveWind">
|
||||
<substitute value="PJBI88,PJBA88" key="wmo"/>
|
||||
</contribute>
|
||||
</contribute>
|
||||
</menuTemplate>
|
|
@ -0,0 +1,132 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<!--
|
||||
This file is the A2 NDM replacement for redbookMPCMenus.txt.
|
||||
|
||||
Dropping RedbookMPCMenus.xml into the /awips2/edex/data/ndm directory
|
||||
will generate an override of the MPC menu.
|
||||
|
||||
RedbookMPCMenus.xml as written here will generate the base version
|
||||
of the MPC menus.
|
||||
-->
|
||||
<redbookMenu>
|
||||
<menuEntry type="submenu" text="Marine Guidance"
|
||||
id="ncepHydro.mpc.marineGuidance">
|
||||
<menuEntry type="productButton"
|
||||
text="Tropical Sfc Analysis" id="tropicalSfcAnalysis">
|
||||
<!-- Redbook Key: 5312 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PYNA98" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="24hr Dense Fog Fcst" id="denseFogFcst">
|
||||
<!-- Redbook Key: 5336 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PGNE88" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="24hr Freezing Spray Fcst" id="freezingSprayFcst">
|
||||
<!-- Redbook Key: 5337 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PGNE98" />
|
||||
</menuEntry>
|
||||
<menuEntry type="title" text="------ West Atlantic ------"
|
||||
id="WestAtlanticLine" />
|
||||
<menuEntry type="productButton"
|
||||
text="Atl 850MB Strmlines/Wind Analysis" id="atl850MBWindAnalysis">
|
||||
<!-- Redbook Key: 5313 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PWAA85" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Atl 200MB Strmlines/Wind Anal" id="atl200MBWindAnal">
|
||||
<!-- Redbook Key: 5314 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PWAA20" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Atl Deep Layer Mean Cir 1000-100mb" id="atlDeepLayerMeanCir">
|
||||
<!-- Redbook Key: 5315 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PWAA00" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Atl 850-200mb Winds/Shear Analysis" id="atlWindsShearAnalysis">
|
||||
<!-- Redbook Key: 5316 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PWAA65" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="WATL Wind/Wave" id="windWave">
|
||||
<!-- Redbook Key: 5245 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PWIA98, PWIE98" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Fronts/Press Fcst" id="frontsPressFcst">
|
||||
<!-- Redbook Key: 5327 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PPAE89" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Caribbean Wind/Seas Fcst" id="CaribbeanWindSeasFcstLine">
|
||||
<!-- Redbook Key: 5320 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PWEA88, PWEC88, PWEE88, PWEG88" />
|
||||
</menuEntry>
|
||||
|
||||
<menuEntry type="separator" id="separator1" />
|
||||
<menuEntry type="title" text="------ North Atlantic ------"
|
||||
id="NorthAtlanticLine" />
|
||||
<menuEntry type="productButton"
|
||||
text="Surface Analysis" id="surfaceAnalysis">
|
||||
<!-- Redbook Key: 5324 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PYAA89" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Fronts/Press/Winds Fcst" id="frontsPressWindsFcst">
|
||||
<!-- Redbook Key: 5328 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PPAI89, PPAM89" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Sig Wave/Wind" id="sigWaveWind">
|
||||
<!-- Redbook Key: 5325 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PJAI88,PJAA88" />
|
||||
</menuEntry>
|
||||
<menuEntry type="separator" id="separator2" />
|
||||
<menuEntry type="title" text="------ East Pacific ------"
|
||||
id="EastPacificLine" />
|
||||
<menuEntry type="productButton"
|
||||
text="E. Pacific Wind/Seas Analysis" id="easternPacWindSeas">
|
||||
<!-- Redbook Key: 5317 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PWBA88" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Pac Deep Layer Mean Cir 1000-100mb" id="pacDeepLayerMeanCir">
|
||||
<!-- Redbook Key: 5318 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PWDA00" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Pac 850-200mb Winds/Shear Analysis" id="pacWindsShearAnalysis">
|
||||
<!-- Redbook Key: 5248 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PWDA65" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="EPAC Wind/Wave" id="Wind/Wave">
|
||||
<!-- Redbook Key: 5248 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PWIA97, PWIE97" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Fronts/Press Fcst" id="FrontsPressFcst">
|
||||
<!-- Redbook Key: 5333 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PPBE89" />
|
||||
</menuEntry>
|
||||
<menuEntry type="separator" id="separator3" />
|
||||
<menuEntry type="title" text="------ North Pacific ------"
|
||||
id="EastPacificLine" />
|
||||
<menuEntry type="productButton"
|
||||
text="Surface Analysis" id="pacSurfaceAnalysis">
|
||||
<!-- Redbook Key: 5330 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PYBA89" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Fronts/Press/Winds Fcst" id="pacFrontsPressWindsFcst">
|
||||
<!-- Redbook Key: 5334 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PPBI89, PPBM89" />
|
||||
</menuEntry>
|
||||
<menuEntry type="productButton"
|
||||
text="Sig Wave/Wind" id="pacSigWaveWind">
|
||||
<!-- Redbook Key: 5331 -->
|
||||
<menuEntry type="substitute" key="wmo" value="PJBI88,PJBA88" />
|
||||
</menuEntry>
|
||||
</menuEntry>
|
||||
</redbookMenu>
|
|
@ -25,6 +25,11 @@
|
|||
<constructor-arg ref="spcMenuListener" />
|
||||
</bean>
|
||||
|
||||
<bean factory-bean="ndmProc" factory-method="registerListener">
|
||||
<constructor-arg value="RedbookMPCMenus.xml" />
|
||||
<constructor-arg ref="spcMenuListener" />
|
||||
</bean>
|
||||
|
||||
<!--
|
||||
<bean id="redbookCamelRegistered" factory-bean="contextManager"
|
||||
factory-method="register" depends-on="persistCamelRegistered">
|
||||
|
|
|
@ -23,6 +23,7 @@ import java.io.File;
|
|||
|
||||
import com.raytheon.edex.plugin.redbook.menu.RedbookHazardsMenuUtil;
|
||||
import com.raytheon.edex.plugin.redbook.menu.RedbookHpcMenuUtil;
|
||||
import com.raytheon.edex.plugin.redbook.menu.RedbookMpcMenuUtil;
|
||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||
import com.raytheon.uf.common.status.UFStatus;
|
||||
import com.raytheon.uf.edex.ndm.ingest.INationalDatasetSubscriber;
|
||||
|
@ -39,6 +40,7 @@ import com.raytheon.uf.edex.ndm.ingest.INationalDatasetSubscriber;
|
|||
* ------------ ---------- ----------- --------------------------
|
||||
* Mar 10, 2014 2858 mpduff Initial creation.
|
||||
* Mar 17, 2014 2855 mpduff Implement HPC.
|
||||
* Mar 19, 2014 2859 mpduff Implement MPC.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -57,6 +59,9 @@ public class RedbookMenuSubscriber implements INationalDatasetSubscriber {
|
|||
/** HPC menu file */
|
||||
private static final String HPC_MENU_FILE = "RedbookHPCMenus.xml";
|
||||
|
||||
/** MPC menu file */
|
||||
private static final String MPC_MENU_FILE = "RedbookMPCMenus.xml";
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
@ -70,6 +75,9 @@ public class RedbookMenuSubscriber implements INationalDatasetSubscriber {
|
|||
} else if (HPC_MENU_FILE.equals(fileName)) {
|
||||
RedbookHpcMenuUtil menuUtil = new RedbookHpcMenuUtil();
|
||||
menuUtil.createMenusFromFile(file.getAbsolutePath());
|
||||
} else if (MPC_MENU_FILE.equals(fileName)) {
|
||||
RedbookMpcMenuUtil menuUtil = new RedbookMpcMenuUtil();
|
||||
menuUtil.createMenusFromFile(file.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,93 @@
|
|||
/**
|
||||
* This software was developed and / or modified by Raytheon Company,
|
||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
*
|
||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
* This software product contains export-restricted data whose
|
||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
* to non-U.S. persons whether in the United States or abroad requires
|
||||
* an export license or other authorization.
|
||||
*
|
||||
* Contractor Name: Raytheon Company
|
||||
* Contractor Address: 6825 Pine Street, Suite 340
|
||||
* Mail Stop B8
|
||||
* Omaha, NE 68106
|
||||
* 402.291.0100
|
||||
*
|
||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
* further licensing information.
|
||||
**/
|
||||
package com.raytheon.edex.plugin.redbook.menu;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||
import com.raytheon.uf.common.status.UFStatus;
|
||||
|
||||
/**
|
||||
* Builds the NCEP/Hydro MPC menu contributions for NDM (Redbook MPC).
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Mar 19, 2014 2859 mpduff Initial creation
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* @author mpduff
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
public class RedbookMpcMenuUtil extends RedbookMenuUtil {
|
||||
/** Status handler */
|
||||
private static final IUFStatusHandler statusHandler = UFStatus
|
||||
.getHandler(RedbookMpcMenuUtil.class);
|
||||
|
||||
/** Menu type constant */
|
||||
private static final String MENU_TYPE = "ncepHydro" + File.separator
|
||||
+ "mpc";
|
||||
|
||||
/** HPC menu file */
|
||||
private static final String MPC_MENU = "mpcMenus.xml";
|
||||
|
||||
/** HPC menu file full path */
|
||||
private static final String MENU_FILE = "menus" + File.separator
|
||||
+ MENU_TYPE + File.separator + MPC_MENU;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public RedbookMpcMenuUtil() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void createMenusFromFile(String filename) {
|
||||
xml = read(filename);
|
||||
|
||||
createMenus();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void createMenus() {
|
||||
statusHandler.info("Creating menus for " + MENU_FILE);
|
||||
createMenusForFile(MENU_FILE);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
protected boolean checkCreated() {
|
||||
return super.checkCreated(MPC_MENU, MENU_TYPE);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue