org.jscience.devices.telescopes.LX200
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 org.jscience.devices.telescopes.LX200.LX200Server
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, LX200Remote

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

DOCUMENT ME!

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()
          DOCUMENT ME!
 java.lang.String getRA()
          DOCUMENT ME!
static void main(java.lang.String[] arg)
          DOCUMENT ME!
 void setFocusRate(int rate)
          DOCUMENT ME!
 void setObjectCoords(java.lang.String ra, java.lang.String dec)
          DOCUMENT ME!
 void setSlewRate(int rate)
          DOCUMENT ME!
 int slewToObject()
          DOCUMENT ME!
 void startFocus(int direction)
          DOCUMENT ME!
 void startSlew(int direction)
          DOCUMENT ME!
 void stopFocus()
          DOCUMENT ME!
 void stopSlew(int direction)
          DOCUMENT ME!
 void syncCoords()
          DOCUMENT ME!
 
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 - DOCUMENT ME!
Method Detail

main

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

Parameters:
arg - DOCUMENT ME!

setFocusRate

public void setFocusRate(int rate)
                  throws java.io.IOException,
                         java.rmi.RemoteException
DOCUMENT ME!

Specified by:
setFocusRate in interface LX200Remote
Parameters:
rate - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

startFocus

public void startFocus(int direction)
                throws java.io.IOException,
                       java.rmi.RemoteException
DOCUMENT ME!

Specified by:
startFocus in interface LX200Remote
Parameters:
direction - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

stopFocus

public void stopFocus()
               throws java.io.IOException,
                      java.rmi.RemoteException
DOCUMENT ME!

Specified by:
stopFocus in interface LX200Remote
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

setSlewRate

public void setSlewRate(int rate)
                 throws java.io.IOException,
                        java.rmi.RemoteException
DOCUMENT ME!

Specified by:
setSlewRate in interface LX200Remote
Parameters:
rate - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

startSlew

public void startSlew(int direction)
               throws java.io.IOException,
                      java.rmi.RemoteException
DOCUMENT ME!

Specified by:
startSlew in interface LX200Remote
Parameters:
direction - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

stopSlew

public void stopSlew(int direction)
              throws java.io.IOException,
                     java.rmi.RemoteException
DOCUMENT ME!

Specified by:
stopSlew in interface LX200Remote
Parameters:
direction - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

getRA

public java.lang.String getRA()
                       throws java.io.IOException,
                              java.rmi.RemoteException
DOCUMENT ME!

Specified by:
getRA in interface LX200Remote
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

getDec

public java.lang.String getDec()
                        throws java.io.IOException,
                               java.rmi.RemoteException
DOCUMENT ME!

Specified by:
getDec in interface LX200Remote
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

setObjectCoords

public void setObjectCoords(java.lang.String ra,
                            java.lang.String dec)
                     throws java.io.IOException,
                            java.rmi.RemoteException
DOCUMENT ME!

Specified by:
setObjectCoords in interface LX200Remote
Parameters:
ra - DOCUMENT ME!
dec - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

slewToObject

public int slewToObject()
                 throws java.io.IOException,
                        java.rmi.RemoteException
DOCUMENT ME!

Specified by:
slewToObject in interface LX200Remote
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

syncCoords

public void syncCoords()
                throws java.io.IOException,
                       java.rmi.RemoteException
DOCUMENT ME!

Specified by:
syncCoords in interface LX200Remote
Throws:
java.io.IOException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!