public abstract class AbstractEchoBaseCommand<R extends CoserRequest> extends Object implements CoserCommand<EchoBaseResultRepository,R>
Modifier and Type | Field and Description |
---|---|
protected CoserRequestContext |
context |
protected EchoBaseResultRepository |
repository |
Constructor and Description |
---|
AbstractEchoBaseCommand() |
Modifier and Type | Method and Description |
---|---|
protected DataStorage |
extractCommunity(com.google.common.base.Predicate<String[]> predicate) |
protected DataStorage |
extractPopulation(com.google.common.base.Predicate<String[]> predicate) |
void |
extractRawData(File targetDirectory) |
protected org.jfree.chart.JFreeChart |
generateCommunityChart(String zone,
String indicator,
String species) |
protected org.jfree.chart.JFreeChart |
generatePopulationChart(String zone,
String species,
String indicator) |
Charts |
getCharts() |
protected Set<String> |
getCommunityIndicators() |
protected Map<String,String> |
getCommunitySpeciesMap() |
protected Map<String,String> |
getCommunitySpeciesMap(String indicator) |
CoserBusinessConfig |
getConfig() |
IndicatorMap |
getIndicatorsMap() |
Locale |
getLocale() |
protected Map<String,String> |
getMapSpeciesMap() |
protected Set<String> |
getPopulationIndicators() |
protected Set<String> |
getPopulationIndicators(String species) |
protected Set<String> |
getPopulationSpecies() |
protected Map<String,String> |
getPopulationSpeciesMap() |
Reports |
getReports() |
ZoneMap |
getZonesMap() |
protected ExtractRawDataAndResultsResult |
newExtractRawDataAndResultsResult(org.apache.commons.collections4.map.MultiKeyMap<String,File> pdfMaps,
org.apache.commons.collections4.map.MultiKeyMap<String,org.apache.commons.lang3.tuple.Pair<File,String>> pdfCharts) |
protected FileResult |
newFileResult(File file) |
protected MapResult |
newMapResult(Map<String,String> map) |
protected VoidResult |
newVoidResult() |
void |
setRepository(EchoBaseResultRepository repository) |
void |
setRequestContext(CoserRequestContext context) |
protected void |
walkOnCommunity(DataStorageWalker walker) |
protected void |
walkOnCommunity(com.google.common.base.Predicate<String[]> predicate,
DataStorageWalker walker) |
protected void |
walkOnPopulation(DataStorageWalker walker) |
protected void |
walkOnPopulation(com.google.common.base.Predicate<String[]> predicate,
DataStorageWalker walker) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, execute
protected CoserRequestContext context
protected EchoBaseResultRepository repository
public void setRequestContext(CoserRequestContext context)
setRequestContext
in interface CoserCommand<EchoBaseResultRepository,R extends CoserRequest>
public void setRepository(EchoBaseResultRepository repository)
setRepository
in interface CoserCommand<EchoBaseResultRepository,R extends CoserRequest>
public IndicatorMap getIndicatorsMap()
public ZoneMap getZonesMap()
public Reports getReports()
public Charts getCharts()
public Locale getLocale()
public CoserBusinessConfig getConfig()
public void extractRawData(File targetDirectory)
protected FileResult newFileResult(File file)
protected VoidResult newVoidResult()
protected ExtractRawDataAndResultsResult newExtractRawDataAndResultsResult(org.apache.commons.collections4.map.MultiKeyMap<String,File> pdfMaps, org.apache.commons.collections4.map.MultiKeyMap<String,org.apache.commons.lang3.tuple.Pair<File,String>> pdfCharts)
protected void walkOnCommunity(DataStorageWalker walker)
protected void walkOnCommunity(com.google.common.base.Predicate<String[]> predicate, DataStorageWalker walker)
protected void walkOnPopulation(DataStorageWalker walker)
protected void walkOnPopulation(com.google.common.base.Predicate<String[]> predicate, DataStorageWalker walker)
protected DataStorage extractCommunity(com.google.common.base.Predicate<String[]> predicate)
protected DataStorage extractPopulation(com.google.common.base.Predicate<String[]> predicate)
protected org.jfree.chart.JFreeChart generateCommunityChart(String zone, String indicator, String species)
Copyright © 2010–2015 Ifremer. All rights reserved.