public interface TargetOfOpportunity extends SchedulerControlling
triggerGrb(java.lang.String, double, double, double, boolean).
More general ToO should be added with triggerToo(java.lang.String, java.lang.String, double, double, double, boolean), where a
specific template may be specified. It is up to the implementation, whether
the former method is simply a re-route to the latter with a specific
template. triggerGrb(java.lang.String, double, double, double, boolean) interface, a new TooTarget is created
and inserted into the scheduling list with its default priority. If the
interrupt flag is set, the ongoing observation is interrupted, the data
already gained might be lost, otherwise the GRB gets active only after
the current observation has been finished. If exposure times or any other
known fields should be updated while the GRB target is active, this can be
acheived with the updateToo(java.lang.String, java.lang.String, java.lang.Object) method. The current status of the
GRB target can be queried with #rmiTooStaus.| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getActive()
Returns a list of all currently active ToO.
|
boolean |
removeToo(String id)
Removes the GRB of the stated target from the pool of observable
targets.
|
Serializable |
rmiTooStatus(String id)
Returns a short description of the status of the ToO target queried.
|
boolean |
triggerGrb(String id,
double ra,
double de,
double exptime,
boolean interrupt)
This method triggers a new GRB observation.
|
boolean |
triggerToo(String id,
String template,
double ra,
double de,
double exptime,
boolean interrupt)
This method triggers a new GRB observation.
|
boolean |
updateToo(String id,
String field,
Object to)
If a GRB target of the stated ID has been created by a trigger, this
method can be used to change critical
GrbTarget fields from
their default values. |
addTarget, getAllTargets, getTarget, getTelescope, listAllTargets, reloadTargets, removeAllTargets, removeTargetrmiProvideStatusboolean triggerGrb(String id, double ra, double de, double exptime, boolean interrupt) throws RemoteException
Server-side, a new GrbTarget out of a template is generated,
with the critical information (ra, de, exptime) filled in after
instantiation.
id - A unique identifier for the GRB, can be a count number.ra - The right ascension of the GRB, degrees, J2000.0de - The declination of the GRB, degrees, J2000.0.exptime - The initial exposure time in seconds.interrupt - If true, ongoing observation should be canceled.RemoteExceptionboolean triggerToo(String id, String template, double ra, double de, double exptime, boolean interrupt) throws RemoteException
Server-side, a new GrbTarget out of a template is generated,
with the critical information (ra, de, exptime) filled in after
instantiation.
id - A unique identifier for the GRB, can be a count number.template - A resource description that describes the ToO to use.ra - The right ascension of the GRB, degrees, J2000.0de - The declination of the GRB, degrees, J2000.0.exptime - The initial exposure time in seconds.interrupt - If true, ongoing observation should be canceled.RemoteExceptionCollection<String> getActive() throws RemoteException
trigger methods, but never been removed with
removeToo(java.lang.String). It does not specify only observable targets.RemoteExceptionboolean updateToo(String id, String field, Object to) throws RemoteException
GrbTarget fields from
their default values. The caller has to ensure that the field and
the ID is valid.id - The id used on creation of the GRB.field - The name of the field to be updated.to - The new value of the field, possible a Number or String.RemoteExceptionboolean removeToo(String id) throws RemoteException
RemoteExceptionSerializable rmiTooStatus(String id) throws RemoteException
RemoteException