Class ComputerEngineImpl

java.lang.Object
com.e1c.langtool.internal.stat.ComputerEngineImpl
All Implemented Interfaces:
ComputerEngine

public class ComputerEngineImpl extends Object implements ComputerEngine
  • Constructor Summary

    Constructors
    Constructor
    Description
    ComputerEngineImpl(StatisticsService statisticsService, ITranslatingProjectManager translatingProjectManager, IFeatureValueCollectingService collectingService, GroupProviderRegistry groupProviderRegistry, StatisticsComputerRegistry computerRegistry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.core.runtime.IStatus
    compute(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
    Computing detailed statistics on the project, on all possible groupings and all resources.
    org.eclipse.core.runtime.IStatus
    computeGroup(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath group, org.eclipse.core.runtime.IProgressMonitor monitor)
    Compute statistics for grouping.
    org.eclipse.core.runtime.IStatus
    computeParents(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IProgressMonitor monitor)
    Compute statistics for the parents of the resource.
    org.eclipse.core.runtime.IStatus
    computeResource(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IProgressMonitor monitor)
    Computing detailed statistics to the resource.
    org.eclipse.core.runtime.IStatus
    computeTotalValue(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
    Computing total project statistics.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • computeTotalValue

      public org.eclipse.core.runtime.IStatus computeTotalValue(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: ComputerEngine
      Computing total project statistics.
      Specified by:
      computeTotalValue in interface ComputerEngine
      Parameters:
      project - the project
      monitor - the monitor
      Returns:
      the status
    • compute

      public org.eclipse.core.runtime.IStatus compute(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: ComputerEngine
      Computing detailed statistics on the project, on all possible groupings and all resources.
      Specified by:
      compute in interface ComputerEngine
      Parameters:
      project - the project
      monitor - the monitor
      Returns:
      the status
    • computeResource

      public org.eclipse.core.runtime.IStatus computeResource(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: ComputerEngine
      Computing detailed statistics to the resource.
      Specified by:
      computeResource in interface ComputerEngine
      Parameters:
      project - the project
      path - the relative path of this resource with respect to its project
      monitor - the monitor
      Returns:
      the status
    • computeParents

      public org.eclipse.core.runtime.IStatus computeParents(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: ComputerEngine
      Compute statistics for the parents of the resource.
      Specified by:
      computeParents in interface ComputerEngine
      Parameters:
      project - the project
      path - the relative path of this parent with respect to its project
      monitor - the monitor
      Returns:
      the status
    • computeGroup

      public org.eclipse.core.runtime.IStatus computeGroup(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath group, org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: ComputerEngine
      Compute statistics for grouping.
      Specified by:
      computeGroup in interface ComputerEngine
      Parameters:
      project - the project
      group - the path of group, its may be the relative path of this group with respect to its project
      monitor - the monitor
      Returns:
      the status