|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.minetti.astrodevice.server.hibernate.object.embedded.EmbeddedSexagesimalCoordinate
@Embeddable public final class EmbeddedSexagesimalCoordinate
Object representing a coordinate stored as sexagesimal format (embeddable class for Hibernate framework).
Constructor Summary | |
---|---|
EmbeddedSexagesimalCoordinate()
Constructor. |
|
EmbeddedSexagesimalCoordinate(boolean hourAngle,
org.minetti.astrodevice.common.coordinate.Coordinate coordinate)
Constructor. |
Method Summary | |
---|---|
int |
getAngle()
Returns the angle part of coordinate. |
int |
getMinutes()
Returns the minutes part of coordinate. |
double |
getSeconds()
Returns the seconds part of coordinate. |
void |
setAngle(int angle)
Sets the angle part of coordinate. |
void |
setMinutes(int minutes)
Sets the minutes part of coordinate. |
void |
setSeconds(double seconds)
Sets the seconds part of coordinate. |
org.minetti.astrodevice.common.coordinate.Coordinate |
toCoordinate(boolean hourAngle)
Returns the coordinate. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmbeddedSexagesimalCoordinate()
public EmbeddedSexagesimalCoordinate(boolean hourAngle, org.minetti.astrodevice.common.coordinate.Coordinate coordinate)
hourAngle
- TRUE
if the coordinate must be an hour angle and therefore
expressed in hours.coordinate
- Coordinate.Method Detail |
---|
public int getAngle()
public void setAngle(int angle)
angle
- Angle part of coordinate in degrees (°) or hours (h).public int getMinutes()
public void setMinutes(int minutes)
minutes
- Minutes part of coordinate (′).public double getSeconds()
public void setSeconds(double seconds)
seconds
- Seconds part of coordinate (″).public org.minetti.astrodevice.common.coordinate.Coordinate toCoordinate(boolean hourAngle)
hourAngle
- TRUE
if the coordinate must be an hour angle and therefore
expressed in hours.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |