Class Detector<T extends DetectorWorker>

  • Type Parameters:
    T - DetectorWorker implementation used by this detector
    All Implemented Interfaces:
    IDetector<T>
    Direct Known Subclasses:
    PairwiseDetector

    public abstract class Detector<T extends DetectorWorker>
    extends java.lang.Object
    implements IDetector<T>
    Abstract implementation of the IDetector interface, this should be used as the base to construct all detectors

    Supports adjustable parameters see AdjustableParameter
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.util.List<T> buildWorkers​(java.util.List<ModelDataItem> data)
      Builds a set of workers on a passed dataset, these workers are executed in parallel to produce the algorithm result
      java.lang.String getDescription()
      Fetches the description string for the detector
      java.lang.String getDisplayName()
      Fetches the display name for the detector
      java.util.List<PreProcessingStrategy> getPreProcessors()
      Specify the preprocessors required for this detector.
      void setDescription​(java.lang.String description)
      Sets the user facing description
      • Methods inherited from class java.lang.Object

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

      • Detector

        public Detector​(java.lang.String displayName,
                        PreProcessingStrategy... preProcessingStrategies)
        IDetector implementation without description
        Parameters:
        displayName - user facing display name for the detector
        preProcessingStrategies - preprocessing strategies to use for this detector, can be one of many.
      • Detector

        public Detector​(java.lang.String displayName,
                        java.lang.String description,
                        PreProcessingStrategy... preProcessingStrategies)
        IDetector implementation with description
        Parameters:
        displayName - user facing display name for the detector
        description - user facing description for the detector
        preProcessingStrategies - preprocessing strategies to use for this detector, can be one of many.
    • Method Detail

      • buildWorkers

        public abstract java.util.List<T> buildWorkers​(java.util.List<ModelDataItem> data)
        Builds a set of workers on a passed dataset, these workers are executed in parallel to produce the algorithm result
        Specified by:
        buildWorkers in interface IDetector<T extends DetectorWorker>
        Parameters:
        data - preprocessed dataset
        Returns:
        list of configured workers ready to be executed
      • getDescription

        public final java.lang.String getDescription()
        Fetches the description string for the detector
        Specified by:
        getDescription in interface IDetector<T extends DetectorWorker>
        Returns:
        the description
      • setDescription

        public final void setDescription​(java.lang.String description)
        Sets the user facing description
        Parameters:
        description - description string
      • getDisplayName

        public final java.lang.String getDisplayName()
        Fetches the display name for the detector
        Specified by:
        getDisplayName in interface IDetector<T extends DetectorWorker>
        Returns:
        the display name