edu.nrao.sss.model.project.scheduling.constraint
Class ConstraintPositionMaximum
java.lang.Object
edu.nrao.sss.model.project.scheduling.constraint.Constraint
edu.nrao.sss.model.project.scheduling.constraint.ConstraintPositionMaximum
public class ConstraintPositionMaximum
- extends Constraint
Represents the distance in hours from the time the target is at maximum elevation
and the current time as a measure of the probability of successful observation of
the scheduling block.
- Author:
- slovelan
Method Summary |
TimeDuration |
getInterval()
|
ConstraintProbability |
getProbabilitySuccess(List<Constraint> constraints)
Returns the probability of a successful observation based on the number
of elapsed hours between the current time and the time at which the target
is at maximum elevation using the following formula:
0 <= elapsed hours < 30 minutes, returns 1;
30 minutes <= elapsed hours < 1 hour, return 0.9;
1 hour <= elapsed hours < 90 minutes, return 0.8;
otherwise return 0. |
Object |
getValue()
|
boolean |
isSpecified()
Returns true if this constraint represents a restriction in terms of scheduling
on the block; false otherwise. |
void |
reset()
Resets this constraint back to its original default (unspecified value). |
void |
setInterval(TimeDuration interval)
|
ConstraintPositionMaximum
public ConstraintPositionMaximum()
ConstraintPositionMaximum
public ConstraintPositionMaximum(ConstraintPositionMaximum cpm)
reset
public void reset()
- Description copied from class:
Constraint
- Resets this constraint back to its original default (unspecified value).
- Specified by:
reset
in class Constraint
isSpecified
public boolean isSpecified()
- Description copied from class:
Constraint
- Returns true if this constraint represents a restriction in terms of scheduling
on the block; false otherwise.
- Specified by:
isSpecified
in class Constraint
- Returns:
- true if this constraint is inot in its default state; false otherwise.
getInterval
public TimeDuration getInterval()
setInterval
public void setInterval(TimeDuration interval)
getValue
public Object getValue()
- Specified by:
getValue
in class Constraint
getProbabilitySuccess
public ConstraintProbability getProbabilitySuccess(List<Constraint> constraints)
- Returns the probability of a successful observation based on the number
of elapsed hours between the current time and the time at which the target
is at maximum elevation using the following formula:
0 <= elapsed hours < 30 minutes, returns 1;
30 minutes <= elapsed hours < 1 hour, return 0.9;
1 hour <= elapsed hours < 90 minutes, return 0.8;
otherwise return 0.
- Specified by:
getProbabilitySuccess
in class Constraint
- Parameters:
constraints
- 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.
- Returns:
- a ConstraintProbability indicating the probability of success
for the constraint.
Copyright © 2009. All Rights Reserved.