Class ComputerInterfaceModelPlaces

java.lang.Object
com.e1c.langtool.internal.stat.computer.ComputerInterfaceModelPlaces
All Implemented Interfaces:
StatisticsComputer

public final class ComputerInterfaceModelPlaces extends Object implements StatisticsComputer
Computer metrics showing the number of interface and model places to translate in the context of the resource.
  • Constructor Details

    • ComputerInterfaceModelPlaces

      public ComputerInterfaceModelPlaces()
  • Method Details

    • getMetric

      public Metric getMetric()
      Description copied from interface: StatisticsComputer
      Returns a description of metric.
      Specified by:
      getMetric in interface StatisticsComputer
      Returns:
      the metric, cannot return null.
    • computeBaseValue

      public int computeBaseValue(org.eclipse.core.resources.IProject project, Collection<ContextTranslationKey> keys)
      Description copied from interface: StatisticsComputer
      Returns a value of this basic metric. Computes the count of source spaces to translate.
      Specified by:
      computeBaseValue in interface StatisticsComputer
      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

      public TranslationProgress computeTranslatedValue(org.eclipse.core.resources.IProject project, Collection<ContextTranslationKey> keys, TranslateLanguage language)
      Description copied from interface: StatisticsComputer
      Returns a value of this metric for the language. Computes the count of translated spaces into the given language.
      Specified by:
      computeTranslatedValue in interface StatisticsComputer
      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.