JSci.astro.telescope
Class LX200Server

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by JSci.astro.telescope.LX200Server
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, LX200Remote

public final class LX200Server
extends java.rmi.server.UnicastRemoteObject
implements LX200Remote

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
LX200Server(LX200 telescope)
          Constructs a telescope server.
 
Method Summary
 java.lang.String getDec()
           
 java.lang.String getRA()
           
static void main(java.lang.String[] arg)
           
 void setFocusRate(int rate)
           
 void setObjectCoords(java.lang.String ra, java.lang.String dec)
           
 void setSlewRate(int rate)
           
 int slewToObject()
           
 void startFocus(int direction)
           
 void startSlew(int direction)
           
 void stopFocus()
           
 void stopSlew(int direction)
           
 void syncCoords()
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LX200Server

public LX200Server(LX200 telescope)
            throws java.rmi.RemoteException
Constructs a telescope server.

Parameters:
telescope - the telescope to serve.
Throws:
java.rmi.RemoteException
Method Detail

main

public static void main(java.lang.String[] arg)

setFocusRate

public void setFocusRate(int rate)
                  throws java.io.IOException,
                         java.rmi.RemoteException
Specified by:
setFocusRate in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException

startFocus

public void startFocus(int direction)
                throws java.io.IOException,
                       java.rmi.RemoteException
Specified by:
startFocus in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException

stopFocus

public void stopFocus()
               throws java.io.IOException,
                      java.rmi.RemoteException
Specified by:
stopFocus in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException

setSlewRate

public void setSlewRate(int rate)
                 throws java.io.IOException,
                        java.rmi.RemoteException
Specified by:
setSlewRate in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException

startSlew

public void startSlew(int direction)
               throws java.io.IOException,
                      java.rmi.RemoteException
Specified by:
startSlew in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException

stopSlew

public void stopSlew(int direction)
              throws java.io.IOException,
                     java.rmi.RemoteException
Specified by:
stopSlew in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException

getRA

public java.lang.String getRA()
                       throws java.io.IOException,
                              java.rmi.RemoteException
Specified by:
getRA in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException

getDec

public java.lang.String getDec()
                        throws java.io.IOException,
                               java.rmi.RemoteException
Specified by:
getDec in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException

setObjectCoords

public void setObjectCoords(java.lang.String ra,
                            java.lang.String dec)
                     throws java.io.IOException,
                            java.rmi.RemoteException
Specified by:
setObjectCoords in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException

slewToObject

public int slewToObject()
                 throws java.io.IOException,
                        java.rmi.RemoteException
Specified by:
slewToObject in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException

syncCoords

public void syncCoords()
                throws java.io.IOException,
                       java.rmi.RemoteException
Specified by:
syncCoords in interface LX200Remote
Throws:
java.io.IOException
java.rmi.RemoteException