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 ResultRepository
public LegacyResultRepositoryType getResultRepositoryType()
getResultRepositoryType
in interface ResultRepository
public String getSurveyName()
getSurveyName
in interface ResultRepository
public File getBasedir()
getBasedir
in interface ResultRepository
public String getProjectName()
getProjectName
in interface ResultRepository
public String getZone()
getZone
in interface ResultRepository
public boolean isMapsResult()
isMapsResult
in interface ResultRepository
public boolean isIndicatorsResult()
isIndicatorsResult
in interface ResultRepository
public boolean isPubliableResult()
isPubliableResult
in interface ResultRepository
public boolean isDataResult()
isDataResult
in interface ResultRepository
public 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.