org.globus.cog.karajan.scheduler
Class WeightedHost

java.lang.Object
  extended by org.globus.cog.karajan.scheduler.WeightedHost
All Implemented Interfaces:
Comparable

public class WeightedHost
extends Object
implements Comparable


Field Summary
static double B
           
static double C
           
static NumberFormat D4
           
static double T
           
 
Constructor Summary
WeightedHost(BoundContact contact, double score, int jobThrottle)
           
WeightedHost(BoundContact contact, double score, int load, int jobThrottle)
           
WeightedHost(BoundContact contact, int jobThrottle)
           
 
Method Summary
 void changeLoad(int dl)
           
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 double getDelayedDelta()
           
 BoundContact getHost()
           
 int getJobThrottle()
           
 int getLoad()
           
 double getScore()
           
 Double getScoreAsDouble()
           
 double getTScore()
           
 int hashCode()
           
 boolean isOverloaded()
           
 void setDelayedDelta(double delayedDelta)
           
 void setLoad(int load)
           
protected  void setScore(double score)
           
 double smooth(double score)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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()