Adjusted Input parameters

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngineGeoSpatialExtension@76909 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Gianpaolo Coro 2013-06-07 17:26:02 +00:00
parent 595a668600
commit d8f853f1f8
1 changed files with 9 additions and 5 deletions

View File

@ -35,8 +35,8 @@ import org.opengis.metadata.Metadata;
public class MapsComparator extends DataAnalysis { public class MapsComparator extends DataAnalysis {
static String layer1 = "LayerTitle_1"; static String layer1 = "Layer_1";
static String layer2 = "LayerTitle_2"; static String layer2 = "Layer_2";
static String zString = "Z"; static String zString = "Z";
static String t1 = "TimeIndex_1"; static String t1 = "TimeIndex_1";
static String t2 = "TimeIndex_2"; static String t2 = "TimeIndex_2";
@ -57,7 +57,7 @@ public class MapsComparator extends DataAnalysis {
} }
@Override @Override
public LinkedHashMap<String, String> analyze() throws Exception { public void compute() throws Exception{
status = 0; status = 0;
AnalysisLogger.setLogger(config.getConfigPath() + AlgorithmConfiguration.defaultLoggerFile); AnalysisLogger.setLogger(config.getConfigPath() + AlgorithmConfiguration.defaultLoggerFile);
long t0 = System.currentTimeMillis(); long t0 = System.currentTimeMillis();
@ -181,11 +181,9 @@ public class MapsComparator extends DataAnalysis {
AnalysisLogger.getLogger().debug("MapsComparator: Deleting table " + rastertable2); AnalysisLogger.getLogger().debug("MapsComparator: Deleting table " + rastertable2);
DatabaseFactory.executeSQLUpdate(DatabaseUtils.dropTableStatement(rastertable2), connection); DatabaseFactory.executeSQLUpdate(DatabaseUtils.dropTableStatement(rastertable2), connection);
AnalysisLogger.getLogger().debug("MapsComparator: Elapsed: Whole operation completed in " + ((double) (System.currentTimeMillis() - t0) / 1000d) + "s"); AnalysisLogger.getLogger().debug("MapsComparator: Elapsed: Whole operation completed in " + ((double) (System.currentTimeMillis() - t0) / 1000d) + "s");
return outputParameters;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
AnalysisLogger.getLogger().debug("MapsComparator: ERROR!: " + e.getLocalizedMessage()); AnalysisLogger.getLogger().debug("MapsComparator: ERROR!: " + e.getLocalizedMessage());
return outputParameters;
} finally { } finally {
DatabaseUtils.closeDBConnection(connection); DatabaseUtils.closeDBConnection(connection);
status = 100; status = 100;
@ -276,6 +274,12 @@ public class MapsComparator extends DataAnalysis {
public float getStatus() { public float getStatus() {
return status; return status;
} }
@Override
public LinkedHashMap<String, String> analyze() throws Exception {
// TODO Auto-generated method stub
return null;
}
} }