|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Schedulable
Defines the capabilities expected of scheduling block implementations that can be used by the scheduler.
Field Summary | |
---|---|
static String |
NAME_SEPARATOR
|
static String |
OBSERVE_SCRIPT_NOT_FOUND
|
Method Summary | |
---|---|
TimeDuration |
calculateTimePerExecution()
Returns the amount of time allocated for one execution of this scheduling block. |
boolean |
canBeScheduled()
Returns true if there are no internal forces withen the ScheduleBlock
to prevent scheduling such as prerequisites or invalid status. |
int |
getAuthorizedCount()
Returns the total number of repetitions of this ScheduleBlock
that were originally authorized. |
int |
getCompletedCount()
|
String |
getCompleteName()
|
List<Constraint> |
getConstraints()
Returns a set of requirements that can be used to determine the success of a scheduling block under current conditions. |
EventSetStatus |
getExecutionStatus()
|
TimeOfDayInterval |
getLstStartRange()
Returns the range of allowable execution start times for this scheduling block, expressed in local sidereal time. |
String |
getName()
Returns a short descriptive name for this scheduling block. |
TimeInterval |
getPreferredDateRange()
Returns the preferred date range for execution of this scheduling block. |
List<Priority> |
getPriorities()
Returns the set of priorities of the scheduling block. |
ProgBlock |
getProgramBlock()
Returns the program block of which this scheduling block is a member of. |
String |
getProgramName()
|
String |
getProjectName()
|
String |
getProposalName()
|
SchedulingType |
getType()
Returns the particular method of scheduling that is appropriate for this ScheduleBlock . |
void |
setAuthorizedCount(int count)
|
void |
setConstraints(List<Constraint> theConstraints)
Sets the requirements that can be used to determine the success of a scheduling block under current conditions. |
void |
setLstStartRange(TimeOfDayInterval tInterval)
|
void |
setName(String sName)
|
void |
setPreferredDateRange(TimeInterval tInterval)
|
void |
setPriorities(List<Priority> thePriorities)
Sets the set of priorities of this scheduling block. |
void |
setType(SchedulingType st)
|
String |
toObserveScript(Date startingTime)
Returns a string representation of the observing script for one repetition of this scheduling block. |
Field Detail |
---|
static final String OBSERVE_SCRIPT_NOT_FOUND
static final String NAME_SEPARATOR
Method Detail |
---|
List<Constraint> getConstraints()
void setConstraints(List<Constraint> theConstraints)
theConstraints
- a set of environmental and telescopes constraints such as
recent calibration accuracies that can be used to determine the success
of this scheduling block under current conditions.List<Priority> getPriorities()
ScheduleBlock
.void setPriorities(List<Priority> thePriorities)
thePriorities
- a set of priorities representing the importance of
this scheduling block with regard to a variety of criteria such
as scientific rating, etc.boolean canBeScheduled()
ScheduleBlock
to prevent scheduling such as prerequisites or invalid status.
SchedulingType getType()
ScheduleBlock
.
SchedulingType
.void setType(SchedulingType st)
TimeInterval getPreferredDateRange()
void setPreferredDateRange(TimeInterval tInterval)
TimeOfDayInterval getLstStartRange()
The returned range, which is guaranteed to be non-null, is the actual range held by this block, so changes made to it will be reflected in this object.
void setLstStartRange(TimeOfDayInterval tInterval)
TimeDuration calculateTimePerExecution()
The returned duration, which is guaranteed to be non-null, is the actual duration held by this block, so changes made to it will be reflected in this object.
int getAuthorizedCount()
ScheduleBlock
that were originally authorized.
ScheduleBlock
should be scheduled for.void setAuthorizedCount(int count)
int getCompletedCount()
ProgBlock getProgramBlock()
String toObserveScript(Date startingTime)
startingTime
- the date the executor will be observing
this scheduling block. If the startingHour is not null, the observe
script will be returned with the times modified so that the script starts
at the indicated time. If the startingHour is null, the observe
script will be returned with the default starting time.String getName()
void setName(String sName)
String getProgramName()
String getProjectName()
String getProposalName()
String getCompleteName()
EventSetStatus getExecutionStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |