Package com.e1c.langtool.stat
Interface StatisticsComputer
- All Known Implementing Classes:
ComputerInterfaceModelPlaces,ComputerInterfacePlaces,ComputerModelPlaces
public interface StatisticsComputer
An interface that describes a metrics computer.
-
Method Summary
Modifier and TypeMethodDescriptionintcomputeBaseValue(org.eclipse.core.resources.IProject project, Collection<ContextTranslationKey> keys) Returns a value of this basic metric.computeTranslatedValue(org.eclipse.core.resources.IProject project, Collection<ContextTranslationKey> keys, TranslateLanguage language) Returns a value of this metric for the language.Returns a description of metric.
-
Method Details
-
getMetric
Metric getMetric()Returns a description of metric.- Returns:
- the metric, cannot return
null.
-
computeBaseValue
int computeBaseValue(org.eclipse.core.resources.IProject project, Collection<ContextTranslationKey> keys) Returns a value of this basic metric. Computes the count of source spaces to translate.- Parameters:
project- the project, cannot benull.keys- the context translation key in the project, cannot benull.- Returns:
- value of the metric, cannot return
null.
-
computeTranslatedValue
TranslationProgress computeTranslatedValue(org.eclipse.core.resources.IProject project, Collection<ContextTranslationKey> keys, TranslateLanguage language) Returns a value of this metric for the language. Computes the count of translated spaces into the given language.- Parameters:
project- the project, cannot benull.keys- the context translation key in the project, cannot benull.language- the language, cannot benull.- Returns:
- the translation statistics, cannot be
null.
-