public interface Appointable extends Handable
Because targets that may be part of a sophisticated scheduling system, they
must also support low-level handling properties. Therefore, this interface
extends the Handable interface rather than the
TargetDefinition.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Appointable.Constraint
A constraint imposed on all targets.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getActualMerit(GlobalGrouping condition,
Collection<Appointable> targets,
long timespan)
Gets the value of the actual merit.
|
Date |
getDailyDate()
The date of the high daily merit.
|
double |
getDailyMerit()
The highest merit in the last 24 hours.
|
Collection<Appointable> |
getDaughters()
Returns a list of daugther targets.
|
Date |
getHighestDate()
The date of the highest merit.
|
double |
getHighestMerit()
The highest merit ever achieved.
|
Appointable.Constraint |
getLastFail()
The conditions which lately rendered this target unobservable
|
double |
getLastMerit()
The last measured merit.
|
long |
getObservingTime(GlobalGrouping condition)
Returns an estimate of the time required for an observation of this
target.This is only an advisory method and will not return a very
accurate estimate, but it should also work if the parameters handed over
are invalid.
|
long |
getRemainingTime(GlobalGrouping condition)
Returns the time this target will remain observable under current weather
conditions.
|
boolean |
isAbort(GlobalGrouping set)
Signals that the execution of this target should be aborted.
|
boolean |
isObservable(GlobalGrouping condition)
Checks if this target is currently observable.
|
boolean |
isProgramOver(GlobalGrouping set)
Test, if the observing program on the target is completed.
|
boolean |
isRetry(GlobalGrouping set)
Signals that the target should be retried immediately.
|
errorDaughter, errorMain, errorSuccessor, getPrecursor, getSuccessor, isEnabled, isFinished, isNotify, isPicked, setEnabled, setFinished, setPicked, setPrecursorgetDescription, getDescriptionID, getEmailAddresses, getImageType, getInstitution, getName, getTargetResource, getTargetSpecific, getTeam, getTitle, getType, getUserCollection<Appointable> getDaughters()
boolean isObservable(GlobalGrouping condition)
condition - A set of actual observing conditionsdouble getActualMerit(GlobalGrouping condition, Collection<Appointable> targets, long timespan)
getObservingTime(globals.GlobalGrouping) should be used.condition - A set of actual observing conditionstargets - All targets relavant for this target.timespan - The timespan within the merit should be maximized.boolean isProgramOver(GlobalGrouping set)
EndpointDefining merit is needed to answer the completeness
puzzle. If a target first encounters that it is program-over, the target
should change its completeness flag.long getRemainingTime(GlobalGrouping condition)
long getObservingTime(GlobalGrouping condition)
boolean isAbort(GlobalGrouping set)
boolean isRetry(GlobalGrouping set)
Appointable.Constraint getLastFail()
double getLastMerit()
double getHighestMerit()
double getDailyMerit()
Date getHighestDate()
Date getDailyDate()