stella.parameter
Class FlatMatch
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractTrigger
stella.parameter.SimpleTrigger
stella.parameter.FlatMatch
- All Implemented Interfaces:
- Cloneable, Parameter, ParameterDepending, TargetDepending, TargetDependingParameter, Trigger, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, Reloadable, ResourceSupplying
public class FlatMatch
- extends SimpleTrigger
- implements ParameterDepending, TargetDependingParameter
This trigger is true only when the currently requested flat group, as
defined by the FlatGroup parameter matches the flat group
assigned to a sky flat field target. This trigger can then be used in
a requires clause of a target selection.
This trigger needs the flat group parameter and it is also target depending.
| Methods inherited from class stella.parameter.AbstractParameter |
createParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, register, setName, toString |
| 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 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 |
KEY_FLATGROUP
public static final String KEY_FLATGROUP
- The name of the parameter that is the filter group.
- See Also:
- Constant Field Values
KEY_GROUPID
public static final String KEY_GROUPID
- The setup of the target that carries the flat group.
- See Also:
- Constant Field Values
DEFNAME
public static final String DEFNAME
- Default name of this parameter.
- See Also:
- Constant Field Values
DEFGROUPID
private static final String DEFGROUPID
- Default reference of the setup section that holds the flat group.
- See Also:
- Constant Field Values
DEFINITBOOLEAN
private static final boolean DEFINITBOOLEAN
- Default value.
- See Also:
- Constant Field Values
group
private FlatGroup group
- The flat group parameter.
FlatMatch
public FlatMatch(Map<String,String> prop)
- Constructs a bew Flat match trigger, defaulting all properties.
registerParameter
public void registerParameter(Parameter p)
- Keeps the flat group parameter.
- Specified by:
registerParameter in interface ParameterDepending
registerTarget
public void registerTarget(TargetDefinition td)
- Registers the target, setting the trigger value.
- Specified by:
registerTarget in interface TargetDepending
getForTarget
public Object getForTarget(TargetDefinition td)
- Returns true, if the target's assigned flat group matches the requested
one. Returns false in any other case.
- Specified by:
getForTarget in interface TargetDependingParameter
getFormattedFor
public String getFormattedFor(TargetDefinition td)
- Returns true, if the target's assigned flat group matches the requested
one. Returns false in any other case.
- Specified by:
getFormattedFor in interface TargetDependingParameter
checkGroup
private boolean checkGroup(TargetDefinition td)
- Matches the target's flat group setup to the current requested flat
group.