|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
stella.rmi.DummyToO
public class DummyToO
Dummy implementation of the TargetOfOportunity interface.
Simply returns required values and outputs info to stdout if called
on the necessary routines.
| Field Summary | |
|---|---|
(package private) Map<String,String[]> |
grb
|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
DummyToO()
|
|
| Method Summary | |
|---|---|
boolean |
addTarget(TargetDefinition newtd)
Adds a single target. |
Collection<String> |
getActive()
Returns all active IDs. |
Collection<TargetDefinition> |
getAllTargets()
Returna a list of all targets accessible. |
TargetDefinition |
getTarget(String name)
Returns a single target specified by its name. |
String |
getTelescope()
Returns the telescope id this scheduler refers to. |
List<String> |
listAllTargets()
List all target names available to this scheduler. |
static void |
main(String[] arg)
|
boolean |
reloadTargets()
Reloads targets to get to a pre-defined state. |
void |
removeAllTargets()
Removes all targets from the scheduler's list. |
boolean |
removeTarget(String name)
Removes the target from the scheduler's list. |
boolean |
removeToo(String name)
Removes the target from the scheduler's list. |
Object |
rmiProvideStatus()
Returns the status of the caster as an unspecified object. |
Serializable |
rmiTooStatus(String id)
Returns a short description of the status of the GRB targets. |
boolean |
triggerGrb(String id,
double ra,
double de,
double exptime,
boolean interrupt)
This method triggers a new GRB observation. |
boolean |
triggerToo(String id,
String templ,
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. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
Map<String,String[]> grb
| Constructor Detail |
|---|
public DummyToO()
throws RemoteException
RemoteException| Method Detail |
|---|
public boolean triggerGrb(String id,
double ra,
double de,
double exptime,
boolean interrupt)
throws RemoteException
TargetOfOpportunity
Server-side, a new GrbTarget out of a template is generated,
with the critical information (ra, de, exptime) filled in after
instantiation.
triggerGrb in interface TargetOfOpportunityid - 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.
RemoteException
public boolean triggerToo(String id,
String templ,
double ra,
double de,
double exptime,
boolean interrupt)
throws RemoteException
TargetOfOpportunity
Server-side, a new GrbTarget out of a template is generated,
with the critical information (ra, de, exptime) filled in after
instantiation.
triggerToo in interface TargetOfOpportunityid - A unique identifier for the GRB, can be a count number.templ - 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.
RemoteException
public boolean updateToo(String id,
String field,
Object to)
throws RemoteException
TargetOfOpportunityGrbTarget fields from
their default values. The caller has to ensure that the field and
the ID is valid.
updateToo in interface TargetOfOpportunityid - 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.
RemoteException
public boolean removeToo(String name)
throws RemoteException
addTarget(stella.TargetDefinition) method.
removeToo in interface TargetOfOpportunityRemoteException
public Collection<String> getActive()
throws RemoteException
getActive in interface TargetOfOpportunityRemoteException
public Serializable rmiTooStatus(String id)
throws RemoteException
rmiTooStatus in interface TargetOfOpportunityRemoteException
public boolean addTarget(TargetDefinition newtd)
throws RemoteException
addTarget in interface SchedulerControllingRemoteException
public boolean removeTarget(String name)
throws RemoteException
addTarget(stella.TargetDefinition) method.
removeTarget in interface SchedulerControllingRemoteException
public void removeAllTargets()
throws RemoteException
removeAllTargets in interface SchedulerControllingRemoteException
public boolean reloadTargets()
throws RemoteException
reloadTargets in interface SchedulerControllingRemoteException
public TargetDefinition getTarget(String name)
throws RemoteException
getTarget in interface SchedulerControllingRemoteException
public Collection<TargetDefinition> getAllTargets()
throws RemoteException
getAllTargets in interface SchedulerControllingRemoteException
public List<String> listAllTargets()
throws RemoteException
getAllTargets().
Note that this method must return a list, because Strings have a
natural ordering, thus it makes sense to return a list of strings rather
than a collection to allow callers of this method to do sorting.
listAllTargets in interface SchedulerControllingRemoteException
public String getTelescope()
throws RemoteException
getTelescope in interface SchedulerControllingRemoteException
public Object rmiProvideStatus()
throws RemoteException
RmiStatusProvidingErrorEvent, a List or of simple string.
rmiProvideStatus in interface RmiStatusProvidingRemoteException
public static void main(String[] arg)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||