stella
Interface Value

All Superinterfaces:
Initializable, Parameter, PropertySupplying
All Known Subinterfaces:
ExposureTimeMeasuring, TargetDependingValue
All Known Implementing Classes:
AbstractDatabaseValue, AbstractFitsMomentsValue, AbstractFitsValue, AbstractRemoteValue, AbstractTargetValue, AbstractTime, AbstractValue, AcceleratedJd, AcceleratedTime, AirmassTarget, AlarmWatch, Altitude, AltTarget, AltTelescope, AltVelocity, AzTarget, AzTelescope, AzVelocity, BarycentricVelocity, BVTarget, CountDownWatch, DataValue, DateTime, DecApparent, DecTarget, DerotatorOffset, Distance, Distance.TargetDistance, DiurnalVelocity, EclipticObliquity, Efficiency, ElapsedTime, EnvironmentFocus, ExposureRepeat, ExposureSpan, ExposureTimeLeft, ExtinctionCoefficient, FilterTarget, FilterWavelength, FilterWheelPosition, FilterWidth, FlatExposureTime, FlatMaximumTime, FlatQuality, FluxAdapter, FocusMeasure, FocusPosition, FractionalExposureTime, FwhmAdapter, HjdCorrection, Horizon, ImageRevolution, ImageRotation, IntegerId, Jd, JSliderParameter, Latitude, Longitude, MirrorTemperature, MoonAngle, MoonAzimuth, MoonDec, MoonHeight, MoonLight, MoonPhase, MoonRa, NasmithImageRevolution, NasmithImageRotation, NightClear, NightLength, NightRemain, ObservableList, PilarValue, PropDecTarget, PropRaTarget, RaApparent, RankProvider, RaTarget, RefractionModel, RemoteSensorAverage, RemoteSensorMaximum, RemoteSensorShelf, RemoteSensorStatistic, RemoteSensorStub, RemoteShelfAverage, RemoteShelfMaximum, RMagTarget, RollOverWatch, SensorShelf, SensorStatistic, SensorValue, SerialValue, ServerPort, SettableTime, ShelfStatistic, ShelfStatistic.Average, ShelfStatistic.Maximum, ShelfStatistic.Minimum, ShelfStatistic.Test, ShutterTimes, SiderealGreenwich, SiderealGreenwichApparent, SiderealTime, SignalToNoise, SimpleRemoteValue, SimpleValue, SimpleValue.Exposure, SnapshotValue, SolAzimuth, SolDec, SolDistance, SolHeight, SolLambda, SolOpposition, SolRa, SolSink, SolZ, StatisticValue, StatisticValue.Average, StatisticValue.Maximum, StatisticValue.Median, StatisticValue.Minimum, StopWatch, SumWatch, TargetDistance, TargetFilterFunction, TargetFunction, TargetMerit, TargetSetup, TauTarget, Time, TrackTime, TrackVelocity, Twilight, UserShare, ValueDifference, ValueFraction, ValueProduct, ValueStub, ValueSum, VMagTarget, WeatherRemainsBad

public interface Value
extends Parameter

A convenience interface to allow direct return of a Parameter.get() value as a number object. This interface is intended for global varaibales.

See Also:
Trigger

Field Summary
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Method Summary
 Number getValue()
          Returns the same object as Parameter.get() but already cast into a Number.
 Number setValue(Number set)
          Calls Parameter.set(java.lang.Object) but returns the previously set value as a Number.
 
Methods inherited from interface stella.Parameter
get, getFormatted, getName, getString, set
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface util.Initializable
init
 

Method Detail

getValue

Number getValue()
Returns the same object as Parameter.get() but already cast into a Number. Primitive data types can directly be extracted from this number without any further explicit casting.


setValue

Number setValue(Number set)
                throws UnsupportedOperationException
Calls Parameter.set(java.lang.Object) but returns the previously set value as a Number.

Throws:
UnsupportedOperationException