|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.xml.TelescopeHelper
public class TelescopeHelper
A helper class for defining DOMTargets, with special emphasis to the
telescope used. The telescope helper provides a mapping of users to their
institution and their e-mail addresses as well as their notification
preferences. These user-definitions are stored as UserProperty and
are bound to the telescope helper to allow the same user to have different
properties on each telescope. Additionally, the telescope helper provides a
mapping of target types to TypeHelper properties.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private static boolean |
DEFFIXEDDEROTATOR
The default derotator-is-fixed state. |
private static float |
DEFGUIDERLIMIT
The default limiting magnitude for the guide star. |
private static double |
DEFGUIDERSEPARATION
The default maximum distance of the guide star. |
private static String |
DEFTELESCOPE
The default telescope. |
private static String |
DEFTYPELIST
The default target types. |
private static String |
DEFURLRESOURCES
The default user path. |
private static String |
DEFUSERLIST
The default users. |
private static double |
DEFXFIELDOFVIEW
The default guider field for STELLA-I. |
private static double |
DEFYFIELDOFVIEW
The default guider field for STELLA-I. |
private TypeHelper |
help
The single TypeHelper used in this telescope helper. |
static String |
KEY_FIXEDDEROTATOR
True, if this telescope has no/fixed derotator. |
static String |
KEY_GUIDERLIMIT
The minimum brightness of the guiding star. |
static String |
KEY_GUIDERSEPARATION
The maximum separation of the guiding star in degrees. |
static String |
KEY_HELPERCLASS
The key mapping to the telescope helper class name. |
static String |
KEY_TELESCOPE
The telescope this helper is bound to. |
static String |
KEY_TYPELIST
The targett types for this telescope as a comma-separated list. |
static String |
KEY_USERLIST
The user properties as a comma-separated file list.. |
static String |
KEY_XFIELDOFVIEW
The key to the guider field of view, x-dircetion. |
static String |
KEY_XSCIENCEVIEW
The key to the science field of view, x-direction. |
static String |
KEY_YFIELDOFVIEW
The key to the guider field of view, y-direction. |
static String |
KEY_YSCIENCEVIEW
The key to the science field of view, y-direction. |
private Map |
types
A lookup table mapping target types to TypeHelpers. |
private Map |
users
A lookup table mapping user names to their properties. |
private UserProperty |
utilize
The user utilizing this telescope helper. |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Constructor Summary | |
|---|---|
TelescopeHelper(Map prop)
Constructs a new telescope helper. |
|
| Method Summary | |
|---|---|
boolean |
addEmailFragment(Map xml)
Adds the e-mail section as a part of a TargetFactory mapping. |
boolean |
addInstitution(Map xml)
Adds the institution section as a part of a TargetFactory
mapping. |
boolean |
addUserFragment(Map xml)
Adds the user element as a part of a TargetFactory mapping. |
protected void |
error(String warn)
Issues a warning message. |
double |
getFieldOfView()
Returns the field-of-view for this telescope. |
Dimension2D |
getGuiderChipField()
Returns the chip-size of the guider field in degrees. |
private double |
getGuideValue(StarDescription center,
StarDescription candidate)
Measures the guide-star quality. |
Map |
getKnownTypes()
Returns all known types. |
Map |
getKnownUsers()
Retunrs all known users. |
Dimension2D |
getScienceChipField()
Returns the chip-size of the guider field in degrees. |
String |
getTelescope()
Returns the name of the telescope this helper is bound to. |
TypeHelper |
getTypeHelper()
Returns the associated TypeHelper. |
UserProperty |
getUserProperty()
Returns the associate UserProperty instance. |
protected void |
info(String warn)
Issues a warning message. |
void |
init()
Constructs the look-up tables matching user names to UserProperty
instances and object types to known type helper properties. |
boolean |
isFixedDerotator()
Returns true if this telescope has no derotator or if its derotator is fixed. |
StarDescription |
selectGuideStar(StarDescription guide,
List field)
Selects a guide star from a list of star. |
boolean |
selectTargetType(String tt)
Selects the target type. |
boolean |
selectUser(String name)
Selecte a user by name. |
protected void |
warn(String warn)
Issues a warning message. |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
| Field Detail |
|---|
public static final String KEY_HELPERCLASS
public static final String KEY_TELESCOPE
public static final String KEY_XFIELDOFVIEW
public static final String KEY_YFIELDOFVIEW
public static final String KEY_XSCIENCEVIEW
public static final String KEY_YSCIENCEVIEW
public static final String KEY_FIXEDDEROTATOR
public static final String KEY_GUIDERLIMIT
public static final String KEY_GUIDERSEPARATION
public static final String KEY_USERLIST
public static final String KEY_TYPELIST
private static final String DEFURLRESOURCES
private static final String DEFTELESCOPE
private static final double DEFXFIELDOFVIEW
private static final double DEFYFIELDOFVIEW
private static final boolean DEFFIXEDDEROTATOR
private static final float DEFGUIDERLIMIT
private static final double DEFGUIDERSEPARATION
private static final String DEFUSERLIST
private static final String DEFTYPELIST
private Map users
private Map types
TypeHelpers.
private UserProperty utilize
private TypeHelper help
TypeHelper used in this telescope helper.
| Constructor Detail |
|---|
public TelescopeHelper(Map prop)
| Method Detail |
|---|
public void init()
UserProperty
instances and object types to known type helper properties.
init in interface Initializableinit in class PropertyResourcespublic Map getKnownTypes()
public Map getKnownUsers()
public boolean selectUser(String name)
public boolean selectTargetType(String tt)
public TypeHelper getTypeHelper()
TypeHelper. Can only be called after the
{link #selectTargetType} method has been called.
public UserProperty getUserProperty()
UserProperty instance. Can only be called
after the selectUser(java.lang.String) has been issued.
public String getTelescope()
public boolean isFixedDerotator()
public double getFieldOfView()
public Dimension2D getGuiderChipField()
public Dimension2D getScienceChipField()
public boolean addUserFragment(Map xml)
TargetFactory mapping. If no
user is specified, a warning message is issued.
public boolean addEmailFragment(Map xml)
TargetFactory mapping. If
no user is specified, a warning message is issued.
public boolean addInstitution(Map xml)
TargetFactory
mapping. This element is required for time-accounting.
public StarDescription selectGuideStar(StarDescription guide,
List field)
private double getGuideValue(StarDescription center,
StarDescription candidate)
protected void info(String warn)
protected void warn(String warn)
protected void error(String warn)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||