stella.util
Class AxelList

java.lang.Object
  extended by util.CommandLineParser
      extended by stella.util.CommandLineTarget
          extended by stella.util.AxelList
All Implemented Interfaces:
Initializable

public class AxelList
extends CommandLineTarget
implements Initializable

This class uses Axel Schwopes input list to derive target definitions out of it.


Nested Class Summary
 
Nested classes/interfaces inherited from class stella.util.CommandLineTarget
CommandLineTarget.Batch, CommandLineTarget.Cohen, CommandLineTarget.Coravel, CommandLineTarget.Hipparchos, CommandLineTarget.Pointing
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private  File schwope
          The file provided by axel schwope.
private  List targets
          Each entry holds a list of strings parsed from axel's file.
 
Constructor Summary
AxelList(File axel)
          Registers the file where the list is stored.
 
Method Summary
 int exportList()
          Converts alex's list into target definitions.
 void init()
          Reads the list and prepares the CommandLineTarget.process(java.lang.String[]) call.
static void main(String[] arg)
          The first command line is the file name of axel's list.
 
Methods inherited from class stella.util.CommandLineTarget
createTarget, process, saveXML
 
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

schwope

private File schwope
The file provided by axel schwope.


targets

private List targets
Each entry holds a list of strings parsed from axel's file.

Constructor Detail

AxelList

public AxelList(File axel)
Registers the file where the list is stored. The file is read and parsed in the init section.

Method Detail

init

public void init()
Reads the list and prepares the CommandLineTarget.process(java.lang.String[]) call. The propriatary file format is parsed here into a more comprehensive list.

Specified by:
init in interface Initializable

exportList

public int exportList()
               throws ParseException
Converts alex's list into target definitions. We parse the targets list, which is a list of four-string arrays, to single-observe objects.

Returns:
The number of unsuccessful exports.
Throws:
ParseException

main

public static void main(String[] arg)
The first command line is the file name of axel's list. All other command line switches are pre-defined in exportList().