stella.telescope
Class Waltz.WaltzTask

java.lang.Object
  extended by java.util.TimerTask
      extended by stella.telescope.Waltz.WaltzTask
All Implemented Interfaces:
Runnable
Enclosing class:
Waltz

private class Waltz.WaltzTask
extends TimerTask

A task that moves the telescope to the provided position. On execution, the az/alt pait is converted into a ra/dec pair and fueled into a MoveTelescope command, which is then sent to the appropriate CommandLauncher.


Field Summary
private  CommandLaunching atis
          The atis server I talk to.
private  Vector2D azalt
          The az/alt pair.
private  long delay
          The desired delay period after start of dance.
 
Constructor Summary
Waltz.WaltzTask(CommandLaunching telescope, Vector2D to, long wait)
          Constructs a new waltz task that will send a MoveTelescope command to this command launcher in its run method.
 
Method Summary
private  long getDelay()
          Returns the delay period as specified in the configuration file.
 void run()
          Runs the move command.
 String toString()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

atis

private CommandLaunching atis
The atis server I talk to.


azalt

private Vector2D azalt
The az/alt pair.


delay

private long delay
The desired delay period after start of dance.

Constructor Detail

Waltz.WaltzTask

public Waltz.WaltzTask(CommandLaunching telescope,
                       Vector2D to,
                       long wait)
Constructs a new waltz task that will send a MoveTelescope command to this command launcher in its run method.

Method Detail

getDelay

private long getDelay()
Returns the delay period as specified in the configuration file.


run

public void run()
Runs the move command.

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask

toString

public String toString()
Overrides:
toString in class Object