edu.nrao.sss.model.project.scheduling.constraint
Class ConstraintMeasureSum
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstraintMeasureSum
public ConstraintMeasureSum()
ConstraintMeasureSum
public ConstraintMeasureSum(ConstraintMeasureSum copy)
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.