stella
Interface TargetDependingParameter
- All Superinterfaces:
- Initializable, Parameter, PropertySupplying, TargetDepending
- All Known Subinterfaces:
- TargetDependingValue
- All Known Implementing Classes:
- AbstractFitsMomentsValue, AbstractTargetParameter, AbstractTargetValue, AirmassTarget, AltTarget, AltVelocity, AzTarget, AzVelocity, BarycentricVelocity, BVTarget, DecApparent, DecTarget, DerotatorOffset, Distance.TargetDistance, DitherParameter, DiurnalVelocity, EnvironmentFocus, ExposureRepeat, ExposureSpan, ExtinctionCoefficient, FilterTarget, FilterWavelength, FilterWidth, FlatExposureTime, FlatMatch, FlatMaximumTime, FlatQuality, FocusMeasure, FocusStar, FrameProvider, HjdCorrection, Horizon, ImageRevolution, ImageRotation, ImageType, MoonLight, NasmithImageRevolution, NasmithImageRotation, ObservableList, PropDecTarget, PropRaTarget, RaApparent, RankProvider, RaTarget, RMagTarget, SolOpposition, TargetCatalogName, TargetDistance, TargetFilterFunction, TargetFunction, TargetInstitution, TargetMerit, TargetName, TargetSetup, TargetType, TargetUser, TauTarget, TrackVelocity, VMagTarget
public interface TargetDependingParameter
- extends Parameter, TargetDepending
A target depending parameter can define its value only with a
TargetDefinition. Two possiblities of data retrieval are possible:
Either providing the target description directly on the #getFor
method, or registering it with TargetDepending.registerTarget(stella.TargetDefinition) and
subsequentially calling Parameter.get(). This implies that calls to the
parameter's get method always return the value stemming from the same
target until a new one has been registered.
Due to the dependency on a target definition, setting the parameter with
the Parameter.set(java.lang.Object) method seems unlikely. Parameter values change with
registering a new target.
Most application will use this parameter in its target related sense,
i.e. if an application may
query a parameter not for its current setting, but for a setup of a special
target (which, of course, this application must know of). The application
may check if the parameter is an instance of
TargetDependingParameter for that purpose.
| 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 |
getForTarget
Object getForTarget(TargetDefinition target)
- Returns the parameter value using some values of the target definition
handed over. Subsequent calls to
Parameter.get() still return the old
value.
getFormattedFor
String getFormattedFor(TargetDefinition target)
- Returns a formatted version of the
#getFor method.