Class SimulatedTelescope
java.lang.Object
org.episteme.core.device.AbstractDevice
org.episteme.core.device.sim.AbstractSimulatedDevice
org.episteme.natural.device.sim.SimulatedTelescope
- All Implemented Interfaces:
Serializable, AutoCloseable, Actuator<String>, Device, Sensor<Angle>, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Telescope
Simulated telescope.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDevice
AbstractDevice.RecordNested classes/interfaces inherited from interface Device
Device.Record, Device.Status -
Field Summary
FieldsFields inherited from class AbstractSimulatedDevice
supportFields inherited from class AbstractDevice
accuracy, calibrationHistory, currentValue, displayUnit, firmware, history, identification, lastCalibration, locationDescription, manufacturer, maxRange, minRange, model, precisionDescription, resolution, sensitivity, status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Aborts any ongoing slew operation.protected voidaddCustomReadings(Map<String, String> readings) Subclasses can override to add custom readings.Returns the bottom-right coordinate of the current field of view.Returns the current Declination.double[][]getImage()Captures a 2D image/intensity map from the current position.Returns the current Right Ascension.Returns the top-left coordinate of the current field of view.Reads a value from the sensor.voidSends a command or value to the actuator.voidSlews the telescope to the given Right Ascension and Declination.voidSynchronizes the telescope to the given Right Ascension and Declination.Methods inherited from class AbstractSimulatedDevice
close, connect, disconnect, getCapabilities, getDriverClass, getErrorCode, getFormattedInfo, getReadings, getStatus, getUptimeSeconds, isConnected, isPowerOn, setCapability, setDriverClass, setErrorCode, setPowerOnMethods inherited from class AbstractDevice
calibrate, getAccuracy, getCalibrationHistory, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getResolution, getSensitivity, getTrait, getTraitOptional, getTraits, getValue, isEnabled, measure, needsCalibration, performCalibration, recordMeasurement, setAccuracy, setCurrentValue, setDisplayUnit, setEnabled, setFirmware, setLastCalibration, setLocationDescription, setManufacturer, setMaxRange, setMinRange, setModel, setPrecisionDescription, setResolution, setSensitivity, setStatusMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AutoCloseable
closeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, getTraits, setName, setTraitMethods inherited from interface Device
calibrate, calibrate, connect, disconnect, getAccuracy, getCalibrationHistory, getCapabilities, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getReadings, getResolution, getSensitivity, getStatus, getValue, isConnected, isEnabled, measure, needsCalibration, setDisplayUnit, setEnabled
-
Field Details
-
ra
-
dec
-
-
Constructor Details
-
SimulatedTelescope
-
-
Method Details
-
slewTo
-
syncTo
-
getRightAscension
Description copied from interface:TelescopeReturns the current Right Ascension.- Specified by:
getRightAscensionin interfaceTelescope
-
getDeclination
Description copied from interface:TelescopeReturns the current Declination.- Specified by:
getDeclinationin interfaceTelescope
-
abort
-
readValue
Description copied from interface:SensorReads a value from the sensor.- Specified by:
readValuein interfaceSensor<Angle>- Returns:
- the measured value
- Throws:
IOException- if the read operation fails
-
send
Description copied from interface:ActuatorSends a command or value to the actuator.- Specified by:
sendin interfaceActuator<String>- Parameters:
command- the command/value to send- Throws:
IOException- if the operation fails
-
getImage
-
getTopLeftFOV
Description copied from interface:TelescopeReturns the top-left coordinate of the current field of view.- Specified by:
getTopLeftFOVin interfaceTelescope
-
getBottomRightFOV
Description copied from interface:TelescopeReturns the bottom-right coordinate of the current field of view.- Specified by:
getBottomRightFOVin interfaceTelescope
-
addCustomReadings
Description copied from class:AbstractSimulatedDeviceSubclasses can override to add custom readings.- Overrides:
addCustomReadingsin classAbstractSimulatedDevice
-