stella.xml
Class MidnightMerit

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.AbstractMerit
                  extended by stella.xml.MidnightMerit
All Implemented Interfaces:
Serializable, Cloneable, Meriting, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class MidnightMerit
extends AbstractMerit

A merit that is peaks around the true midnight, i.e. if tau of sun is 180ˆ. It centers at that time with fwhm defined with KEY_SHARP. If tau is further of than KEY_RISE, zero is returned.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static double DEFRISE
          Default rise time, 15 degrees or one hour.
private static double DEFSHARP
          Default sharp time, 15 degrees or one hour.
private static String DEFSIDEREAL
          The default name of the sidereal parameter to use.
private static String DEFSOLRA
          The default name of the solar right ascension to use.
static String KEY_RISE
          The key linked to the time merit rises from zero to peak.
static String KEY_SHARP
          The sharpness of the rise, i.e.
static String KEY_SIDEREAL
          The name of the sidereal time to use.
static String KEY_SOLRA
          The name of the solar right ascension to use.
 
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.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
MidnightMerit(Map prop)
          Constructs a new window merit using only default weights and impacts.
 
Method Summary
 double getMerit(ParameterClustering set, TargetDefinition target, Collection ignore, long duration)
          Calculates the window merit stemming from the target definition.
 
Methods inherited from class stella.AbstractMerit
createMerit, getInitializer, initMerit
 
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, init, 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, rescanned, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
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
 

Field Detail

KEY_RISE

public static final String KEY_RISE
The key linked to the time merit rises from zero to peak.

See Also:
Constant Field Values

KEY_SHARP

public static final String KEY_SHARP
The sharpness of the rise, i.e. n .

See Also:
Constant Field Values

KEY_SIDEREAL

public static final String KEY_SIDEREAL
The name of the sidereal time to use.

See Also:
Constant Field Values

KEY_SOLRA

public static final String KEY_SOLRA
The name of the solar right ascension to use.

See Also:
Constant Field Values

DEFRISE

private static final double DEFRISE
Default rise time, 15 degrees or one hour.

See Also:
Constant Field Values

DEFSHARP

private static final double DEFSHARP
Default sharp time, 15 degrees or one hour.

See Also:
Constant Field Values

DEFSIDEREAL

private static final String DEFSIDEREAL
The default name of the sidereal parameter to use.

See Also:
Constant Field Values

DEFSOLRA

private static final String DEFSOLRA
The default name of the solar right ascension to use.

See Also:
Constant Field Values
Constructor Detail

MidnightMerit

public MidnightMerit(Map prop)
Constructs a new window merit using only default weights and impacts. The proper way to create a window merit is using the AbstractMerit.createMerit(java.util.Map) method. This create method also takes care of proper parameter overloading.

Method Detail

getMerit

public double getMerit(ParameterClustering set,
                       TargetDefinition target,
                       Collection ignore,
                       long duration)
Calculates the window merit stemming from the target definition.

Parameters:
set - Current observing conditions.
target - The actual target.
ignore - The list of targetes relevant to the actual target.
duration - The relevant time span in ms.