util
Interface Reloadable

All Known Implementing Classes:
AbstractSwitch, AcceleratedJd, AcceleratedTime, AdapterMaster, AirmassTarget, AlarmWatch, Altitude, AltTarget, AltTelescope, AltVelocity, AzTarget, AzTelescope, AzVelocity, BarycentricVelocity, Blinker, BVTarget, CabinetSwitch, CalibrationMaster, ConstantOffset, CountDownTrigger, CountDownWatch, CountingTrigger, DecApparent, DecTarget, DerotatorOffset, DeviceTrigger, Distance, Distance.TargetDistance, DiurnalVelocity, DomeMaster, EclipticObliquity, Efficiency, ElapsedTime, EnvironmentFocus, EnvironmentMaster, ErrorTrigger, ExposureCount, ExposureRepeat, ExposureSpan, ExposureTimeLeft, ExtinctionCoefficient, FilterWavelength, FilterWidth, FitsParameterStub, FitsUpdateListener, FlatMatch, FluxAdapter, FocusPosition, FocusStar, FractionalExposureTime, FwhmAdapter, HjdCorrection, HostAddress, HumiditySwitch, ImageRevolution, ImageRotation, ImageType, InferPark, Jd, Latitude, LightSwitch, Longitude, MirrorTemperature, MissmatchTrigger, MomentsTrigger, Moon, MoonAngle, MoonAzimuth, MoonDec, MoonHeight, MoonPhase, MoonRa, MyRmiListener, NasmithImageRevolution, NasmithImageRotation, NightLength, NightRemain, OneReadTrigger, OneWireMultiSwitch, OneWireSwitch, ParameterSet, ParameterSkeleton, ParameterStub, PilarParameter, PilarTrigger, PilarValue, PowerTelescope, PropDecTarget, PropRaTarget, RaApparent, RaTarget, RefractionModel, RemoteSensorAverage, RemoteSensorMaximum, RemoteSensorShelf, RemoteSensorStatistic, RemoteSensorStub, RemoteShelfAverage, RemoteShelfMaximum, RMagTarget, RollOverWatch, RS485Switch, SeasonWeather, SensorValue, SerialValue, ServerPort, SesMaster, SettableTime, ShutterTimes, SiderealGreenwich, SiderealGreenwichApparent, SiderealTime, SignalToNoise, SimpleEventTrigger, SimpleParameter, SimpleRemoteSwitch, SimpleRemoteTrigger, SimpleRemoteValue, SimpleTrigger, SimpleValue, SimpleValue.Exposure, SnapshotParameter, SnapshotValue, SolAzimuth, SolDec, SolDistance, SolHeight, SolLambda, SolOpposition, SolRa, SolSink, SolZ, StopWatch, SubTargets, SumWatch, SwitchSkeleton, SwitchStub, SwitchTrigger, TargetCatalogName, TargetDistance, TargetFilterFunction, TargetFunction, TargetInstitution, TargetList, TargetMerit, TargetName, TargetSetup, TargetType, TargetUser, TauTarget, TelescopeError, TelescopeMaster, Time, TrackTime, TrackVelocity, TriggerSkeleton, TriggerStub, Twilight, Unique, UserShare, ValueStub, VMagTarget, WifsipMaster

public interface Reloadable

A reloadable property bearing or property composed object can obtain its new state by reloading a properites file.


Method Summary
 double reload()
          Signals that this object should reload itself immediately.
 double rescanned(String key, String old, String newvalue)
          This method is called if the value of a key changes from its old setting to its new setting.
 

Method Detail

reload

double reload()
Signals that this object should reload itself immediately. Normally, it will scan all its properties individually using rescanned(java.lang.String, java.lang.String, java.lang.String).


rescanned

double rescanned(String key,
                 String old,
                 String newvalue)
This method is called if the value of a key changes from its old setting to its new setting. If the object this method is invoked upon is unable to regain a usable state, it should throw an illegal argument exception. If the new state is at least to a certain extend meaningful, this method should return a double in the range of zero to one, zero indicating total loss of meaning for this key, while one should indicate no problems with the new state.