Observation job and job list. Access to job lists is not thread-safe.
Job type that stores an observation for future processing.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | delay | = | 0 |
Time in msec to wait before next job. |
|
| logical, | public | :: | disabled | = | .false. |
Ignore job. |
|
| logical, | public | :: | onetime | = | .false. |
Disable job after first execution. |
|
| logical, | public | :: | valid | = | .false. |
Job has observation prototype? |
|
| type(observ_type), | public | :: | observ |
Prototype observation to be executed. |
Opaque job list type.
Adds job to job list at the next free index in job array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(job_list_type), | intent(inout) | :: | job_list |
Job list type. |
||
| type(job_type), | intent(inout) | :: | job |
Job type to add to list. |
Returns .true. if job list contains any enabled jobs.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(job_list_type), | intent(inout) | :: | job_list |
Job list type. |
Returns number of (enabled) jobs in job list.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(job_list_type), | intent(inout) | :: | job_list |
Job list type. |
||
| logical, | intent(in), | optional | :: | disabled |
Include disabled jobs. |
Initialises job list. The function returns E_ALLOC on error.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(job_list_type), | intent(out) | :: | job_list |
Job list type. |
||
| integer, | intent(in) | :: | n |
Maximum number of jobs to hold. |
Returns copy of next enabled job. If disabled is .true., the next
job is returned regardless of state. One-time jobs are disabled by
this function. If the job list has been finished and restarted from
the beginning, revolved is set to .true..
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(job_list_type), | intent(inout) | :: | job_list |
Job list type. |
||
| type(job_type), | intent(out) | :: | job |
Job type. |
||
| integer, | intent(out), | optional | :: | index |
Position in job list. |
|
| logical, | intent(in), | optional | :: | disabled |
Return disabled job. |
|
| logical, | intent(out), | optional | :: | revolved |
Job list was revolved. |
Returns size of job list array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(job_list_type), | intent(inout) | :: | job_list |
Job list type. |
||
| integer, | intent(out), | optional | :: | njobs |
Number of jobs in job list. |
Deallocates job list.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(job_list_type), | intent(inout) | :: | job_list |
Job list type. |
Resets job attributes to defaults.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(job_type), | intent(inout) | :: | job |
Job type. |
Sets job attributes.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(job_type), | intent(inout) | :: | job |
Job type. |
||
| integer, | intent(in), | optional | :: | delay |
Time in msec to wait before next job. |
|
| logical, | intent(in), | optional | :: | disabled |
Ignore job. |
|
| logical, | intent(in), | optional | :: | onetime |
Disable job after first execution. |
|
| logical, | intent(in), | optional | :: | valid |
Valid if job has observation prototype. |
|
| type(observ_type), | intent(in), | optional | :: | observ |
Prototype observation. |