stella.util
Class AxelList
java.lang.Object
util.CommandLineParser
stella.util.CommandLineTarget
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.
|
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. |
| 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 |
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.
AxelList
public AxelList(File axel)
- Registers the file where the list is stored. The file is read and
parsed in the init section.
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().