|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.resource.evla.EvlaPointingPosition
public class EvlaPointingPosition
The position to which the EVLA antennas should point.
The main reason for the existence of this class is to be able to allow azimuth values that go beyond the normal range of 0 - 360 and elevation values that go beyond the normal range of -90 - +90.
Version Info:
$Revision$ |
$Date$ |
$Author$ (last person to modify) |
Constructor Summary | |
---|---|
EvlaPointingPosition()
Creates a new AZ / EL position where both dimensions are at their midpoints. |
Method Summary | |
---|---|
EvlaPointingPosition |
clone()
Returns a copy of this position. |
boolean |
equals(Object o)
Returns true if o is equal to this position. |
CelestialCoordinateSystem |
getCoordinateSystem()
Returns the coordinate system used by this position. |
Angle |
getLatitude()
Returns the latitude of this position. |
Angle |
getLatitudeMaximum()
Returns the maximum latitude for this pointing position, given the chosen coordinate system . |
Angle |
getLatitudeMinimum()
Returns the minimum latitude for this pointing position, given the chosen coordinate system . |
String |
getLatitudeText()
|
Angle |
getLongitude()
Returns the longitude of this position. |
Angle |
getLongitudeMaximum()
Returns the maximum longitude for this pointing position, given the chosen coordinate system . |
Angle |
getLongitudeMinimum()
Returns the minimum longitude for this pointing position, given the chosen coordinate system . |
String |
getLongitudeText()
|
int |
hashCode()
Returns a hash code value for this position. |
boolean |
latitudeIsValid()
Returns true if this position's latitude value is valid with respect to its coordinate system. |
boolean |
longitudeIsValid()
Returns true if this position's longitude value is valid with respect to its coordinate system. |
void |
setCoordinateSystem(CelestialCoordinateSystem newSystem)
Sets the coordinate system used by this position. |
void |
setLatitude(Angle newLatitude)
Sets the latitude of this position. |
void |
setLatitude(String text)
|
void |
setLongitude(Angle newLongitude)
Sets the longitude of this position. |
void |
setLongitude(String text)
|
SkyPosition |
toSkyPosition()
Converts this pointing position to a sky position. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvlaPointingPosition()
Method Detail |
---|
public Angle getLatitude()
public void setLatitude(Angle newLatitude)
newLatitude
- the new latitude of this position.
IllegalArgumentException
- if the parameter is null or out of bounds.getLatitudeMaximum()
,
getLatitudeMinimum()
public Angle getLongitude()
public void setLongitude(Angle newLongitude)
newLongitude
- the new longitude of this position.
IllegalArgumentException
- if the parameter is null or out of bounds.getLongitudeMaximum()
,
getLongitudeMinimum()
public CelestialCoordinateSystem getCoordinateSystem()
public void setCoordinateSystem(CelestialCoordinateSystem newSystem)
It is possible that current the latitude and/or longitude of this
position will not be compatible with the new system.
Note that this method will not automatically
correct the positions, nor will it complain about the
new system. Clients who are concerned about this possibility
should call the latitudeIsValid()
and
longitudeIsValid()
methods.
newSystem
- a new coordinate system for this position.public String getLatitudeText()
public String getLongitudeText()
public void setLatitude(String text)
public void setLongitude(String text)
public boolean latitudeIsValid()
public boolean longitudeIsValid()
public Angle getLatitudeMaximum()
coordinate system
.
public Angle getLatitudeMinimum()
coordinate system
.
public Angle getLongitudeMaximum()
coordinate system
.
public Angle getLongitudeMinimum()
coordinate system
.
public SkyPosition toSkyPosition()
Latitude
and Longitude
classes.
Also, equatorial (RA, Dec) coordinates are assumed
to be J2000.
public EvlaPointingPosition clone()
If anything goes wrong during the cloning procedure,
a RuntimeException
will be thrown.
clone
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |