public class DarkCurrent extends AbstractTargetValue implements Reloadable, ParameterDepending
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private Value |
ccdtemp
The current temperature of the CCD.
|
static String |
DEFCONSTANT
The setup ID where the repeat counter is found.
|
static String |
DEFNAME
The name of this global (ra).
|
private static String |
DEFSETUP
The name of the julian date to use.
|
private static DecimalFormat |
df
The formatter for the declination.
|
private double |
expt
The registered exposure time in seconds.
|
static String |
KEY_CCDTEMP
The current temperature of the CCD.
|
static String |
KEY_CONSTANT
The setup ID where the repeat counter is found.
|
static String |
KEY_DOUBLINGTEMP
Dark current doubling temperature.
|
static String |
KEY_NOMINALCURRENT
Nominal dark current at nominal temperature.
|
static String |
KEY_NOMINALTEMP
Nominal temperature.
|
static String |
KEY_SETUP
The setup ID where the repeat counter is found.
|
KEY_INDEXKEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
DarkCurrent(Map<String,String> prop)
Constructs a new global representing the actual object's ra.
|
| Modifier and Type | Method and Description |
|---|---|
private Double |
getDarkCounts(double texp) |
private double |
getExposureTimeForTarget(TargetDefinition star)
Gets the exposure time of the target star.
|
Number |
getForTarget(TargetDefinition star)
Gets the declination of the target star.
|
Number |
getValue()
Returns the ra of the actual target.
|
void |
registerParameter(Parameter p)
A parameter depending command should drain the necessarry information
to get valid out of a parameter value.
|
void |
registerTarget(TargetDefinition star)
Registers a star to this parameter.
|
double |
rescanned(String key,
String old,
String newval)
Makes this method public, no further changes.
|
Number |
setValue(Number val)
This is a read-only variable,
therefore this method throws an UnsupportedOperationException.
|
get, setgetAsStar, getConstant, getFormattedFor, getSetupcreateParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, init, overrideDefaultName, register, setName, toStringclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, 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, parseObject, reload, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreloadgetFormattedForgetFormatted, getName, getStringdefaultBoolean, 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, stringPropertiesinitpublic static final String KEY_NOMINALCURRENT
public static final String KEY_NOMINALTEMP
public static final String KEY_DOUBLINGTEMP
public static final String KEY_SETUP
public static final String KEY_CONSTANT
public static final String KEY_CCDTEMP
private static final String DEFSETUP
public static final String DEFCONSTANT
public static final String DEFNAME
private static final DecimalFormat df
private Value ccdtemp
private double expt
public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic void registerParameter(Parameter p)
ParameterDependingregisterParameter in interface ParameterDependingpublic void registerTarget(TargetDefinition star)
registerTarget in interface TargetDependingprivate double getExposureTimeForTarget(TargetDefinition star)
public Number getForTarget(TargetDefinition star)
getForTarget in interface TargetDependingParametergetForTarget in interface TargetDependingValuepublic Number getValue()
public Number setValue(Number val) throws UnsupportedOperationException
setValue in interface ValueUnsupportedOperationExceptionprivate Double getDarkCounts(double texp)