Interface IResultFile
-
- All Known Implementing Classes:
EntityResultFile
public interface IResultFile
Stores the results of an individual file from a job, is used as child ofIResultJob
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addFileScore(ISourceFile file, float score)
Adds an aggregate score from all tasks of the instance file against another fileIResultTask
addTaskResult(ITask task)
Adds a task (an individual detector run) to the file resultsISourceFile
getFile()
Get the file this instance representsfloat
getFileScore(ISourceFile file)
Gets the aggregate score from all tasks of the instance file vs the passed file, the file must have been registered usingaddFileScore(ISourceFile, float)
java.util.Map<ISourceFile,java.lang.Float>
getFileScores()
Returns the full map of stored file vs instance file aggregate score from all tasksfloat
getOverallScore()
Gets the overall aggregate score for all tasks and other files for the instance filejava.util.List<IResultTask>
getTaskResults()
Returns the list ofIResultTask
stored for this filevoid
setOverallScore(float score)
Sets the overall aggregate score for the file
-
-
-
Method Detail
-
addFileScore
void addFileScore(ISourceFile file, float score)
Adds an aggregate score from all tasks of the instance file against another file- Parameters:
file
- file score is againstscore
- score value
-
addTaskResult
IResultTask addTaskResult(ITask task)
Adds a task (an individual detector run) to the file results- Parameters:
task
- task instance to add- Returns:
- task results instance
-
getFile
ISourceFile getFile()
Get the file this instance represents- Returns:
- file instance
-
getFileScore
float getFileScore(ISourceFile file)
Gets the aggregate score from all tasks of the instance file vs the passed file, the file must have been registered usingaddFileScore(ISourceFile, float)
- Parameters:
file
- file score is against- Returns:
- score value stored
-
getFileScores
java.util.Map<ISourceFile,java.lang.Float> getFileScores()
Returns the full map of stored file vs instance file aggregate score from all tasks- Returns:
- map of scores
-
getOverallScore
float getOverallScore()
Gets the overall aggregate score for all tasks and other files for the instance file- Returns:
- score
-
setOverallScore
void setOverallScore(float score)
Sets the overall aggregate score for the file- Parameters:
score
- aggregate score value
-
getTaskResults
java.util.List<IResultTask> getTaskResults()
Returns the list ofIResultTask
stored for this file- Returns:
- list of tasks
-
-