public class LegacyResultRepository extends Object implements ResultRepository
| Modifier and Type | Field and Description |
|---|---|
protected File |
basedir
Project basedir.
|
protected String |
id
Unique id of the result
|
protected com.google.common.base.Function<File,String> |
mapFileToSpeciesCode
Transform a map result species file to the species code.
|
protected File |
mapsDirectory
Maps directory.
|
protected FilenameFilter |
mapSpeciesFilenameFilter
Filter map result species file.
|
protected RSufiResultPath |
path
Project definition.
|
protected File |
resultDirectory
Results directory.
|
protected com.google.common.base.Function<String,String> |
speciesCodeToMapFile
Transform a species code to his map result species filename.
|
protected SpeciesListMap |
speciesListMap
Cache of species list definition.
|
protected SpeciesMap |
speciesMap
Cache of species definition.
|
protected String |
surveyName
Survey name (used to get maps).
|
| Constructor and Description |
|---|
LegacyResultRepository(File basedir,
RSufiResultPath path,
String surveyName) |
protected final File basedir
protected final File resultDirectory
protected final File mapsDirectory
protected final RSufiResultPath path
protected final com.google.common.base.Function<File,String> mapFileToSpeciesCode
protected final com.google.common.base.Function<String,String> speciesCodeToMapFile
protected final FilenameFilter mapSpeciesFilenameFilter
protected final String surveyName
protected SpeciesMap speciesMap
protected SpeciesListMap speciesListMap
protected final String id
public LegacyResultRepository(File basedir, RSufiResultPath path, String surveyName)
public String getId()
getId in interface ResultRepositorypublic LegacyResultRepositoryType getResultRepositoryType()
getResultRepositoryType in interface ResultRepositorypublic String getSurveyName()
getSurveyName in interface ResultRepositorypublic File getBasedir()
getBasedir in interface ResultRepositorypublic String getProjectName()
getProjectName in interface ResultRepositorypublic String getZone()
getZone in interface ResultRepositorypublic boolean isMapsResult()
isMapsResult in interface ResultRepositorypublic boolean isIndicatorsResult()
isIndicatorsResult in interface ResultRepositorypublic boolean isPubliableResult()
isPubliableResult in interface ResultRepositorypublic boolean isDataResult()
isDataResult in interface ResultRepositorypublic File getResultDirectory()
public RSufiResultPath getPath()
public String getSelectionName()
public String getResultName()
public boolean matchFacade(CoserRequestFacadeAware request)
public boolean matchZone(CoserRequestZoneAware request)
public boolean matchZone(CoserRequestZoneListAware request)
public boolean matchRepositoryType(CoserRequestRepositoryTypeAware request)
public boolean matchResultType(CoserRequestRepositoryResultTypeAware request)
public boolean matchExtractTypeList(CoserRequestExtractTypeListAware request)
public boolean matchCommunity(com.google.common.base.Predicate<String[]> predicate)
public boolean matchPopulation(com.google.common.base.Predicate<String[]> predicate)
public SpeciesListMap getSpeciesListMap()
public SpeciesMap getSpeciesMap()
public DataStorage getPopulationIndicatorStorage()
public DataStorage getCommunityIndicatorStorage()
Copyright © 2010–2015 Ifremer. All rights reserved.