stella.command
Class SelectFilterAdapter
java.lang.Object
java.util.EventObject
util.rmi.RmiEvent
stella.MessageEvent
stella.CommandEvent
stella.command.SelectFilterAdapter
- All Implemented Interfaces:
- Serializable, AdapterCommand, TargetDependingCommand
public class SelectFilterAdapter
- extends CommandEvent
- implements AdapterCommand, TargetDependingCommand
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
|
Field Summary |
private String |
filter
The desired filter name. |
| 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 |
filter
private String filter
- The desired filter name.
SelectFilterAdapter
public SelectFilterAdapter(Object src)
- Constructs a select filter adapter, grabbing the type from the class
name and setting the command time to the current system time.
SelectFilterAdapter
public SelectFilterAdapter(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()
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
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.
getFilter
public String getFilter()
- Returns the required filter name.