stella.parameter
Class Distance.TargetDistance

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.parameter.AbstractParameter
                  extended by stella.parameter.AbstractValue
                      extended by stella.parameter.Distance
                          extended by stella.parameter.Distance.TargetDistance
All Implemented Interfaces:
Cloneable, Parameter, TargetDependingValue, ParameterDepending, TargetDepending, TargetDependingParameter, Value, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, Reloadable, ResourceSupplying
Enclosing class:
Distance

public static class Distance.TargetDistance
extends Distance
implements TargetDependingValue

Target-depending version for distance of target to moon.


Nested Class Summary
 
Nested classes/interfaces inherited from class stella.parameter.Distance
Distance.TargetDistance
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
 
Fields inherited from class stella.parameter.Distance
dec1, dec2, DEFNAME, KEY_DEC1, KEY_DEC2, KEY_RA1, KEY_RA2, MOONDISTANCE, ra1, ra2, SOLDISTANCE
 
Fields inherited from class stella.parameter.AbstractParameter
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Constructor Summary
Distance.TargetDistance(Map<String,String> prop)
          Constructs a new target distance parameter, which is a target depending parameter.
 
Method Summary
 String getFormattedFor(TargetDefinition star)
          Returns a formatted version of the #getFor method.
 Number getForTarget(TargetDefinition star)
          Returns the distance of the two previousely registered points in degrees.
 void registerTarget(TargetDefinition star)
          Registers a target definition to this instance.
 
Methods inherited from class stella.parameter.Distance
getValue, registerParameter, rescanned, setValue
 
Methods inherited from class stella.parameter.AbstractValue
get, set
 
Methods inherited from class stella.parameter.AbstractParameter
createParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, init, register, setName, toString
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, 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
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
 
Methods inherited from interface util.Reloadable
reload
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 

Constructor Detail

Distance.TargetDistance

public Distance.TargetDistance(Map<String,String> prop)
Constructs a new target distance parameter, which is a target depending parameter.

Method Detail

registerTarget

public void registerTarget(TargetDefinition star)
Description copied from interface: TargetDepending
Registers a target definition to this instance. It is within the responsiblity of the implementing class to draw the necessary information out of the target.

Specified by:
registerTarget in interface TargetDepending

getFormattedFor

public String getFormattedFor(TargetDefinition star)
Description copied from interface: TargetDependingParameter
Returns a formatted version of the #getFor method.

Specified by:
getFormattedFor in interface TargetDependingParameter

getForTarget

public Number getForTarget(TargetDefinition star)
Returns the distance of the two previousely registered points in degrees.

Specified by:
getForTarget in interface TargetDependingValue
Specified by:
getForTarget in interface TargetDependingParameter