public class Waltz extends PropertyResources implements Initializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Waltz.Positions
Reads the coreography file and prints out the calculated ra/dec.
|
private class |
Waltz.WaltzTask
A task that moves the telescope to the provided position.
|
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private List |
atis
The telescopes.
|
private Timer |
choreography
The timer for the coreography.
|
private static String |
DEFSITE
Properties of the telescopes.
|
static String |
KEY_SITE
Properties of the telescopes.
|
static String |
KEY_TELESCOPES
Properties of the telescopes.
|
private Latitude |
phi
Latitude of site.
|
private SiderealTime |
sidereal
Sidereal time at site.
|
KEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Constructor and Description |
|---|
Waltz(Map prop)
Constructs a new Waltz instance.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
createParameters()
Creates our parameters.
|
private List |
generateTimerTasks(List lines)
Converts ascii-lines into timer-tasks that can be put onto a timer.
|
void |
init()
Initializes and opens the command launchers talking to ATIS telescopes.
|
static void |
main(String[] arg)
First command line are the properties of the waltz, second the
configuration file of the coreography.
|
private void |
startDance(List steps)
Starts the dance by putting all timer tasks constructed from the ascii-
lines onto a timer object.
|
private Vector2D |
toRaDec(Vector2D azalt)
Converts a pair of az (index 0)-alt (index 1) coordinates into ra/dec
for proper transfering to the telescope.
|
clone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, 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, stringPropertiespublic static final String KEY_TELESCOPES
public static final String KEY_SITE
private static final String DEFSITE
private List atis
private Latitude phi
private SiderealTime sidereal
private Timer choreography
public Waltz(Map prop)
public void init()
init in interface Initializableprivate void createParameters()
private Vector2D toRaDec(Vector2D azalt)
azalt - A pair of azimuth and altitude in degress.private List generateTimerTasks(List lines)
private void startDance(List steps)
public static void main(String[] arg)