|
||||||||||
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.EvlaTelescopeMotionSimulator
public class EvlaTelescopeMotionSimulator
TODO: Verify ALL constants returned by this class!!
Nested Class Summary | |
---|---|
static class |
EvlaTelescopeMotionSimulator.Error
|
Constructor Summary | |
---|---|
EvlaTelescopeMotionSimulator()
Creates a EvlaTelescopeMotionSimulator |
|
EvlaTelescopeMotionSimulator(Angle startAz,
Angle startEl)
Creates a EvlaTelescopeMotionSimulator with an initial position of startAz and startEl . |
|
EvlaTelescopeMotionSimulator(Longitude startAz,
Latitude startEl,
AntennaWrap wrap)
Creates a EvlaTelescopeMotionSimulator with an initial position of startAz and startEl that is on wrap wrap . |
Method Summary | |
---|---|
static Angle |
getAzimuthDefault()
Returns the default azimuth value for EVLA antenna pointings. |
static Angle |
getAzimuthMaximum()
Returns the maximum azimuth value for EVLA antenna pointings. |
static Angle |
getAzimuthMinimum()
Returns the minimum azimuth value for EVLA antenna pointings. |
Angle |
getCurrentAntennaAzimuth()
-85 to 445 degrees |
Angle |
getCurrentAntennaElevation()
8 to 125 degrees |
AntennaWrap |
getCurrentAntennaWrap()
Returns which AntennaWrap this simulator is currently on using the following rules. |
static Angle |
getElevationDefault()
Returns the default elevation value for EVLA antenna pointings. |
static Angle |
getElevationMaximum()
Returns the maximum elevation value for EVLA antenna pointings. |
static Angle |
getElevationMinimum()
Returns the minimum elevation value for EVLA antenna pointings. |
List<EvlaTelescopeMotionSimulator.Error> |
getErrors()
Returns a list of any errrors that may have occured during the lastest call to the moveTo method. |
TimeDuration |
moveTo(Longitude azStart,
Latitude elStart,
Longitude azEnd,
Latitude elEnd,
AntennaWrap wrap,
boolean goOverTheTop)
Returns the estimated move time from our current saved position to az, el . |
void |
setCurrentAntennaAzimuth(Angle a)
sets the current Antenna Az to a clone of a if a is within range. |
void |
setCurrentAntennaAzimuth(Longitude a,
AntennaWrap w)
sets the current Antenna Az to a Angle equivalent to a at wrap w . |
void |
setCurrentAntennaElevation(Angle a)
sets the current Antenna El to a clone of a if a is within range. |
void |
setCurrentAntennaElevation(Latitude a)
sets the current Antenna Az to a Angle equivalent to a at wrap w . |
static Angle |
toAntennaAzimuth(Longitude az,
AntennaWrap w)
Returns an Angle in degrees between -85 and 445 degrees that represents az at AntennaWrap w . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvlaTelescopeMotionSimulator()
public EvlaTelescopeMotionSimulator(Angle startAz, Angle startEl)
startAz
and startEl
.
IllegalArgumentException
- if startAz or startEl are out of range.public EvlaTelescopeMotionSimulator(Longitude startAz, Latitude startEl, AntennaWrap wrap)
startAz
and startEl
that is on wrap wrap
.
IllegalArgumentException
- if startEl is out of range.Method Detail |
---|
public TimeDuration moveTo(Longitude azStart, Latitude elStart, Longitude azEnd, Latitude elEnd, AntennaWrap wrap, boolean goOverTheTop)
az, el
. For the very first calculation, a starting position due south at
65 degrees elevation is assumed. The method takes into account antenna
wrap by calculating 4 different move times and returning the smallest
valid move time. The 4 cases are as follows:
wrap
is not CLOCKWISE and goOverTheTop
is false.
wrap
is not COUNTERCLOCKWISE and
goOverTheTop
is false.
goOverTheTop
is true and the
elevation is greater than 55 degrees (180 - MAX_EL).
public List<EvlaTelescopeMotionSimulator.Error> getErrors()
moveTo
method.
public AntennaWrap getCurrentAntennaWrap()
public Angle getCurrentAntennaAzimuth()
public void setCurrentAntennaAzimuth(Angle a)
a
if a is within range.
public void setCurrentAntennaAzimuth(Longitude a, AntennaWrap w)
a
at wrap w
.
public Angle getCurrentAntennaElevation()
public void setCurrentAntennaElevation(Angle a)
a
if a is within range.
public void setCurrentAntennaElevation(Latitude a)
a
at wrap w
.
public static Angle toAntennaAzimuth(Longitude az, AntennaWrap w)
az
at AntennaWrap w
.
public static Angle getAzimuthMinimum()
public static Angle getAzimuthMaximum()
public static Angle getAzimuthDefault()
public static Angle getElevationMinimum()
public static Angle getElevationMaximum()
public static Angle getElevationDefault()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |