org.jscience.devices.telescopes.nexstar
Class NexStar

java.lang.Object
  extended by org.jscience.devices.telescopes.nexstar.NexStar

public final class NexStar
extends java.lang.Object

DOCUMENT ME!


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.

Parameters:
port - DOCUMENT ME!
Method Detail

raToInt

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

Parameters:
ra - DOCUMENT ME!
Returns:
DOCUMENT ME!

decToInt

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

Parameters:
dec - DOCUMENT ME!
Returns:
DOCUMENT ME!

altToInt

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

Parameters:
alt - DOCUMENT ME!
Returns:
DOCUMENT ME!

azToInt

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

Parameters:
az - DOCUMENT ME!
Returns:
DOCUMENT ME!

getRADec

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

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

getAzAlt

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

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

gotoRADec

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

Parameters:
ra - DOCUMENT ME!
dec - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

gotoAzAlt

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

Parameters:
az - DOCUMENT ME!
alt - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

isMoving

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

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

close

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

Throws:
java.io.IOException - DOCUMENT ME!