Class LeastResourceUsage
- java.lang.Object
 - 
- uk.co.ractf.polaris.controller.scheduler.score.LeastResourceUsage
 
 
- 
- All Implemented Interfaces:
 ScorePlugin
public class LeastResourceUsage extends java.lang.Object implements ScorePlugin
 
- 
- 
Constructor Summary
Constructors Constructor Description LeastResourceUsage() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetWeight()How heavily should this scoring plugin be considered in the scheduling algorithmdoublescore(uk.co.ractf.polaris.api.task.Task task, uk.co.ractf.polaris.api.node.NodeInfo nodeInfo)Scores how well aTaskcan run on a givenNodeInfo. 
 - 
 
- 
- 
Method Detail
- 
score
public double score(uk.co.ractf.polaris.api.task.Task task, uk.co.ractf.polaris.api.node.NodeInfo nodeInfo)Description copied from interface:ScorePluginScores how well aTaskcan run on a givenNodeInfo. The returned double has no bounds but should be normalised across all nodes to be between 0 and 1.- Specified by:
 scorein interfaceScorePlugin- Parameters:
 task- the tasknodeInfo- the node to score- Returns:
 - the score
 
 
- 
getWeight
public int getWeight()
Description copied from interface:ScorePluginHow heavily should this scoring plugin be considered in the scheduling algorithm- Specified by:
 getWeightin interfaceScorePlugin- Returns:
 - the weight
 
 
 - 
 
 -