Class AbstractOutlierDetector.DetectorJob<T extends DataContainer>

    • Constructor Detail

      • DetectorJob

        public DetectorJob​(AbstractOutlierDetector detector,
                           T data)
        Initializes the job.
        Parameters:
        detector - the detector to use
        data - the data to pass through the detector
    • Method Detail

      • getOutlierDetector

        public AbstractOutlierDetector getOutlierDetector()
        Returns the detector being used.
        Returns:
        the detector in use
      • getData

        public T getData()
        The input data.
        Returns:
        the input data
      • getResult

        public List<String> getResult()
        The result, if any.
        Returns:
        the result, or null if no outlier
      • preProcessCheck

        protected String preProcessCheck()
        Checks whether all pre-conditions have been met.
        Specified by:
        preProcessCheck in class AbstractJob
        Returns:
        null if everything is OK, otherwise an error message
      • process

        protected void process()
                        throws Exception
        Does the actual execution of the job.
        Specified by:
        process in class AbstractJob
        Throws:
        Exception - if fails to execute job
      • postProcessCheck

        protected String postProcessCheck()
        Checks whether all post-conditions have been met.
        Specified by:
        postProcessCheck in class AbstractJob
        Returns:
        null if everything is OK, otherwise an error message
      • getAdditionalErrorInformation

        protected String getAdditionalErrorInformation()
        Returns additional information to be added to the error message.
        Overrides:
        getAdditionalErrorInformation in class AbstractJob
        Returns:
        the additional information
      • toString

        public String toString()
        Returns a string representation of the job.
        Specified by:
        toString in class AbstractJob
        Returns:
        a string representation