Class AbstractAssessment<DOC extends Document>

    • Constructor Detail

      • AbstractAssessment

        public AbstractAssessment()
    • Method Detail

      • getNextId

        protected static int getNextId()
      • getId

        public int getId()
      • getResultDirectory

        public File getResultDirectory()
        Retrieves the result directory set using the setResultDirectory(File) method.
        Returns:
        the set result directory or null otherwise
      • setResultDirectory

        public void setResultDirectory​(File resultDirectory)
        Sets an output directory to write assessment artifacts to. An assessment is not required to create (and write) assessment artifacts. If there is a need to write artifacts and a directory is provided, the assessment must write these artifacts under the provided directory. Calls to File.createTempFile(String, String, File) (or an equivalent method) may be used if the last argument is passed using the provided directory. If no directory is provided using this method, then the assessment may create temporary files instead by calling File.createTempFile(String, String) or an equivalent method.
        Parameters:
        resultDirectory - if not null, the directory to write assessment artifacts to
      • getName

        public String getName​(boolean includeDetail)
        Description copied from interface: Assessment
        Retrieves a human-readable label for the assessment.
        Specified by:
        getName in interface Assessment<DOC extends Document>
        Parameters:
        includeDetail - if true, include identifying details
        Returns:
        a human-readable label for the assessment.
      • getNameDetails

        protected abstract String getNameDetails()
        Retrieves basic naming details used to build a human-readable label for the assessment.
        Returns:
        the details or null if none exist