|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjasi.sim.basic.value.AbstractSimValueType
jasi.sim.basic.value.AbstractComparableObject<T>
jasi.sim.geo.ComparableGeoObject<Arc>
jasi.sim.geo.spherical.Arc
jasi.sim.geo.spherical.Longitude
public final class Longitude
Longitude is the angle of a location's meridian to the zero-meridian. Its value ranges from 0° to 180° east positive, west negative.
| Field Summary | |
|---|---|
static Longitude |
GREENWICH
Longitude. |
| Fields inherited from class jasi.sim.geo.spherical.Arc |
|---|
CIRCLE, HALF_CIRCLE, RECTANGLE, ZERO |
| Fields inherited from interface jasi.sim.geo.Geometric |
|---|
BEGIN, END, MIDLE |
| Constructor Summary | |
|---|---|
Longitude(double arc)
Constructor of a longitude. |
|
Longitude(Longitude arc)
Constructor of a longitude. |
|
Longitude(java.lang.String s)
Constructor of a longitude. |
|
| Method Summary | |
|---|---|
protected double |
convert(java.lang.String s)
Convert that string to an lattitude value. |
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
double |
getLength()
Get length of this longitude. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class jasi.sim.geo.spherical.Arc |
|---|
acos, add, amount, asin, compareTo, cos, fit, length, minus, sin, times, toDegree, toRadians, toRadians |
| Methods inherited from class jasi.sim.basic.value.AbstractComparableObject |
|---|
isEQ, isGE, isGT, isLE, isLT, isNE |
| Methods inherited from class jasi.sim.basic.value.AbstractSimValueType |
|---|
getContent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jasi.sim.basic.value.SimValue |
|---|
getContent |
| Field Detail |
|---|
public static final Longitude GREENWICH
| Constructor Detail |
|---|
public Longitude(double arc)
arc - The arc.public Longitude(java.lang.String s)
s - The string representation of a longitude.
java.lang.IllegalArgumentException - If the string can not be translated.public Longitude(Longitude arc)
arc - The arc.| Method Detail |
|---|
public double getLength()
protected double convert(java.lang.String s)
convert in class Arcs - The string representing a lattitude.
java.lang.IllegalArgumentException - When string could not be analyzed.public boolean equals(java.lang.Object o)
equals in class Arco - That object which is compared with this object.
public int hashCode()
hashCode in class Arcpublic java.lang.String toString()
toString in class Arc
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||