stella.command
Class SequenceFilterCalibration

java.lang.Object
  extended by java.util.EventObject
      extended by util.rmi.RmiEvent
          extended by stella.MessageEvent
              extended by stella.CommandEvent
                  extended by stella.command.SequenceFilterCalibration
All Implemented Interfaces:
Serializable, CalibrationCommand, SequencerDepending, TargetDependingCommand

public class SequenceFilterCalibration
extends CommandEvent
implements CalibrationCommand, TargetDependingCommand, SequencerDepending

The select filter adapter command. The filter name is provided as a constant in a 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).

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class stella.CommandEvent
CommandEvent.Create
 
Field Summary
private  int current
          Current active filter.
private  List<String> filters
          The desired filter name.
 
Fields inherited from class stella.CommandEvent
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATOR
 
Fields inherited from class stella.MessageEvent
SEPCHAR
 
Fields inherited from class util.rmi.RmiEvent
localHost, sourceName
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class stella.CommandEvent
classNameToTemplate, createCommand, createCommand, createJCommand, extractType, getExpectedAcknowledgeNumber, parseForStrings, templateToClassName
 
Methods inherited from class stella.MessageEvent
checkType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toString
 
Methods inherited from class util.rmi.RmiEvent
getHost, getSourceName, setSourceName
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

filters

private List<String> filters
The desired filter name.


current

private int current
Current active filter.

Constructor Detail

SequenceFilterCalibration

public 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

public SequenceFilterCalibration(Object src,
                                 String type,
                                 long time)
Constructs a select filter command. Only the header is fully qualified with the provided argumnets. The command line can only be retrieved after a DTDConstants.SETUP element has been registered to this command.

See Also:
MessageEvent.isValid()
Method Detail

registerTargetProperties

public void registerTargetProperties(Object color)
Calculates the command line from the mapping delivered in the DTDConstants.SETUP DOM-element. It uses the filter name stored in the setup section handed over.

Specified by:
registerTargetProperties in interface TargetDependingCommand

initWith

public void initWith(String init)
Registers an initializer which is a sequence of filter names, separated by a colon.


getLine

public String[] getLine()
Returns the command line of the select filter command.

Specified by:
getLine in class MessageEvent
Returns:
An array containing all command lines.

parseLine

public boolean parseLine(String[] all)
Parse the command line into filter name of the select filter command.

Specified by:
parseLine in class MessageEvent
Returns:
True, if parsing was successful.

registerSequencingParameters

public void registerSequencingParameters(Map<String,Object> loop)
Sets the sequence loop, but subtracts one from it as the first loop index is 1.

Specified by:
registerSequencingParameters in interface SequencerDepending

getCurrentFilter

public String getCurrentFilter()
Returns the required filter name.