@Service
public class TransmissionEngineDistribution
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TransmissionEngineDistribution.AggregationMode |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTENSION_VALUE_PREFIX |
static Logger |
logger |
protected static java.util.List<java.lang.String> |
TAXONDESCRIPTION_INIT_STRATEGY |
Constructor and Description |
---|
TransmissionEngineDistribution() |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(TransmissionEngineDistribution.AggregationMode mode,
java.util.List<NamedArea> superAreas,
Rank lowerRank,
Rank upperRank,
Classification classification,
IProgressMonitor monitor)
runs both steps
Step 1: Accumulate occurrence records by area
Step 2: Accumulate by ranks starting from lower rank to upper rank,
the status of all children are accumulated on each rank starting from
lower rank to upper rank.
|
protected void |
accumulateByArea(java.util.List<NamedArea> superAreas,
ClassificationLookupDTO classificationLookupDao,
IProgressMonitor subMonitor,
boolean doClearDescriptions)
Step 1: Accumulate occurrence records by area
areas are projected to super areas e.g.: HS <-- HS(A), HS(G), HS(S)
super areas do initially not have a status set ==> Prerequisite to check in CDM
areas having a summary status of summary value different from
getByAreaIgnoreStatusList() are ignored
areas have a priority value, the status of the area with highest priority determines the status of the super area
the source references of the accumulated distributions are also accumulated into the new distribution,,
this has been especially implemented for the EuroMed Checklist Vol2 and might not be a general requirement
|
protected void |
accumulateByRank(java.util.List<Rank> rankInterval,
ClassificationLookupDTO classificationLookupDao,
IProgressMonitor subMonitor,
boolean doClearDescriptions)
Step 2: Accumulate by ranks starting from lower rank to upper rank, the status of all children
are accumulated on each rank starting from lower rank to upper rank.
|
static void |
addSourcesDeduplicated(java.util.Set<DescriptionElementSource> target,
java.util.Set<DescriptionElementSource> sources) |
void |
commitTransaction(org.springframework.transaction.TransactionStatus txStatus) |
long |
getBatchMinFreeHeap() |
java.util.List<PresenceAbsenceTerm> |
getByAreaIgnoreStatusList()
byAreaIgnoreStatusList contains by default:
AbsenceTerm.CULTIVATED_REPORTED_IN_ERROR()
AbsenceTerm.INTRODUCED_REPORTED_IN_ERROR()
AbsenceTerm.INTRODUCED_FORMERLY_INTRODUCED()
AbsenceTerm.NATIVE_REPORTED_IN_ERROR()
AbsenceTerm.NATIVE_FORMERLY_NATIVE()
|
java.util.List<PresenceAbsenceTerm> |
getByRankIgnoreStatusList()
byRankIgnoreStatusList contains by default
PresenceTerm.ENDEMIC_FOR_THE_RELEVANT_AREA()
|
void |
setBatchMinFreeHeap(long batchMinFreeHeap) |
void |
setByAreaIgnoreStatusList(java.util.List<PresenceAbsenceTerm> byAreaIgnoreStatusList) |
void |
setByRankIgnoreStatusList(java.util.List<PresenceAbsenceTerm> byRankIgnoreStatusList) |
org.springframework.transaction.TransactionStatus |
startTransaction(java.lang.Boolean readOnly) |
void |
updatePriorities()
Sets the priorities for presence and absence terms, the priorities are stored in extensions.
|
public static final java.lang.String EXTENSION_VALUE_PREFIX
public static final Logger logger
protected static final java.util.List<java.lang.String> TAXONDESCRIPTION_INIT_STRATEGY
public TransmissionEngineDistribution()
superAreas
- public java.util.List<PresenceAbsenceTerm> getByAreaIgnoreStatusList()
public void setByAreaIgnoreStatusList(java.util.List<PresenceAbsenceTerm> byAreaIgnoreStatusList)
byAreaIgnoreStatusList
- the byAreaIgnoreStatusList to setpublic java.util.List<PresenceAbsenceTerm> getByRankIgnoreStatusList()
public void setByRankIgnoreStatusList(java.util.List<PresenceAbsenceTerm> byRankIgnoreStatusList)
byRankIgnoreStatusList
- the byRankIgnoreStatusList to setpublic void accumulate(TransmissionEngineDistribution.AggregationMode mode, java.util.List<NamedArea> superAreas, Rank lowerRank, Rank upperRank, Classification classification, IProgressMonitor monitor) throws JvmLimitsException
superAreas
- the areas to which the subordinate areas should be projected.lowerRank
- upperRank
- classification
- classification
- limit the accumulation process to a specific classification
(not yet implemented)monitor
- the progress monitor to use for reporting progress to the
user. It is the caller's responsibility to call done() on the
given monitor. Accepts null, indicating that no progress
should be reported and that the operation cannot be cancelled.JvmLimitsException
protected void accumulateByArea(java.util.List<NamedArea> superAreas, ClassificationLookupDTO classificationLookupDao, IProgressMonitor subMonitor, boolean doClearDescriptions) throws JvmLimitsException
getByAreaIgnoreStatusList()
are ignoredsuperAreas
- the areas to which the subordinate areas should be projectedclassificationLookupDao
- JvmLimitsException
protected void accumulateByRank(java.util.List<Rank> rankInterval, ClassificationLookupDTO classificationLookupDao, IProgressMonitor subMonitor, boolean doClearDescriptions) throws JvmLimitsException
JvmLimitsException
public org.springframework.transaction.TransactionStatus startTransaction(java.lang.Boolean readOnly)
public void commitTransaction(org.springframework.transaction.TransactionStatus txStatus)
public void updatePriorities()
public static void addSourcesDeduplicated(java.util.Set<DescriptionElementSource> target, java.util.Set<DescriptionElementSource> sources)
public long getBatchMinFreeHeap()
public void setBatchMinFreeHeap(long batchMinFreeHeap)
batchMinFreeHeap
- the batchMinFreeHeap to setCopyright © 2007-2019 EDIT. All Rights Reserved.