cds.astro
Class Odef

java.lang.Object
  extended bycds.astro.Odef
All Implemented Interfaces:
java.io.Serializable

class Odef
extends java.lang.Object
implements java.io.Serializable

Otype Definition object This internal class defines the basic Otype symbols loaded from a file.


Field Summary
 java.lang.String abbr
           
 java.lang.String expl
           
 int otype
           
 java.lang.String symb
           
 
Constructor Summary
Odef(int o, java.lang.String s, java.lang.String a, java.lang.String text)
          Constructor of a otype object
 
Method Summary
 void dump()
          Display for debugging purposes the otype on stdout
 boolean equals(java.lang.Object o)
          Comparison of 2 Otypes
 java.lang.String toString()
          Display the object type in a string
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

otype

public int otype

symb

public java.lang.String symb

abbr

public java.lang.String abbr

expl

public java.lang.String expl
Constructor Detail

Odef

public Odef(int o,
            java.lang.String s,
            java.lang.String a,
            java.lang.String text)
Constructor of a otype object

Parameters:
o - otype numeric value
s - otype symbol (short name)
a - otype abbreviation
text - otype description
Method Detail

equals

public final boolean equals(java.lang.Object o)
Comparison of 2 Otypes

Parameters:
o - Object for which we would like to compare the type
Returns:
true if the two otypes are identical

toString

public final java.lang.String toString()
Display the object type in a string

Returns:
the string containing the otype

dump

public final void dump()
Display for debugging purposes the otype on stdout