JSci.astro.telescope
Class NexStar

java.lang.Object
  extended byJSci.astro.telescope.NexStar

public final class NexStar
extends java.lang.Object


Constructor Summary
NexStar(java.lang.String port)
          Constructs a NexStar object.
 
Method Summary
static int altToInt(java.lang.String alt)
          Convert alt from a string to a number.
static int azToInt(java.lang.String az)
          Convert az from a string to a number.
 void close()
          Closes the connection to the scope.
static int decToInt(java.lang.String dec)
          Convert dec from a string to a number.
 java.lang.String getAzAlt()
          Returns the current az and alt.
 java.lang.String getRADec()
          Returns the current RA and dec.
 void gotoAzAlt(java.lang.String az, java.lang.String alt)
          Goto the coordinates.
 void gotoRADec(java.lang.String ra, java.lang.String dec)
          Goto the coordinates.
 boolean isMoving()
          Check whether the scope is moving.
static int raToInt(java.lang.String ra)
          Convert RA from a string to a number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NexStar

public NexStar(java.lang.String port)
Constructs a NexStar object.

Method Detail

raToInt

public static int raToInt(java.lang.String ra)
Convert RA from a string to a number.


decToInt

public static int decToInt(java.lang.String dec)
Convert dec from a string to a number.


altToInt

public static int altToInt(java.lang.String alt)
Convert alt from a string to a number.


azToInt

public static int azToInt(java.lang.String az)
Convert az from a string to a number.


getRADec

public java.lang.String getRADec()
                          throws java.io.IOException
Returns the current RA and dec.

Throws:
java.io.IOException

getAzAlt

public java.lang.String getAzAlt()
                          throws java.io.IOException
Returns the current az and alt.

Throws:
java.io.IOException

gotoRADec

public void gotoRADec(java.lang.String ra,
                      java.lang.String dec)
               throws java.io.IOException
Goto the coordinates.

Throws:
java.io.IOException

gotoAzAlt

public void gotoAzAlt(java.lang.String az,
                      java.lang.String alt)
               throws java.io.IOException
Goto the coordinates.

Throws:
java.io.IOException

isMoving

public boolean isMoving()
                 throws java.io.IOException
Check whether the scope is moving.

Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Closes the connection to the scope.

Throws:
java.io.IOException