| Raben Systems, Inc. | |
| Software Development Services |
| Home | About Us | Articles | Downloads | Solar maps | Space weather graphs | Wireless |
|
Description of the Telescope Interface The telescope interface consists of the classes: TelescopeInterface,
TelescopeModel,
TelescopeFactory,
and SerialConnection.
For each telescope manufacture, there is a concrete implementation of
the TelescopeInterface and supporting classes. The diagram below shows
classes to interface the Celestron telescope. (The
complete Javadoc is available online as is a source
code cross reference). Figure 1. Class Diagram of the Telescope Interface The TelescopeInterface class is an interface that defines all the methods that will be publicly available to an application. The TelescopeModel class is a type-safe enumation of various telescope models. It permits different telescope models from different manufactures to be selected. The TelescopeFactory class is used by an application to select which telescope commands are to be used. |
The CelestronTelescope class is a concrete implementation of the telescope interface. It takes care of all details of setting up the serial port to communicate with the telescope. In addition, it sends commands to the telescope and receives responses. The CelestronCommand class is a facade used by CelestronNexstar to select command strings that are to be used for a particular telescope model. The CelestronCoordinateConverter class is used by the CelestronCommand class to convert coordinates for a telescope model. Though not yet completely implemented or tested, there are equivalent classes for Meade telescopes: MeadeTelescope, MeadeCommand, and MeadeCoordinateConverter. The SerialConnection class is used to send command strings and receive responses to the telescope through the computers comm port. It provides a buffer to help synchronize commands and responses. It used used to set up communication parameters such as the comm port to be used, the baud rate, stop bits, bits-per-character, and communication handshake to be used. To use the telescope interface, the application developer needs to write code to do the following:
|
|
|
|
| ©2003, 2004 Raben Systems, Inc. All rights reserved. |
Home • About
Us • Accessibility • Articles
• Downloads • Legal
|