edu.nrao.sss.model.project.scheduling.constraint
Class ConstraintMeasureSum

java.lang.Object
  extended by edu.nrao.sss.model.project.scheduling.constraint.ConstraintMeasureSum

public class ConstraintMeasureSum
extends Object

Computes a weighted average of the operation constraints as the probability that a scheduling block will be successful in realizing its scientific goals.

Author:
slovelan

Constructor Summary
ConstraintMeasureSum()
           
ConstraintMeasureSum(ConstraintMeasureSum copy)
           
 
Method Summary
 void clearOperatingConstraints()
           
 Set<Constraint> getConstraints()
           
 double getProbabilitySuccess(List<Constraint> sbConstraints)
           
 float getWeight()
          Returns a new weight for this type of constraint.
 void setWeight(float newWeight)
          Sets a new weight for this type of constraint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintMeasureSum

public ConstraintMeasureSum()

ConstraintMeasureSum

public ConstraintMeasureSum(ConstraintMeasureSum copy)
Method Detail

clearOperatingConstraints

public void clearOperatingConstraints()

getConstraints

public Set<Constraint> getConstraints()

setWeight

public void setWeight(float newWeight)
Sets a new weight for this type of constraint.

Parameters:
newWeight - a float indicating the importance of this particular constraint.

getWeight

public float getWeight()
Returns a new weight for this type of constraint.

Returns:
a float indicating the importance of this particular constraint compared to others.

getProbabilitySuccess

public double getProbabilitySuccess(List<Constraint> sbConstraints)


Copyright © 2009. All Rights Reserved.