public class ScsAddressConfig extends CommandEvent implements TelescopeCommand, ParameterDepending
CommandEvent.Create| Modifier and Type | Field and Description |
|---|---|
private int |
port
The port of the error server on the scs.
|
private InetAddress |
scs
The ip-address of the SCS.
|
COMMANDPACKAGE, JVIEWPACKAGE, TYPESEPARATORSEPCHARlocalHost, sourceNamesource| Constructor and Description |
|---|
ScsAddressConfig(Object src)
Constructs a abort adapter telescope, grabbing the type from the class
name and setting the command time to the current system time.
|
ScsAddressConfig(Object src,
String type,
long time)
Constructs a move telescope command.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getLine()
Returns the command line of the move telescope command.
|
int |
getPort()
Returns the declination of the target star.
|
InetAddress |
getScs()
Returns the right ascension of the target star.
|
boolean |
parseLine(String[] all)
Parse the command line into ra and dec of the move command.
|
void |
registerParameter(Parameter oneoftwo)
Register the altitude of the target.
|
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 InetAddress scs
private int port
public ScsAddressConfig(Object src)
public ScsAddressConfig(Object src, String type, long time)
DTDConstants.OBJECT
element has been registered to
this command.MessageEvent.isValid()public void registerParameter(Parameter oneoftwo)
registerParameter in interface ParameterDependingpublic String[] getLine()
getLine in class MessageEventpublic boolean parseLine(String[] all)
parseLine in class MessageEventpublic InetAddress getScs()
public int getPort()