Interface StatisticsComputer

All Known Implementing Classes:
ComputerInterfaceModelPlaces, ComputerInterfacePlaces, ComputerModelPlaces

public interface StatisticsComputer
An interface that describes a metrics computer.
  • 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 be null.
      keys - the context translation key in the project, cannot be null.
      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 be null.
      keys - the context translation key in the project, cannot be null.
      language - the language, cannot be null.
      Returns:
      the translation statistics, cannot be null.