public class SequenceFilterCalibration extends CommandEvent implements CalibrationCommand, TargetDependingCommand, SequencerDepending
AbstractTarget.Setup object, named with
ReservedConstants.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 int |
current
Current active filter.
|
private List<String> |
filters
The desired filter name.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
SequenceFilterCalibration(Object src)
Constructs a select filter adapter, grabbing the type from the class name
and setting the command time to the current system time.
|
SequenceFilterCalibration(Object src,
String type,
long time)
Constructs a select filter command.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentFilter()
Returns the required filter name.
|
String[] |
getLine()
Returns the command line of the select filter command.
|
void |
initWith(String init)
Registers an initializer which is a sequence of filter names, separated
by a colon.
|
boolean |
parseLine(String[] all)
Parse the command line into filter name of the select filter command.
|
void |
registerSequencingParameters(Map<String,Object> loop)
Sets the sequence loop, but subtracts one from it as the first loop index
is 1.
|
void |
registerTargetProperties(Object color)
Calculates the command line from the mapping delivered in the
DTDConstants.SETUP DOM-element. |
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, setSourceNamegetSourcepublic SequenceFilterCalibration(Object src)
public SequenceFilterCalibration(Object src, String type, long time)
DTDConstants.SETUP element has been registered to
this command.MessageEvent.isValid()public void registerTargetProperties(Object color)
DTDConstants.SETUP DOM-element. It uses the filter
name stored in the setup section handed over.registerTargetProperties in interface TargetDependingCommandpublic void initWith(String init)
public String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic void registerSequencingParameters(Map<String,Object> loop)
registerSequencingParameters in interface SequencerDependingpublic String getCurrentFilter()