public class SelectFilterCalibration extends CommandEvent implements CalibrationCommand, TargetDependingCommand, InitializerDepending, ParameterDepending
ParsedTarget.Setup object, named with
ReserverdConstants#FILTER. This constant should be a string. It is
within the responsiblity of the adapter to translate the filter name to
filter wheel position(s).CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private String |
filter
The desired filter name.
|
private boolean |
zero
If true, do zero-positioning before.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
SelectFilterCalibration(Object src)
Constructs a select filter adapter, grabbing the type from the class name
and setting the command time to the current system time.
|
SelectFilterCalibration(Object src,
String type,
long time)
Constructs a select filter command.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFilter()
Returns the required filter name.
|
String[] |
getLine()
Returns the command line of the select filter command.
|
boolean |
getZero() |
void |
initWith(String focus)
Used for a default setting if the target does not provide a filter.
|
boolean |
parseLine(String[] all)
Parse the command line into filter name of the select filter command.
|
void |
registerParameter(Parameter p)
A parameter depending command should drain the necessarry information
to get valid out of a parameter value.
|
void |
registerTargetProperties(Object color)
Calculates the command line from the mapping delivered in the
DTDConstants.SETUP DOM-element. |
protected void |
setFilter(String f)
Daughter access possible for setting the filter.
|
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, getExpectedAcknowledgeNumber, parseForStrings, templateToClassNamecheckType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toSkippedString, toStringgetHost, getSourceName, setSourceNamegetSourceprivate String filter
private boolean zero
public SelectFilterCalibration(Object src)
public SelectFilterCalibration(Object src, String type, long time)
DTDConstants.SETUP element has been registered to
this command.MessageEvent.isValid()public void initWith(String focus)
initWith in interface InitializerDependingpublic void registerParameter(Parameter p)
ParameterDependingregisterParameter in interface ParameterDependingpublic void registerTargetProperties(Object color)
DTDConstants.SETUP DOM-element. It uses the filter
name stored in the setup section handed over.registerTargetProperties in interface TargetDependingCommandpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic String getFilter()
public boolean getZero()
protected void setFilter(String f)