cds.astro
Class AstroFormat

java.lang.Object
  extended bycds.astro.AstroFormat

public class AstroFormat
extends java.lang.Object

This class contains just definitions used in Parsing and Editing of numbers. Numbers can use ...x10?exp as well as ...e?exp notation; numbers may also be expressed in sexagesimal.


Field Summary
static int DECIMAL
          Format of number is decimal
static int EFORMAT
          Format of number contains the E notation
static int FACTOR
          Format of number is of the form mantissax10?exp
static int SEXA1d
          Format of number is sexagesimal 1 component (with : or d)
static int SEXA1h
          Format of number is sexagesimal 1 component (with h)
static int SEXA1o
          Format of number is sexagesimal 1 component (with ?)
static int SEXA2
          Format of number is sexagesimal (2 components h m)
static int SEXA2c
          Format of number is sexagesimal (2 components h:m)
static int SEXA2d
          Format of number is sexagesimal angle (2 components dm)
static int SEXA2h
          Format of number is sexagesimal time (2 components hm)
static int SEXA2o
          Format of number is sexagesimal 2 component (with ? ')
static int SEXA3
          Format of number is sexagesimal (3 components h m s)
static int SEXA3c
          Format of number is sexagesimal (3 components h:m:s)
static int SEXA3d
          Format of number is sexagesimal angle (3 components dms)
static int SEXA3h
          Format of number is sexagesimal time (3 components hms)
static int SEXA3o
          Format of number is sexagesimal 3 component (with ? ' ")
static int SIGN_EDIT
          Number must be signed (contains a '+' sign if positive)
static int TRUNCATE
          Numbers are truncated in their edition
static int ZERO_FILL
          Number mist be left-filled with zeroes
 
Constructor Summary
AstroFormat()
           
 
Method Summary
static java.lang.String explain(int bin_form)
          Explain the 'form' of the last parsed number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DECIMAL

public static final int DECIMAL
Format of number is decimal

See Also:
Constant Field Values

EFORMAT

public static final int EFORMAT
Format of number contains the E notation

See Also:
Constant Field Values

FACTOR

public static final int FACTOR
Format of number is of the form mantissax10?exp

See Also:
Constant Field Values

SEXA2

public static final int SEXA2
Format of number is sexagesimal (2 components h m)

See Also:
Constant Field Values

SEXA3

public static final int SEXA3
Format of number is sexagesimal (3 components h m s)

See Also:
Constant Field Values

SEXA2c

public static final int SEXA2c
Format of number is sexagesimal (2 components h:m)

See Also:
Constant Field Values

SEXA3c

public static final int SEXA3c
Format of number is sexagesimal (3 components h:m:s)

See Also:
Constant Field Values

SEXA2d

public static final int SEXA2d
Format of number is sexagesimal angle (2 components dm)

See Also:
Constant Field Values

SEXA3d

public static final int SEXA3d
Format of number is sexagesimal angle (3 components dms)

See Also:
Constant Field Values

SEXA2h

public static final int SEXA2h
Format of number is sexagesimal time (2 components hm)

See Also:
Constant Field Values

SEXA3h

public static final int SEXA3h
Format of number is sexagesimal time (3 components hms)

See Also:
Constant Field Values

SEXA1d

public static final int SEXA1d
Format of number is sexagesimal 1 component (with : or d)

See Also:
Constant Field Values

SEXA1h

public static final int SEXA1h
Format of number is sexagesimal 1 component (with h)

See Also:
Constant Field Values

SEXA1o

public static final int SEXA1o
Format of number is sexagesimal 1 component (with ?)

See Also:
Constant Field Values

SEXA2o

public static final int SEXA2o
Format of number is sexagesimal 2 component (with ? ')

See Also:
Constant Field Values

SEXA3o

public static final int SEXA3o
Format of number is sexagesimal 3 component (with ? ' ")

See Also:
Constant Field Values

SIGN_EDIT

public static final int SIGN_EDIT
Number must be signed (contains a '+' sign if positive)

See Also:
Constant Field Values

ZERO_FILL

public static final int ZERO_FILL
Number mist be left-filled with zeroes

See Also:
Constant Field Values

TRUNCATE

public static final int TRUNCATE
Numbers are truncated in their edition

See Also:
Constant Field Values
Constructor Detail

AstroFormat

public AstroFormat()
Method Detail

explain

public static final java.lang.String explain(int bin_form)
Explain the 'form' of the last parsed number

Returns:
A printable variant of format.