|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.simbad.data.Zone
Class managing a zone from +90 .. +00,-00 .. -90.
This class manages an internal codage of zones from 0 =>+90 to 181 => -90
It considers increasing zones from the north pole to the south pole
Field Summary | |
(package private) boolean |
minus
|
(package private) int |
zone
|
Constructor Summary | |
Zone(int zona)
Constructor from an absolute zone number |
|
Zone(int z,
boolean min)
Constructor from a zone number (+90 to -90) |
|
Zone(java.lang.String str)
Constructor from a string. |
|
Zone(Zone z)
Copy constructor |
Method Summary | |
int |
compareTo(Zone z)
Compares two zone values. zone A is higher than zone B if it is closer to the North Pole. |
int |
getAbsZone()
The value of the absolute zone number (0=90, 90=+0, 91=-0, 180=-89, 181=-90) |
int |
getZone()
The zone value (+90 to -90). |
boolean |
isNegative()
Get the sign of the zone. true if negative |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
int zone
boolean minus
Constructor Detail |
public Zone(java.lang.String str)
str
- String containing a zone value. No sign means +.
No more digits are taken than needed to build a number <= 90.public Zone(Zone z)
z
- Zone objectpublic Zone(int zona)
zona
- zone number (from 0 to 181)public Zone(int z, boolean min)
z
- the zone valuemin
- true if the zone is negative. This parameter is used only for
a zone value >= 0. If it is negative, the zone IS considererd as negative.Method Detail |
public int getAbsZone()
public int getZone()
public boolean isNegative()
public int compareTo(Zone z)
z
- the second zone for the comparizon
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |