Class EntityResultFile

  • All Implemented Interfaces:
    java.io.Serializable, IResultFile

    @Entity(name="ResultFile")
    public class EntityResultFile
    extends java.lang.Object
    implements IResultFile, java.io.Serializable
    IResultFile object for base storage implementation
    See Also:
    Serialized Form
    • Method Detail

      • addFileScore

        public void addFileScore​(ISourceFile file,
                                 float score)
        Description copied from interface: IResultFile
        Adds an aggregate score from all tasks of the instance file against another file
        Specified by:
        addFileScore in interface IResultFile
        Parameters:
        file - file score is against
        score - score value
      • addTaskResult

        public IResultTask addTaskResult​(ITask task)
        Description copied from interface: IResultFile
        Adds a task (an individual detector run) to the file results
        Specified by:
        addTaskResult in interface IResultFile
        Parameters:
        task - task instance to add
        Returns:
        task results instance
      • getFileScores

        public java.util.Map<ISourceFile,​java.lang.Float> getFileScores()
        Description copied from interface: IResultFile
        Returns the full map of stored file vs instance file aggregate score from all tasks
        Specified by:
        getFileScores in interface IResultFile
        Returns:
        map of scores
      • getOverallScore

        public float getOverallScore()
        Description copied from interface: IResultFile
        Gets the overall aggregate score for all tasks and other files for the instance file
        Specified by:
        getOverallScore in interface IResultFile
        Returns:
        score
      • setOverallScore

        public void setOverallScore​(float score)
        Description copied from interface: IResultFile
        Sets the overall aggregate score for the file
        Specified by:
        setOverallScore in interface IResultFile
        Parameters:
        score - aggregate score value