org.minetti.astrodevice.server.hibernate.object.embedded
Class EmbeddedDecimalCoordinate

java.lang.Object
  extended by org.minetti.astrodevice.server.hibernate.object.embedded.EmbeddedDecimalCoordinate
All Implemented Interfaces:
Serializable

@Embeddable
public final class EmbeddedDecimalCoordinate
extends Object
implements Serializable

Object representing a coordinate stored as decimal format (embeddable class for Hibernate framework).

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Constructor Summary
EmbeddedDecimalCoordinate()
          Constructor.
EmbeddedDecimalCoordinate(boolean hourAngle, org.minetti.astrodevice.common.coordinate.Coordinate coordinate)
          Constructor.
 
Method Summary
 double getValue()
          Returns the full value of the coordinate in hours (h) or degrees (°).
 void setValue(double value)
          Sets the full value of the coordinate in hours (h) or degrees (°).
 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

EmbeddedDecimalCoordinate

public EmbeddedDecimalCoordinate()
Constructor.


EmbeddedDecimalCoordinate

public EmbeddedDecimalCoordinate(boolean hourAngle,
                                 org.minetti.astrodevice.common.coordinate.Coordinate coordinate)
Constructor.

Parameters:
hourAngle - TRUE if the coordinate must be an hour angle and therefore expressed in hours.
coordinate - Coordinate.
Method Detail

getValue

public double getValue()
Returns the full value of the coordinate in hours (h) or degrees (°).

Returns:
Full value of the coordinate.

setValue

public void setValue(double value)
Sets the full value of the coordinate in hours (h) or degrees (°).

Parameters:
value - Full value of the coordinate.

toCoordinate

public org.minetti.astrodevice.common.coordinate.Coordinate toCoordinate(boolean hourAngle)
Returns the coordinate.

Parameters:
hourAngle - TRUE if the coordinate must be an hour angle and therefore expressed in hours.
Returns:
Coordinate.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 astroDevice. All Rights Reserved.