org.globus.cog.karajan.scheduler
Class WeightedHostSet

java.lang.Object
  extended by org.globus.cog.karajan.scheduler.WeightedHostSet

public class WeightedHostSet
extends Object


Constructor Summary
WeightedHostSet(double scoreHighCap)
           
 
Method Summary
 void add(WeightedHost wh)
           
 boolean allOverloaded()
           
 void changeLoad(WeightedHost wh, int dl)
           
 void changeScore(WeightedHost wh, double newScore)
           
 WeightedHost findHost(BoundContact bc)
           
 double getSum()
           
protected  void init()
           
 boolean isEmpty()
           
 Iterator iterator()
           
 WeightedHost last()
           
 double remove(WeightedHost wh)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WeightedHostSet

public WeightedHostSet(double scoreHighCap)
Method Detail

init

protected void init()

add

public void add(WeightedHost wh)

changeScore

public void changeScore(WeightedHost wh,
                        double newScore)

changeLoad

public void changeLoad(WeightedHost wh,
                       int dl)

remove

public double remove(WeightedHost wh)

findHost

public WeightedHost findHost(BoundContact bc)

iterator

public Iterator iterator()

last

public WeightedHost last()

size

public int size()

getSum

public double getSum()

isEmpty

public boolean isEmpty()

toString

public String toString()
Overrides:
toString in class Object

allOverloaded

public boolean allOverloaded()