|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.project.scheduling.constraint.Constraint
public abstract class Constraint
Represents an operating condition such as wind, API, and the position of the target and evaluates the probability of a scheduling block meeting its scientific goals under the operating condition.
Field Summary | |
---|---|
protected ConstraintType |
constraintType
|
Constructor Summary | |
---|---|
Constraint()
|
|
Constraint(Constraint c)
|
Method Summary | |
---|---|
boolean |
equals(Object other)
|
protected Constraint |
getConstraint(List<Constraint> constraints)
Returns the constraint matching this one in the list. |
ConstraintType |
getConstraintType()
Returns the type of operation condition for this constraint. |
abstract ConstraintProbability |
getProbabilitySuccess(List<Constraint> currentConditions)
Returns a ConstraintProbability indicating the probability of success
of the scheduling block with respect to this requirement. |
abstract Object |
getValue()
|
int |
hashCode()
|
abstract boolean |
isSpecified()
Returns true if this constraint represents a restriction in terms of scheduling on the block; false otherwise. |
abstract void |
reset()
Resets this constraint back to its original default (unspecified value). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ConstraintType constraintType
Constructor Detail |
---|
public Constraint()
public Constraint(Constraint c)
Method Detail |
---|
public abstract ConstraintProbability getProbabilitySuccess(List<Constraint> currentConditions)
ConstraintProbability
indicating the probability of success
of the scheduling block with respect to this requirement.
currentConditions
- the current external operating condition the could be the current
wind speed if the constraint represents wind speed or a date if the constraint
represents a position elevation.
ConstraintProbability
indicating the probability of successful
completion of this scheduling block under the current operating conditions.public abstract void reset()
public abstract boolean isSpecified()
protected Constraint getConstraint(List<Constraint> constraints)
constraints
- a list of constraints.
public ConstraintType getConstraintType()
ConstraintType
for this operating condition.public abstract Object getValue()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |