001 package edu.nrao.sss.model.source; 002 003 import edu.nrao.sss.util.EnumerationUtility; 004 005 /** 006 * @deprecated Use edu.sss.model.astronomy.SkyPositionType. 007 * An indicator for the form in which position information is held. 008 * <p> 009 * <b>Version Info:</b> 010 * <table style="margin-left:2em"> 011 * <tr><td>$Revision: 543 $</td></tr> 012 * <tr><td>$Date: 2007-04-18 17:35:38 -0600 (Wed, 18 Apr 2007) $</td></tr> 013 * <tr><td>$Author: dharland $</td></tr> 014 * </table></p> 015 * 016 * @author David M. Harland 017 * @since 2006-??-?? 018 */ 019 @Deprecated 020 public enum SourcePositionType 021 { 022 /** 023 * The simplest form of position information. This typically means 024 * that the position is not stored as a function of time. 025 */ 026 SIMPLE, 027 028 /** 029 * Position information stored as a series of one or more polynomial 030 * equations where the independent variable is time. 031 */ 032 POLYNOMIAL, 033 034 /** 035 * Position information stored as orbital elements. 036 */ 037 ORBITAL_ELEMENTS, 038 039 /** 040 * Position information stored as an ephemeris table. 041 */ 042 EPHEMERIS_TABLE, 043 044 /** 045 * Position information stored as the name of a body that can 046 * later be turned into an ephemeris table. 047 */ 048 INTERNAL_EPHEMERIS; 049 050 /** 051 * Returns a default source position type. 052 * @return a default source position type. 053 */ 054 public static SourcePositionType getDefault() 055 { 056 return SIMPLE; 057 } 058 059 /** 060 * Returns a text representation of this enumeration constant. 061 * @return a text representation of this enumeration constant. 062 */ 063 public String toString() 064 { 065 return EnumerationUtility.getSharedInstance().enumToString(this); 066 } 067 068 /** 069 * Returns the source position type represented by {@code text}. 070 * <p> 071 * For details about the transformation, see 072 * {@link EnumerationUtility#enumFromString(Class, String)}.</p> 073 * 074 * @param text a text representation of a source position type. 075 * 076 * @return the source position type represented by {@code text}. 077 */ 078 public static SourcePositionType fromString(String text) 079 { 080 return EnumerationUtility.getSharedInstance() 081 .enumFromString(SourcePositionType.class, text); 082 } 083 }