diff --git a/deltaScripts/14.4.1/DR2714/moveSatDistribution.sh b/deltaScripts/14.4.1/DR2714/moveSatDistribution.sh
new file mode 100755
index 0000000000..7940d3cedf
--- /dev/null
+++ b/deltaScripts/14.4.1/DR2714/moveSatDistribution.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# Omaha #2714 find all satellite distribution files in localization and rename to match plugin
+
+for x in $(find /awips2/edex/data/utility/edex_static -regex '^.*distribution/satellite.xml$')
+do
+ target=${x/satellite.xml/satellite-gini.xml}
+ echo Renaming $x to $target
+ mv "$x" "$target"
+done
+echo Done
diff --git a/deltaScripts/14.4.1/DR2714/removeOldSatTables.sh b/deltaScripts/14.4.1/DR2714/removeOldSatTables.sh
new file mode 100755
index 0000000000..c625111180
--- /dev/null
+++ b/deltaScripts/14.4.1/DR2714/removeOldSatTables.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# Omaha #2714 static tables have been replaced by XML backed in-memory lookup tables
+
+DBUSER="awips"
+DBNAME="metadata"
+
+PSQL="/awips2/psql/bin/psql"
+
+for table in satellite_creating_entities satellite_geostationary_positions satellite_physical_elements satellite_sector_ids satellite_sources satellite_units
+do
+ echo Dropping table: $table
+ command="DROP TABLE $table"
+ if ${PSQL} -U ${DBUSER} -d ${DBNAME} -c "$command"
+ then
+ echo $table dropped successfully
+ else
+ echo problem dropping table: $table
+ fi
+done
+
+echo Done
diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/.settings/org.eclipse.jdt.core.prefs b/edexOsgi/com.raytheon.edex.plugin.satellite/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 8abad9e0c1..0000000000
--- a/edexOsgi/com.raytheon.edex.plugin.satellite/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Thu Mar 26 10:24:53 CDT 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/META-INF/MANIFEST.MF b/edexOsgi/com.raytheon.edex.plugin.satellite/META-INF/MANIFEST.MF
index a417594f11..9eb9e5ea29 100644
--- a/edexOsgi/com.raytheon.edex.plugin.satellite/META-INF/MANIFEST.MF
+++ b/edexOsgi/com.raytheon.edex.plugin.satellite/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Satellite Plug-in
Bundle-SymbolicName: com.raytheon.edex.plugin.satellite
-Bundle-Version: 1.14.0.qualifier
+Bundle-Version: 1.14.1.qualifier
Bundle-Vendor: RAYTHEON
Export-Package: com.raytheon.edex.plugin.satellite,
com.raytheon.edex.plugin.satellite.dao,
@@ -23,5 +23,3 @@ Require-Bundle: com.raytheon.uf.common.dataplugin;bundle-version="1.12.1174",
com.raytheon.uf.edex.database;bundle-version="1.0.0",
com.raytheon.uf.edex.menus;bundle-version="1.0.0",
com.raytheon.uf.common.numeric;bundle-version="1.14.0"
-Import-Package: com.raytheon.edex.exception,
- org.apache.commons.logging
diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/creatingEntities.sql b/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/creatingEntities.sql
deleted file mode 100644
index f86ac50abc..0000000000
--- a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/creatingEntities.sql
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * 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.
- **/
-INSERT INTO awips.satellite_creating_entities VALUES (2,'Miscellaneous');
-INSERT INTO awips.satellite_creating_entities VALUES (3,'JERS');
-INSERT INTO awips.satellite_creating_entities VALUES (4,'ERS-QuickSCAT-Scatterometer');
-INSERT INTO awips.satellite_creating_entities VALUES (5,'POES-NPOESS');
-INSERT INTO awips.satellite_creating_entities VALUES (6,'Composite');
-INSERT INTO awips.satellite_creating_entities VALUES (7,'DMSP');
-INSERT INTO awips.satellite_creating_entities VALUES (8,'GMS');
-INSERT INTO awips.satellite_creating_entities VALUES (9,'METEOSAT');
-INSERT INTO awips.satellite_creating_entities VALUES (10,'GOES-7(H) Reserved for future use.');
-INSERT INTO awips.satellite_creating_entities VALUES (11,'GOES-8(I)');
-INSERT INTO awips.satellite_creating_entities VALUES (12,'GOES-9(J)');
-INSERT INTO awips.satellite_creating_entities VALUES (13,'GOES-10(K)');
-INSERT INTO awips.satellite_creating_entities VALUES (14,'GOES-11(L)');
-INSERT INTO awips.satellite_creating_entities VALUES (15,'GOES-12(M)');
-INSERT INTO awips.satellite_creating_entities VALUES (16,'GOES-13(N)');
-INSERT INTO awips.satellite_creating_entities VALUES (17,'GOES-14(O)');
-INSERT INTO awips.satellite_creating_entities VALUES (18,'GOES-15(P)');
-INSERT INTO awips.satellite_creating_entities VALUES (26,'NOAA16');
-INSERT INTO awips.satellite_creating_entities VALUES (27,'NOAA17');
-INSERT INTO awips.satellite_creating_entities VALUES (28,'NOAA18');
-INSERT INTO awips.satellite_creating_entities VALUES (29,'NOAA19');
diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/geostationaryPositions.sql b/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/geostationaryPositions.sql
deleted file mode 100644
index ea99219468..0000000000
--- a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/geostationaryPositions.sql
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * 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.
- **/
-INSERT INTO awips.satellite_geostationary_positions (satelliteName,height,latitude,longitude) VALUES ('GOES-11(L)',35794,0,-135);
-INSERT INTO awips.satellite_geostationary_positions (satelliteName,height,latitude,longitude) VALUES ('GOES-12(M)',35794,0,-75);
-INSERT INTO awips.satellite_geostationary_positions (satelliteName,height,latitude,longitude) VALUES ('GOES-13(N)',35794,0,-75);
-INSERT INTO awips.satellite_geostationary_positions (satelliteName,height,latitude,longitude) VALUES ('GOES-15(P)',35794,0,-135);
\ No newline at end of file
diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/physicalElements.sql b/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/physicalElements.sql
deleted file mode 100644
index dd44e4b183..0000000000
--- a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/physicalElements.sql
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- * 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.
- **/
-INSERT INTO awips.satellite_physical_elements VALUES (1,'Imager Visible');
-INSERT INTO awips.satellite_physical_elements VALUES (2,'Imager 3.9 micron IR');
-INSERT INTO awips.satellite_physical_elements VALUES (3,'Imager 6.7-6.5 micron IR (WV)');
-INSERT INTO awips.satellite_physical_elements VALUES (4,'Imager 11 micron IR');
-INSERT INTO awips.satellite_physical_elements VALUES (5,'Imager 12 micron IR');
-INSERT INTO awips.satellite_physical_elements VALUES (6,'Imager 13 micron (IR)');
-INSERT INTO awips.satellite_physical_elements VALUES (7,'Imager 1.3 micron (IR)');
-INSERT INTO awips.satellite_physical_elements VALUES (8,'Reserved for future use');
-INSERT INTO awips.satellite_physical_elements VALUES (9,'Reserved for future use');
-INSERT INTO awips.satellite_physical_elements VALUES (10,'Reserved for future use');
-INSERT INTO awips.satellite_physical_elements VALUES (11,'Reserved for future use');
-INSERT INTO awips.satellite_physical_elements VALUES (12,'Reserved for future use');
-INSERT INTO awips.satellite_physical_elements VALUES (13,'Imager Based Derived Lifted Index (LI)');
-INSERT INTO awips.satellite_physical_elements VALUES (14,'Imager Based Derived Precipitable Water (PW)');
-INSERT INTO awips.satellite_physical_elements VALUES (15,'Imager Based Derived Surface Skin Temp (SFC Skin)');
-INSERT INTO awips.satellite_physical_elements VALUES (16,'Sounder Based Derived Lifted Index (LI)');
-INSERT INTO awips.satellite_physical_elements VALUES (17,'Sounder Based Derived Precipitable Water (PW)');
-INSERT INTO awips.satellite_physical_elements VALUES (18,'Sounder Based Derived Surface Skin Temp (SFC Skin)');
-INSERT INTO awips.satellite_physical_elements VALUES (19,'Derived Convective Available Potential Energy (CAPE)');
-INSERT INTO awips.satellite_physical_elements VALUES (20,'Derived land-sea temp');
-INSERT INTO awips.satellite_physical_elements VALUES (21,'Derived Wind Index(WINDEX)');
-INSERT INTO awips.satellite_physical_elements VALUES (22,'Derived Dry Microburst Potential Index (DMPI)');
-INSERT INTO awips.satellite_physical_elements VALUES (23,'Derived Microburst Day Potential Index (MDPI)');
-INSERT INTO awips.satellite_physical_elements VALUES (24,'Derived Convective Inhibition');
-INSERT INTO awips.satellite_physical_elements VALUES (25,'Derived Volcano Imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (26,'Scatterometer Data');
-INSERT INTO awips.satellite_physical_elements VALUES (27,'Gridded Cloud Top Pressure or Height');
-INSERT INTO awips.satellite_physical_elements VALUES (28,'Gridded Cloud Amount');
-INSERT INTO awips.satellite_physical_elements VALUES (29,'Rain fall rate');
-INSERT INTO awips.satellite_physical_elements VALUES (30,'Surface wind speeds over oceans and Great Lakes');
-INSERT INTO awips.satellite_physical_elements VALUES (31,'Surface wetness');
-INSERT INTO awips.satellite_physical_elements VALUES (32,'Ice concentrations');
-INSERT INTO awips.satellite_physical_elements VALUES (33,'Ice type');
-INSERT INTO awips.satellite_physical_elements VALUES (34,'Ice edge');
-INSERT INTO awips.satellite_physical_elements VALUES (35,'Cloud water content');
-INSERT INTO awips.satellite_physical_elements VALUES (36,'Surface type');
-INSERT INTO awips.satellite_physical_elements VALUES (37,'Snow indicator');
-INSERT INTO awips.satellite_physical_elements VALUES (38,'Snow-water content');
-INSERT INTO awips.satellite_physical_elements VALUES (39,'Derived volcano imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (40,'Low cloud base imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (41,'Sounder 14.71 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (42,'Sounder 14.37 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (43,'Sounder 14.06 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (44,'Sounder 13.64 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (45,'Sounder 13.37 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (46,'Sounder 12.66 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (47,'Sounder 12.02 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (48,'Sounder 11.03 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (49,'Sounder 9.71 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (50,'Sounder 7.43 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (51,'Sounder 7.02 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (52,'Sounder 6.51 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (53,'Sounder 4.57 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (54,'Sounder 4.52 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (55,'Sounder 4.45 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (56,'Sounder 4.13 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (57,'Sounder 3.98 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (58,'Sounder 3.74 micron imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (59,'Sounder Visible imagery');
-INSERT INTO awips.satellite_physical_elements VALUES (60,'Percent of Normal TPW');
-INSERT INTO awips.satellite_physical_elements VALUES (61,'Polar Vis');
-INSERT INTO awips.satellite_physical_elements VALUES (62,'Polar 3.9u');
-INSERT INTO awips.satellite_physical_elements VALUES (63,'Polar 3.7u');
-INSERT INTO awips.satellite_physical_elements VALUES (64,'Polar IR');
\ No newline at end of file
diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/sectorIds.sql b/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/sectorIds.sql
deleted file mode 100644
index 6801f77fde..0000000000
--- a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/sectorIds.sql
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * 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.
- **/
-INSERT INTO awips.satellite_sector_ids VALUES (0,'Northern Hemisphere Composite');
-INSERT INTO awips.satellite_sector_ids VALUES (1,'East CONUS');
-INSERT INTO awips.satellite_sector_ids VALUES (2,'West CONUS');
-INSERT INTO awips.satellite_sector_ids VALUES (3,'Alaska Regional');
-INSERT INTO awips.satellite_sector_ids VALUES (4,'Alaska National');
-INSERT INTO awips.satellite_sector_ids VALUES (5,'Hawaii Regional');
-INSERT INTO awips.satellite_sector_ids VALUES (6,'Hawaii National');
-INSERT INTO awips.satellite_sector_ids VALUES (7,'Puerto Rico Regional');
-INSERT INTO awips.satellite_sector_ids VALUES (8,'Puerto Rico National');
-INSERT INTO awips.satellite_sector_ids VALUES (9,'Supernational');
-INSERT INTO awips.satellite_sector_ids VALUES (10,'NH Composite - Meteosat-GOES E-GOES W-GMS');
\ No newline at end of file
diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/sources.sql b/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/sources.sql
deleted file mode 100644
index 20ed4b7a57..0000000000
--- a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/sources.sql
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * 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.
- **/
-insert into awips.satellite_sources values (1,'NESDIS')
\ No newline at end of file
diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/units.sql b/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/units.sql
deleted file mode 100644
index ecb4e7723b..0000000000
--- a/edexOsgi/com.raytheon.edex.plugin.satellite/res/scripts/units.sql
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * 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.
- **/
-insert into awips.satellite_units values (2,'IRPixel');
-insert into awips.satellite_units values (4,'IRPixel');
-insert into awips.satellite_units values (5,'IRPixel');
-insert into awips.satellite_units values (6,'IRPixel');
-insert into awips.satellite_units values (7,'IRPixel');
-insert into awips.satellite_units values (16,'SounderLiftedIndexPixel');
-insert into awips.satellite_units values (17,'SounderPrecipWaterPixel');
-insert into awips.satellite_units values (18,'SounderSkinTempPixel');
-insert into awips.satellite_units values (27,'SounderCloudTopHeightPixel');
-insert into awips.satellite_units values (28,'SounderCloudAmountPixel');
-insert into awips.satellite_units values (29,'RainfallRatePixel');
-insert into awips.satellite_units values (43,'IRPixel');
-insert into awips.satellite_units values (48,'IRPixel');
-insert into awips.satellite_units values (55,'IRPixel');
-insert into awips.satellite_units values (57,'IRPixel');
-insert into awips.satellite_units values (60,'PercentOfNormalTPWPixel');
-insert into awips.satellite_units values (64,'IRPixel');
diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/res/spring/satellite-ingest.xml b/edexOsgi/com.raytheon.edex.plugin.satellite/res/spring/satellite-ingest.xml
deleted file mode 100644
index f79ab24bff..0000000000
--- a/edexOsgi/com.raytheon.edex.plugin.satellite/res/spring/satellite-ingest.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-
+ * * SOFTWARE HISTORY + * * Date Ticket# Engineer Description * ------------ ---------- ----------- -------------------------- - * 1/10/2010 4335 bphillip Initial Creation + * Nov 05, 2014 2714 bclement Initial creation + * ** - * @author bphillip + * @author bclement * @version 1.0 */ -public class SatellitePositionDao extends CoreDao { +public class SatelliteDecoderException extends Exception { - public SatellitePositionDao(){ - super(DaoConfig.forClass(SatellitePosition.class)); + private static final long serialVersionUID = -1935587862793689258L; + + public SatelliteDecoderException() { + super(); } - - public SatellitePosition queryById(String satelliteName){ - return (SatellitePosition)super.queryById(satelliteName); + + public SatelliteDecoderException(String message, Throwable cause) { + super(message, cause); } + + public SatelliteDecoderException(String message) { + super(message); + } + + public SatelliteDecoderException(Throwable cause) { + super(cause); + } + } diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteCreatingEntityDao.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteCreatingEntityDao.java deleted file mode 100644 index 8850ab5dda..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteCreatingEntityDao.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * 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.satellite.dao; - -import com.raytheon.edex.plugin.satellite.gini.SatelliteCreatingEntity; -import com.raytheon.uf.edex.database.dao.CoreDao; -import com.raytheon.uf.edex.database.dao.DaoConfig; - -/** - * Data Access Object for interacting with satellite creating entities - * - *
- * SOFTWARE HISTORY - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * bphillip Initial Creation - *- * - * @author bphillip - * @version 1.0 - */ -public class SatelliteCreatingEntityDao extends CoreDao { - - /** - * Constructs a new SatelliteCreatingEntityDao - */ - public SatelliteCreatingEntityDao() { - super(DaoConfig.forClass(SatelliteCreatingEntity.class)); - } - - public SatelliteCreatingEntity queryById(int entityId) { - return (SatelliteCreatingEntity) super.queryById(entityId); - } - - public String getCreatingEntityName(int entityId){ - return queryById(entityId).getEntityName(); - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteDao.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteDao.java index 87abd55170..a1fcaf0276 100644 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteDao.java +++ b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteDao.java @@ -25,12 +25,6 @@ import java.util.Date; import java.util.List; import java.util.Map; -import com.raytheon.edex.plugin.satellite.gini.SatelliteCreatingEntity; -import com.raytheon.edex.plugin.satellite.gini.SatellitePhysicalElement; -import com.raytheon.edex.plugin.satellite.gini.SatellitePosition; -import com.raytheon.edex.plugin.satellite.gini.SatelliteSectorId; -import com.raytheon.edex.plugin.satellite.gini.SatelliteSource; -import com.raytheon.edex.plugin.satellite.gini.SatelliteUnit; import com.raytheon.uf.common.dataplugin.PluginDataObject; import com.raytheon.uf.common.dataplugin.PluginException; import com.raytheon.uf.common.dataplugin.persist.IPersistable; @@ -72,6 +66,7 @@ import com.raytheon.uf.edex.database.query.DatabaseQuery; * Nov 14, 2013 2393 bclement moved interpolation code to parent class * Mar 07, 2014 2791 bsteffen Move Data Source/Destination to numeric * plugin. + * Nov 04, 2014 2714 bclement removed GINI specific DAOs * * * @author bphillip @@ -79,24 +74,6 @@ import com.raytheon.uf.edex.database.query.DatabaseQuery; */ public class SatelliteDao extends PluginDao { - /** The creating entity data access object */ - private SatelliteCreatingEntityDao creatingEntityDao = new SatelliteCreatingEntityDao(); - - /** The physical element data access object */ - private SatellitePhysicalElementDao physicalElementDao = new SatellitePhysicalElementDao(); - - /** The sector ID data access object */ - private SatelliteSectorIdDao sectorIdDao = new SatelliteSectorIdDao(); - - /** The source data access object */ - private SatelliteSourceDao sourceDao = new SatelliteSourceDao(); - - /** The satellite unit data access object */ - private SatelliteUnitDao unitDao = new SatelliteUnitDao(); - - /** The satellite position data access object */ - private SatellitePositionDao positionDao = new SatellitePositionDao(); - /** * Creates a new satellite data access object * @@ -387,122 +364,6 @@ public class SatelliteDao extends PluginDao { return times; } - /** - * Gets a SatelliteCreatingEntity with the given id - * - * @param entityId - * The entity id - * @return The SatelliteCreatingEntity with the given id - */ - public SatelliteCreatingEntity getCreatingEntity(int entityId) { - return creatingEntityDao.queryById(entityId); - } - - /** - * Gets a SatellitePhysicalElement with the given id - * - * @param elementId - * The physical element id - * @return The SatellitePhysicalElement with the given id - */ - public SatellitePhysicalElement getPhysicalElement(int elementId) { - return physicalElementDao.queryById(elementId); - } - - /** - * Gets a SatelliteSectorId with the given id - * - * @param sectorId - * The sector id - * @return The SatelliteSectorId with the given id - */ - public SatelliteSectorId getSectorId(int sectorId) { - return sectorIdDao.queryById(sectorId); - } - - /** - * Gest a SatelliteSource with the given id - * - * @param sourceId - * The source id - * @return The SatelliteSource with the given id - */ - public SatelliteSource getSource(int sourceId) { - return sourceDao.queryById(sourceId); - } - - /** - * Gets a SatelliteUnit with the given id - * - * @param unitId - * The unit id - * @return The SatelliteUnit with the given id - */ - public SatelliteUnit getUnit(int unitId) { - return unitDao.queryById(unitId); - } - - /** - * Gets a SatellitePosition object for the given satellite name - * - * @param satelliteName - * The satellite name to get the SatellitePosition for - * @return The SatellitePosition for this given satellite name - */ - public SatellitePosition getSatellitePosition(String satelliteName) { - return positionDao.queryById(satelliteName); - } - - public SatelliteCreatingEntityDao getCreatingEntityDao() { - return creatingEntityDao; - } - - public void setCreatingEntityDao( - SatelliteCreatingEntityDao creatingEntityDao) { - this.creatingEntityDao = creatingEntityDao; - } - - public SatellitePhysicalElementDao getPhysicalElementDao() { - return physicalElementDao; - } - - public void setPhysicalElementDao( - SatellitePhysicalElementDao physicalElementDao) { - this.physicalElementDao = physicalElementDao; - } - - public SatelliteSectorIdDao getSectorIdDao() { - return sectorIdDao; - } - - public void setSectorIdDao(SatelliteSectorIdDao sectorIdDao) { - this.sectorIdDao = sectorIdDao; - } - - public SatelliteSourceDao getSourceDao() { - return sourceDao; - } - - public void setSourceDao(SatelliteSourceDao sourceDao) { - this.sourceDao = sourceDao; - } - - public SatelliteUnitDao getUnitDao() { - return unitDao; - } - - public void setUnitDao(SatelliteUnitDao unitDao) { - this.unitDao = unitDao; - } - - public SatellitePositionDao getPositionDao() { - return positionDao; - } - - public void setPositionDao(SatellitePositionDao positionDao) { - this.positionDao = positionDao; - } - /** * Create the {@link IDataRecord} from the {@link DataDestination} using the * original satellite data, size and diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatellitePhysicalElementDao.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatellitePhysicalElementDao.java deleted file mode 100644 index 5b505e320d..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatellitePhysicalElementDao.java +++ /dev/null @@ -1,62 +0,0 @@ -/** - * 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.satellite.dao; - -import com.raytheon.edex.plugin.satellite.gini.SatellitePhysicalElement; -import com.raytheon.uf.edex.database.dao.CoreDao; -import com.raytheon.uf.edex.database.dao.DaoConfig; - -/** - * A satellite creating entity - * - *
- * SOFTWARE HISTORY - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * bphillip Initial Creation - *- * - * @author bphillip - * @version 1.0 - */ -public class SatellitePhysicalElementDao extends CoreDao { - - /** - * Constructs a new SatellitePhysicalElementDao - */ - public SatellitePhysicalElementDao() { - super(DaoConfig.forClass(SatellitePhysicalElement.class)); - } - - /** - * Retrieves a SatellitePhysicalElementDao by the given id - * - * @param elementId - * The physical element id - * @return The physical element - */ - public SatellitePhysicalElement queryById(int elementId) { - return (SatellitePhysicalElement) super.queryById(elementId); - } - - public String getPhysicalElementName(int elementId){ - return queryById(elementId).getElementName(); - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteSectorIdDao.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteSectorIdDao.java deleted file mode 100644 index f6b619c66f..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteSectorIdDao.java +++ /dev/null @@ -1,64 +0,0 @@ -/** - * 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.satellite.dao; - -import com.raytheon.edex.plugin.satellite.gini.SatelliteSectorId; -import com.raytheon.uf.edex.database.dao.CoreDao; -import com.raytheon.uf.edex.database.dao.DaoConfig; - -/** - * A satellite creating entity - * - *
- * SOFTWARE HISTORY - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * bphillip Initial Creation - *- * - * @author bphillip - * @version 1.0 - */ -public class SatelliteSectorIdDao extends CoreDao { - - /** - * Construcst a new SectorIdDao - */ - public SatelliteSectorIdDao() { - super(DaoConfig.forClass(SatelliteSectorId.class)); - } - - /** - * Retrieves a SatelliteSectorId based on the given sector id - * - * @param sectorId - * The sector id number - * @return The satellite sector - */ - public SatelliteSectorId queryById(int sectorId) { - return (SatelliteSectorId) super.queryById(sectorId); - } - - public String getSectorIdName(int sectorId){ - return queryById(sectorId).getSectorName(); - } - -} diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteSourceDao.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteSourceDao.java deleted file mode 100644 index e0b79fe389..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/dao/SatelliteSourceDao.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.satellite.dao; - -import java.util.List; - -import com.raytheon.edex.plugin.satellite.gini.SatelliteSource; -import com.raytheon.uf.edex.database.DataAccessLayerException; -import com.raytheon.uf.edex.database.dao.CoreDao; -import com.raytheon.uf.edex.database.dao.DaoConfig; -import com.raytheon.uf.edex.database.query.DatabaseQuery; - -/** - * Data Access Object for interacting with satellite sources - * - *
- * SOFTWARE HISTORY - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * bphillip Initial Creation - *- * - * @author bphillip - * @version 1.0 - */ -public class SatelliteSourceDao extends CoreDao { - - /** - * Constructs a new SatelliteSourceDao - */ - public SatelliteSourceDao() { - super(DaoConfig.forClass(SatelliteSource.class)); - } - - /** - * Retrieves a SatelliteSource given an id - * - * @param sourceId - * The source id - * @return The Satellite source with the given ID - */ - public SatelliteSource queryById(int sourceId) { - return (SatelliteSource) super.queryById(sourceId); - } - - /** - * Gets the source id given the name - * - * @param sourceName - * The source name - * @return The source id corresponding to the given name - * @throws DataAccessLayerException - * If errors occur during query - */ - @SuppressWarnings("unchecked") - public Integer getSourceId(String sourceName) - throws DataAccessLayerException { - DatabaseQuery query = new DatabaseQuery(daoClass.getName()); - query.addReturnedField("sourceId"); - query.addQueryParam("sourceName", sourceName); - List
- * SOFTWARE HISTORY - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * bphillip Initial Creation - *- * - * @author bphillip - * @version 1.0 - */ -@Entity -@Table(name = "satellite_creating_entities") -public class SatelliteCreatingEntity extends PersistableDataObject implements - Serializable { - - private static final long serialVersionUID = -4678013903413236803L; - - /** The id of the creating entity */ - @Id - private int entityId; - - /** The name of the creating entity */ - @Column(length = 64) - private String entityName; - - /** - * Constructs and empty SatelliteCreatingEntity - */ - public SatelliteCreatingEntity() { - - } - - /** - * Constructs a new creating entity - * - * @param entityId - * The entity id - * @param entityName - * The entity name - */ - public SatelliteCreatingEntity(int entityId, String entityName) { - this.entityId = entityId; - this.entityName = entityName; - } - - public int getEntityId() { - return entityId; - } - - public void setEntityId(int entityId) { - this.entityId = entityId; - } - - public String getEntityName() { - return entityName; - } - - public void setEntityName(String entityName) { - this.entityName = entityName; - } - - public String toString() { - return entityName; - } - -} diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatellitePhysicalElement.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatellitePhysicalElement.java deleted file mode 100644 index 45e8060bfc..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatellitePhysicalElement.java +++ /dev/null @@ -1,99 +0,0 @@ -/** - * 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.satellite.gini; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; - -import com.raytheon.uf.common.dataplugin.persist.PersistableDataObject; - -/** - * A satellite physical element - * - *
- * SOFTWARE HISTORY - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * bphillip Initial Creation - *- * - * @author bphillip - * @version 1.0 - */ -@Entity -@Table(name = "satellite_physical_elements") -public class SatellitePhysicalElement extends PersistableDataObject implements - Serializable { - - private static final long serialVersionUID = 8429844485032687146L; - - /** The physical element id */ - @Id - private int elementId; - - /** The physical element name */ - @Column(length = 64) - private String elementName; - - /** - * Constructs an empty SatellitePhysicalElement - */ - public SatellitePhysicalElement() { - } - - /** - * Constructs a new SatellitePhysicalElement - * - * @param elementId - * The element id - * @param elementName - * The element name - */ - public SatellitePhysicalElement(int elementId, String elementName) { - this.elementId = elementId; - this.elementName = elementName; - } - - public int getElementId() { - return elementId; - } - - public void setElementId(int elementId) { - this.elementId = elementId; - } - - public String getElementName() { - return elementName; - } - - public void setElementName(String elementName) { - this.elementName = elementName; - } - - public String toString() { - return elementName; - } - -} diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatellitePosition.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatellitePosition.java deleted file mode 100644 index abf043d9d9..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatellitePosition.java +++ /dev/null @@ -1,169 +0,0 @@ -/** - * 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.satellite.gini; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; - -import com.raytheon.uf.common.dataplugin.persist.PersistableDataObject; - -/** - * Object describing the position of a geostationary satellite. - * - *
- * SOFTWARE HISTORY - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * 01/22/2010 4335 bphillip Initial Creation - *- * - * @author bphillip - * @version 1.0 - */ -@Entity -@Table(name = "satellite_geostationary_positions") -public class SatellitePosition extends PersistableDataObject implements - Serializable { - - private static final long serialVersionUID = 1854243110517231052L; - - /** The name of the satellite */ - @Id - private String satelliteName; - - /** The height in km of the satellite above the earth's surface */ - @Column - private int height; - - /** The latitude sub point of the satellite */ - @Column - private float latitude; - - /** The longitude sub point of the satellite */ - @Column - private float longitude; - - /** - * Constructs an empty SatellitePosition - */ - public SatellitePosition() { - - } - - /** - * Constructs a SatellitePosition - * - * @param satelliteName - * The satellite name - * @param height - * The height in km of the satellite above the earth's surface - * @param latitude - * The latitude sub point of the satellite - * @param longitude - * The longitude sub point of the satellite - */ - public SatellitePosition(String satelliteName, int height, float latitude, - float longitude) { - this.satelliteName = satelliteName; - this.height = height; - this.latitude = latitude; - this.longitude = longitude; - } - - /** - * Gets the satellite name - * - * @return The satellite name - */ - public String getSatelliteName() { - return satelliteName; - } - - /** - * Sets the satellite name - * - * @param satelliteName - * The satellite name - */ - public void setSatelliteName(String satelliteName) { - this.satelliteName = satelliteName; - } - - /** - * Gets the satellite height - * - * @return The satellite height - */ - public int getHeight() { - return height; - } - - /** - * Sets the satellite height - * - * @param height - * The satellite height - */ - public void setHeight(int height) { - this.height = height; - } - - /** - * Gets the satellite's latitude sub point - * - * @return The latitude sub point - */ - public float getLatitude() { - return latitude; - } - - /** - * Sets the satellite's latitude sub point - * - * @param latitude - * The latitude sub point - */ - public void setLatitude(float latitude) { - this.latitude = latitude; - } - - /** - * Gets the satellite's longitude sub point - * - * @return The satellite's longitude sub point - */ - public float getLongitude() { - return longitude; - } - - /** - * Sets the satellite's longitude sub point - * - * @param longitude - * The satellite's longitude sub point - */ - public void setLongitude(float longitude) { - this.longitude = longitude; - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatelliteSectorId.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatelliteSectorId.java deleted file mode 100644 index 5cf78ba477..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatelliteSectorId.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.satellite.gini; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; - -import com.raytheon.uf.common.dataplugin.persist.PersistableDataObject; - -/** - * A satellite sector id - * - *
- * SOFTWARE HISTORY - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * bphillip Initial Creation - *- * - * @author bphillip - * @version 1.0 - */ -@Entity -@Table(name = "satellite_sector_ids") -public class SatelliteSectorId extends PersistableDataObject implements - Serializable { - - private static final long serialVersionUID = 2745578024205645114L; - - /** The sector id number */ - @Id - private int sectorId; - - /** The sector id name */ - @Column(length = 64) - private String sectorName; - - /** - * Constructs and empty SatelliteSectorId - */ - public SatelliteSectorId() { - - } - - /** - * Constructs a new SatelliteSectorId - * - * @param sectorId - * The sector id number - * @param sectorName - * The sector name - */ - public SatelliteSectorId(int sectorId, String sectorName) { - this.sectorId = sectorId; - this.sectorName = sectorName; - } - - public int getSectorId() { - return sectorId; - } - - public void setSectorId(int sectorId) { - this.sectorId = sectorId; - } - - public String getSectorName() { - return sectorName; - } - - public void setSectorName(String sectorName) { - this.sectorName = sectorName; - } - - public String toString() { - return sectorName; - } - -} diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatelliteSource.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatelliteSource.java deleted file mode 100644 index 2d09bc9216..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatelliteSource.java +++ /dev/null @@ -1,100 +0,0 @@ -/** - * 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.satellite.gini; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; - -import com.raytheon.uf.common.dataplugin.persist.PersistableDataObject; - -/** - * A satellite source i.e. NESDIS - * - *
- * SOFTWARE HISTORY - * Date Ticket# Engineer Description - * ------------ ---------- ----------- -------------------------- - * bphillip Initial Creation - *- * - * @author bphillip - * @version 1.0 - */ - -@Entity -@Table(name = "satellite_sources") -public class SatelliteSource extends PersistableDataObject implements - Serializable { - - private static final long serialVersionUID = 5855029407853840979L; - - /** The source id number */ - @Id - private int sourceId; - - /** The source name */ - @Column(length = 64) - private String sourceName; - - /** - * Constructs an empty SatelliteSource - */ - public SatelliteSource() { - - } - - /** - * Constructs a new SatelliteSource - * - * @param id - * The source id - * @param name - * The source name - */ - public SatelliteSource(int id, String name) { - this.sourceId = id; - this.sourceName = name; - } - - public int getSourceId() { - return sourceId; - } - - public void setSourceId(int sourceId) { - this.sourceId = sourceId; - } - - public String getSourceName() { - return sourceName; - } - - public void setSourceName(String sourceName) { - this.sourceName = sourceName; - } - - public String toString() { - return sourceName; - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatelliteUnit.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatelliteUnit.java deleted file mode 100644 index 9824e70283..0000000000 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/plugin/satellite/gini/SatelliteUnit.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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.satellite.gini; - -import java.io.Serializable; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; - -import com.raytheon.uf.common.dataplugin.persist.PersistableDataObject; - -@Entity -@Table(name = "satellite_units") -public class SatelliteUnit extends PersistableDataObject implements - Serializable { - - private static final long serialVersionUID = 1L; - - @Id - private int unitNumber; - - @Column(length = 32) - private String unitName; - - public SatelliteUnit() { - - } - - public SatelliteUnit(int number, String name) { - this.unitNumber = number; - this.unitName = name; - } - - public int getUnitNumber() { - return unitNumber; - } - - public void setUnitNumber(int unitNumber) { - this.unitNumber = unitNumber; - } - - public String getUnitName() { - return unitName; - } - - public void setUnitName(String unitName) { - this.unitName = unitName; - } -} diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatSpatialFactory.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatSpatialFactory.java index 37631a28cc..338bafe057 100644 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatSpatialFactory.java +++ b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatSpatialFactory.java @@ -24,7 +24,7 @@ import org.geotools.geometry.DirectPosition2D; import org.opengis.referencing.crs.ProjectedCRS; import org.opengis.referencing.operation.MathTransform; -import com.raytheon.edex.exception.DecoderException; +import com.raytheon.edex.plugin.satellite.SatelliteDecoderException; import com.raytheon.edex.plugin.satellite.dao.SatMapCoverageDao; import com.raytheon.uf.common.dataplugin.satellite.SatMapCoverage; import com.raytheon.uf.common.geospatial.MapUtil; @@ -45,6 +45,7 @@ import com.vividsolutions.jts.geom.Envelope; * either one corner + dx/dy or two corners. * Jun 05, 2014 3243 bsteffen Remove deprecated lambert conformal call. * Sep 15, 2014 DR 17303 jgerth Support for second standard latitude + * Nov 05, 2014 2714 bclement replaced DecoderException with SatelliteDecoderException * * */ @@ -168,7 +169,7 @@ public class SatSpatialFactory { */ public SatMapCoverage getCoverageSingleCorner(int crsType, int nx, int ny, double lov, double latin, double latin2, double la1, double lo1, double dx, - double dy) throws DecoderException { + double dy) throws SatelliteDecoderException { try { ProjectedCRS crs = createCRS(crsType, lov, latin, latin2, 0.0); DirectPosition2D corner = new DirectPosition2D(lo1, la1); @@ -193,7 +194,7 @@ public class SatSpatialFactory { buf.append("lo1=" + lo1).append("\n\t"); buf.append("dx=" + dx).append("\n\t"); buf.append("dy=" + dy).append("\n"); - throw new DecoderException(buf.toString(), e); + throw new SatelliteDecoderException(buf.toString(), e); } } @@ -202,7 +203,7 @@ public class SatSpatialFactory { */ public SatMapCoverage getCoverageSingleCorner(int crsType, int nx, int ny, double lov, double latin, double la1, double lo1, double dx, - double dy) throws DecoderException { + double dy) throws SatelliteDecoderException { return getCoverageSingleCorner(crsType, nx, ny, lov, latin, latin, la1, lo1, dx, dy); } @@ -242,7 +243,7 @@ public class SatSpatialFactory { */ public SatMapCoverage getCoverageTwoCorners(int crsType, int nx, int ny, double lov, double latin, double latin2, double la1, double lo1, double la2, - double lo2) throws DecoderException { + double lo2) throws SatelliteDecoderException { try { double cm = 0.0; if ((lo1 > 0.0) && (lo2 < 0.0)) { @@ -273,7 +274,7 @@ public class SatSpatialFactory { buf.append("lo1=" + lo1).append("\n\t"); buf.append("la2=" + la2).append("\n\t"); buf.append("lo2=" + lo2).append("\n"); - throw new DecoderException(buf.toString(), e); + throw new SatelliteDecoderException(buf.toString(), e); } } @@ -282,7 +283,7 @@ public class SatSpatialFactory { */ public SatMapCoverage getCoverageTwoCorners(int crsType, int nx, int ny, double lov, double latin, double la1, double lo1, double la2, - double lo2) throws DecoderException { + double lo2) throws SatelliteDecoderException { return getCoverageTwoCorners(crsType, nx, ny, lov, latin, latin, la1, lo1, la2, lo2); } diff --git a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatelliteMenuUtil.java b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatelliteMenuUtil.java index 8074193b16..02a82ed9db 100644 --- a/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatelliteMenuUtil.java +++ b/edexOsgi/com.raytheon.edex.plugin.satellite/src/com/raytheon/edex/util/satellite/SatelliteMenuUtil.java @@ -53,6 +53,7 @@ import com.vividsolutions.jts.geom.Coordinate; * Derived Products Imagery Display * Nov 01, 2012 15346 kshresth Added Satellite Products for OCONUS * Jun 05, 2014 3243 bsteffen Remove deprecated lambert conformal call. + * Nov 05, 2014 2714 bclement made constants protected to remove warnings * * * @@ -70,16 +71,16 @@ public class SatelliteMenuUtil extends AbstractMenuUtil { MapUtil.AWIPS_EARTH_RADIUS, 25, 25, -95, 25); // The western edge of the west conus satellite image in conusCRS - private static final double westConusWestEdge = -4226066.525608903; + protected static final double westConusWestEdge = -4226066.525608903; // The eastern edge of the west conus satellite image in conusCRS - private static final double westConusEastEdge = 243783.47439109907; + protected static final double westConusEastEdge = 243783.47439109907; // The eastern edge of the east conus satellite image in conusCRS - private static final double eastConusEastEdge = 3250785.858985792; + protected static final double eastConusEastEdge = 3250785.858985792; // The western edge of the east conus satellite image in conusCRS - private static final double eastConusWestEdge = -1950494.1410142092; + protected static final double eastConusWestEdge = -1950494.1410142092; @Override public void createMenus() { diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.satellite.gini/.classpath b/edexOsgi/com.raytheon.uf.edex.plugin.satellite.gini/.classpath new file mode 100644 index 0000000000..098194ca4b --- /dev/null +++ b/edexOsgi/com.raytheon.uf.edex.plugin.satellite.gini/.classpath @@ -0,0 +1,7 @@ + +
+ * + * SOFTWARE HISTORY + * + * Date Ticket# Engineer Description + * ------------ ---------- ----------- -------------------------- + * Nov 4, 2014 2714 bclement Initial creation + * + *+ * + * @author bclement + * @version 1.0 + */ +@XmlAccessorType(XmlAccessType.NONE) +@XmlRootElement +public class GeostationaryPosition { + + @XmlAttribute(required = true) + private String id; + + @XmlAttribute(required = true) + private int height; + + @XmlAttribute(required = true) + private float latitude; + + @XmlAttribute(required = true) + private float longitude; + + /** + * + */ + public GeostationaryPosition() { + } + + /** + * @return the id + */ + public String getId() { + return id; + } + + /** + * @param id + * the id to set + */ + public void setId(String id) { + this.id = id; + } + + /** + * @return the height + */ + public int getHeight() { + return height; + } + + /** + * @param height + * the height to set + */ + public void setHeight(int height) { + this.height = height; + } + + /** + * @return the latitude + */ + public float getLatitude() { + return latitude; + } + + /** + * @param latitude + * the latitude to set + */ + public void setLatitude(float latitude) { + this.latitude = latitude; + } + + /** + * @return the longitude + */ + public float getLongitude() { + return longitude; + } + + /** + * @param longitude + * the longitude to set + */ + public void setLongitude(float longitude) { + this.longitude = longitude; + } + +} diff --git a/edexOsgi/com.raytheon.uf.edex.plugin.satellite.gini/src/com/raytheon/uf/edex/plugin/satellite/gini/lookup/GeostationaryPositionTable.java b/edexOsgi/com.raytheon.uf.edex.plugin.satellite.gini/src/com/raytheon/uf/edex/plugin/satellite/gini/lookup/GeostationaryPositionTable.java new file mode 100644 index 0000000000..cd1a75a84d --- /dev/null +++ b/edexOsgi/com.raytheon.uf.edex.plugin.satellite.gini/src/com/raytheon/uf/edex/plugin/satellite/gini/lookup/GeostationaryPositionTable.java @@ -0,0 +1,92 @@ +/** + * 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.uf.edex.plugin.satellite.gini.lookup; + +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * Config XML object for GINI satellite geostationary position table + * + *
+ * + * SOFTWARE HISTORY + * + * Date Ticket# Engineer Description + * ------------ ---------- ----------- -------------------------- + * Nov 4, 2014 2714 bclement Initial creation + * + *+ * + * @author bclement + * @version 1.0 + */ +@XmlAccessorType(XmlAccessType.NONE) +@XmlRootElement +public class GeostationaryPositionTable { + + @XmlElement(name = "entry") + private List
+ * + * SOFTWARE HISTORY + * + * Date Ticket# Engineer Description + * ------------ ---------- ----------- -------------------------- + * Nov 4, 2014 2714 bclement Initial creation + * + *+ * + * @author bclement + * @version 1.0 + */ +@XmlAccessorType(XmlAccessType.NONE) +@XmlRootElement +public class NumericLookupTable { + + @XmlAttribute(required = true) + private String id; + + @XmlElement(name = "entry") + private List
+ * + * SOFTWARE HISTORY + * + * Date Ticket# Engineer Description + * ------------ ---------- ----------- -------------------------- + * Nov 4, 2014 2714 bclement Initial creation + * + *+ * + * @author bclement + * @version 1.0 + */ +@XmlAccessorType(XmlAccessType.NONE) +@XmlRootElement +public class NumericTableEntry implements Comparable