com.raben.telescope.comm
Class TelescopeModel

java.lang.Object
  |
  +--com.raben.telescope.comm.TelescopeModel
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class TelescopeModel
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Ordinal-based typesafe enum of Telescope Models

Version:
$Revision: 1.5 $ $Date: 2003/09/11 15:15:13 $
Author:
Vern Raben
See Also:
Serialized Form

Field Summary
static TelescopeModel CELESTRON
          Define generic Celestron telescope, software will try to identify model
static TelescopeModel CELESTRON_ASC
          Define Celestron Advanced Serices
static TelescopeModel CELESTRON_CGE
          Define Celestron CGE
static TelescopeModel CELESTRON_NEXSTAR_5_8
          Define Nexstar 8
static TelescopeModel CELESTRON_NEXSTAR_5I_8I
          Define Nexstar 5i
static TelescopeModel CELESTRON_NEXSTAR_GPS
          Define Nexstar GPS
static TelescopeModel CELESTRON_NEXSTAR_GT
          Define Nexstar GT
static TelescopeModel CELESTRON_NEXSTAR_OGT
          Define original Nexstar GT
static TelescopeModel MEADE
          Define generic Meade telescope, software will try to identify model
static TelescopeModel MEADE_AUTOSTAR
          Define Meade Autostar
static TelescopeModel MEADE_LX200
          Define Meade LX-200 < 16"
static TelescopeModel MEADE_LX200_16
          Define Mead LX200 16"
static TelescopeModel MEADE_LX200_GPS
          Define Mead LX200 GPS
static java.util.List VALUES
          List of telescope models
 
Method Summary
 int compareTo(java.lang.Object obj)
          Compare TelescopeModels
static TelescopeModel fromString(java.lang.String modelName)
          Get TelescopeModel from model name
 java.lang.String toString()
          Return name of TelescopeModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CELESTRON

public static final TelescopeModel CELESTRON
Define generic Celestron telescope, software will try to identify model


CELESTRON_ASC

public static final TelescopeModel CELESTRON_ASC
Define Celestron Advanced Serices


CELESTRON_CGE

public static final TelescopeModel CELESTRON_CGE
Define Celestron CGE


CELESTRON_NEXSTAR_5I_8I

public static final TelescopeModel CELESTRON_NEXSTAR_5I_8I
Define Nexstar 5i


CELESTRON_NEXSTAR_5_8

public static final TelescopeModel CELESTRON_NEXSTAR_5_8
Define Nexstar 8


CELESTRON_NEXSTAR_GPS

public static final TelescopeModel CELESTRON_NEXSTAR_GPS
Define Nexstar GPS


CELESTRON_NEXSTAR_GT

public static final TelescopeModel CELESTRON_NEXSTAR_GT
Define Nexstar GT


CELESTRON_NEXSTAR_OGT

public static final TelescopeModel CELESTRON_NEXSTAR_OGT
Define original Nexstar GT


MEADE

public static final TelescopeModel MEADE
Define generic Meade telescope, software will try to identify model


MEADE_AUTOSTAR

public static final TelescopeModel MEADE_AUTOSTAR
Define Meade Autostar


MEADE_LX200

public static final TelescopeModel MEADE_LX200
Define Meade LX-200 < 16"


MEADE_LX200_16

public static final TelescopeModel MEADE_LX200_16
Define Mead LX200 16"


MEADE_LX200_GPS

public static final TelescopeModel MEADE_LX200_GPS
Define Mead LX200 GPS


VALUES

public static final java.util.List VALUES
List of telescope models

Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Compare TelescopeModels

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - TelescopeModel to compare
Returns:
Ordinal difference

toString

public java.lang.String toString()
Return name of TelescopeModel

Overrides:
toString in class java.lang.Object
Returns:
Name of telescope model

fromString

public static TelescopeModel fromString(java.lang.String modelName)
Get TelescopeModel from model name

Parameters:
modelName - of telescope
Returns:
TelescopeModel (May return null)


Copyright © 2003 Raben Systems, Inc.. All Rights Reserved.