Interface ScorePlugin
-
- All Known Implementing Classes:
LeastResourceUsage
public interface ScorePlugin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getWeight()
How heavily should this scoring plugin be considered in the scheduling algorithmdouble
score(uk.co.ractf.polaris.api.task.Task task, uk.co.ractf.polaris.api.node.NodeInfo nodeInfo)
Scores how well aTask
can run on a givenNodeInfo
.
-
-
-
Method Detail
-
score
double score(uk.co.ractf.polaris.api.task.Task task, uk.co.ractf.polaris.api.node.NodeInfo nodeInfo)
Scores how well aTask
can run on a givenNodeInfo
. The returned double has no bounds but should be normalised across all nodes to be between 0 and 1.- Parameters:
task
- the tasknodeInfo
- the node to score- Returns:
- the score
-
getWeight
int getWeight()
How heavily should this scoring plugin be considered in the scheduling algorithm- Returns:
- the weight
-
-