|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.astro.Otype
public class Otype
The Otype is a classification of the astronomical objects in a hierarchical structure.
Field Summary | |
---|---|
int |
otype
|
Constructor Summary | |
---|---|
Otype()
Define the default Otype (object of unknown nature) |
|
Otype(java.lang.String text)
Define the Otype from a String |
Method Summary | |
---|---|
boolean |
agrees(Otype ot1)
Check if the 2 Otypes are compatible |
void |
dump()
Dump contents to stdout |
boolean |
equals(java.lang.Object o)
MOD-BB 21-01-04 Ajout de cette methode. |
static java.lang.String |
hexaToNumeric(java.lang.String strHex)
Methode qui transforme une chaine de caractere hexadecimale en otype sous forme numerique |
boolean |
implies(Otype t1)
Check if is a subtype (in same branch) |
static void |
init()
Initialisation |
static void |
init(java.lang.String filename)
Initialisation |
java.util.Enumeration |
list()
List in an enumeration all Otypes belonging to a class. |
Otype |
merge(Otype ot1)
Choose the most accurate Otype: the deepest one ine the hierarchy. |
java.lang.String |
numericToHexa()
Methode qui permet de transformer un otype decimal en hexadecimal |
void |
set(java.lang.String text)
Convert a text into an object type |
java.lang.String |
toString()
Default Edition of the Otype value |
java.lang.String |
toString(int choice)
Default Edition of the Otype value |
void |
truncate(int lev)
Truncate the otype to some upper level (e.g. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int otype
Constructor Detail |
---|
public Otype()
public Otype(java.lang.String text) throws java.text.ParseException
text
- the Otype as a string
java.text.ParseException
- when otype is not understandableMethod Detail |
---|
public static void init()
public static void init(java.lang.String filename) throws java.lang.Exception
filename
- name of file with the list of Object Types
java.lang.Exception
- e.g. IOException if file not existing, parsing...public final void truncate(int lev)
lev
- the level (between 1 and 4)public final boolean implies(Otype t1)
t1
- the other Otype
public final boolean agrees(Otype ot1)
ot1
- the other Otype
public final Otype merge(Otype ot1)
ot1
- a second otype
public final void set(java.lang.String text) throws java.text.ParseException
text
- the text representing the otype, either in numeric,
or as one of the available abbreviations
java.text.ParseException
- when the text can' be interpreted.public java.util.Enumeration list()
public final java.lang.String toString(int choice)
choice
- 0=numeric, 1=standard, 2=verbose, 3=3-letter
public final java.lang.String toString()
toString
in class java.lang.Object
public final void dump()
public java.lang.String numericToHexa()
public static java.lang.String hexaToNumeric(java.lang.String strHex)
strHex
- chaine representant un otype sous forme hexadecimale
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Objet a comparer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |