|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.CommandLineParser
stella.util.CommandLineTarget
public class CommandLineTarget
A command line tool to generate target-xml files. This class tries to infer most of the target information from a default setting, but still provide enough flexibility to allow this tool to construct most of the targets relevant for STELLA. It is used with the following switches, number in parenthesis give the number of arguments.
java stella.util.CommandLineTarget -tel STELLA-I -type doppler -name "HD 12545 DI" -user Strassmeier -setup set1 ExposureTime 300 -object main "HD 12545" -guide main 02:03:45 35:35:20 -o hd_12545.xml
| Nested Class Summary | |
|---|---|
static class |
CommandLineTarget.Batch
Takes a list of input objects and process them with a standard set of command line switches. |
static class |
CommandLineTarget.Cohen
Takes a list of Cohen standards and creates flux standards out of it. |
static class |
CommandLineTarget.Coravel
Takes a list of Coravel radial velocity standards and makes STELLA targets out of it. |
static class |
CommandLineTarget.Hipparchos
Generates a sublist of the hipparchos catalog for acquire tests. |
static class |
CommandLineTarget.Pointing
Generates all hr objects for pointing model. |
| Nested classes/interfaces inherited from class util.CommandLineParser |
|---|
CommandLineParser.Test |
| Field Summary | |
|---|---|
private String |
dtd
Not null if the dtd-path was set. |
private static String |
FOOT
An example of use |
private TargetHelper |
help
The target helper to construct the xml-file. |
private static String |
ONESWITCH
The switches taking one argument. |
private static String |
THREESWITCH
The switches taking three arguments. |
private static String |
TWOSWITCH
The switches taking two arguments. |
private static Map |
USE
The detailed use of the switches. |
| Constructor Summary | |
|---|---|
CommandLineTarget()
Constructs a new command-line parser and registers its switches. |
|
| Method Summary | |
|---|---|
Document |
createTarget()
We have successfully processed all command line arguments and hope that we can now build a document. |
static void |
main(String[] arg)
Parse the command line arguments and save the target as an xml file. |
boolean |
process(String[] arg)
Processes the command line arguments. |
boolean |
saveXML(Document target)
Save the document as an xml-file. |
| Methods inherited from class util.CommandLineParser |
|---|
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String ONESWITCH
private static final String TWOSWITCH
private static final String THREESWITCH
private static final Map USE
private static final String FOOT
private TargetHelper help
private String dtd
| Constructor Detail |
|---|
public CommandLineTarget()
| Method Detail |
|---|
public boolean process(String[] arg)
throws ParseException
ParseExceptionpublic Document createTarget()
public boolean saveXML(Document target)
public static void main(String[] arg)
throws ParseException
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||