stella.parameter
Class AbstractValue

java.lang.Object
  extended by util.PropertyContainer
      extended by stella.parameter.AbstractParameter
          extended by stella.parameter.AbstractValue
All Implemented Interfaces:
Cloneable, Parameter, Value, ExitCleaning, Initializable, PropertyBearing
Direct Known Subclasses:
Altitude, DataValue, Distance, EclipticObliquity, ElapsedTime, FilterWheelPosition, FluxAdapter, FractionalExposureTime, FwhmAdapter, IntegerId, Jd, Latitude, Longitude, MoonAngle, MoonAzimuth, MoonDec, MoonHeight, MoonPhase, MoonRa, NightLength, NightRemain, RefractionModel, SerialValue, ServerPort, ShelfStatistic, ShutterTimes, SiderealGreenwich, SiderealGreenwichApparent, SiderealTime, SimpleValue, SolAzimuth, SolDec, SolDistance, SolHeight, SolLambda, SolRa, SolSink, SolZ, StatisticValue, StopWatch, SumWatch, Time, Twilight, UserShare, ValueDifference, ValueFraction, ValueProduct, ValueSum

public abstract class AbstractValue
extends AbstractParameter
implements Value

An intermediate class from an abstract parameter to a concrete value class. Links the Parameter.get() and Parameter.set(java.lang.Object) methods to the appropriate Value.getValue() and Value.setValue(java.lang.Number) method.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyContainer
PropertyContainer.URLResource
 
Field Summary
 
Fields inherited from class stella.parameter.AbstractParameter
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES
 
Fields inherited from interface util.PropertyBearing
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Constructor Summary
protected AbstractValue(Map info)
          Constructs a abstract value.
 
Method Summary
 Object get()
          Links the Parameter.get() to the Value.getValue() method.
 Object set(Object number)
          Links the Parameter.set(java.lang.Object) to the Value.setValue(java.lang.Number) method.
 
Methods inherited from class stella.parameter.AbstractParameter
createParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, init, register, rescanned, setName, toString
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, clone, createFrom, createFrom, createFrom, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getLocalClassLoader, getLocalized, getLocalized, getLocalizedString, getLocalizedString, getProperties, getPropertiesToKey, getPropertiesToKey, getProperty, getResource, getResourceAsStream, getResourceFromKey, getResources, has, isNew, keyCreate, keyCreate, parseObject, reload, reload, removeProperty, setObject, setProperties, setProperty, stringProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface stella.Value
getValue, setValue
 
Methods inherited from interface stella.Parameter
getFormatted, getName, getString
 
Methods inherited from interface util.PropertyBearing
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getLocalized, getProperties, getProperty, getResource, getResourceAsStream, getResources, has, parseObject, removeProperty, setObject, setProperty, stringProperties
 
Methods inherited from interface util.Initializable
init
 

Constructor Detail

AbstractValue

protected AbstractValue(Map info)
Constructs a abstract value. Used for constructor chaining.

Method Detail

get

public Object get()
Links the Parameter.get() to the Value.getValue() method.

Specified by:
get in interface Parameter

set

public Object set(Object number)
Links the Parameter.set(java.lang.Object) to the Value.setValue(java.lang.Number) method. If the argument cannot be cast into a number or is null an IllegalArgumentException is thrown.

Specified by:
set in interface Parameter
Returns:
The previous value of this parameter.