org.globus.cog.karajan.scheduler
Class WeightedHost
java.lang.Object
org.globus.cog.karajan.scheduler.WeightedHost
- All Implemented Interfaces:
- Comparable
public class WeightedHost
- extends Object
- implements Comparable
T
public static final double T
- See Also:
- Constant Field Values
B
public static final double B
C
public static final double C
- See Also:
- Constant Field Values
D4
public static final NumberFormat D4
WeightedHost
public WeightedHost(BoundContact contact,
int jobThrottle)
WeightedHost
public WeightedHost(BoundContact contact,
double score,
int jobThrottle)
WeightedHost
public WeightedHost(BoundContact contact,
double score,
int load,
int jobThrottle)
setScore
protected void setScore(double score)
smooth
public double smooth(double score)
getScore
public final double getScore()
getScoreAsDouble
public final Double getScoreAsDouble()
getTScore
public final double getTScore()
getHost
public final BoundContact getHost()
getLoad
public int getLoad()
setLoad
public void setLoad(int load)
changeLoad
public void changeLoad(int dl)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
getDelayedDelta
public double getDelayedDelta()
setDelayedDelta
public void setDelayedDelta(double delayedDelta)
isOverloaded
public boolean isOverloaded()
getJobThrottle
public int getJobThrottle()