|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.wdssii.core.WDSSIIProgram
public abstract class WDSSIIProgram
Base class of algorithms and tools
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
log
|
private String |
outputDir
|
private boolean |
realTime
|
Constructor Summary | |
---|---|
protected |
WDSSIIProgram()
initializes wdssii |
Method Summary | |
---|---|
abstract void |
execute()
Start doing main task. |
String |
getOutputDir()
|
Properties |
getPropertiesFromCommandLine(String[] args,
Properties defaults)
Gets properties from the file specified on command-line backed by defaults. |
String |
getSubTypeForElevation(float elevation)
uses 00.00 as the format. |
boolean |
isRealTime()
|
void |
printUsage(Properties defaults,
boolean exit)
|
void |
setOutputDir(String outputDir)
|
void |
setRealTime(boolean realTime)
|
void |
setup(Properties props)
Will use reflection to set up all the properties on the algorithm object. |
void |
setup(String[] args)
convenience function |
void |
setupAndExecute(String[] args)
convenience function |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.commons.logging.Log log
private String outputDir
private boolean realTime
Constructor Detail |
---|
protected WDSSIIProgram()
Method Detail |
---|
public String getOutputDir()
public void setOutputDir(String outputDir)
public boolean isRealTime()
public void setRealTime(boolean realTime)
public void printUsage(Properties defaults, boolean exit)
public Properties getPropertiesFromCommandLine(String[] args, Properties defaults)
Properties defaults = PropertyGetterSetter.getProperties(this);Prints usage and exits on error.
public void setup(Properties props)
public void setup(String[] args)
public void setupAndExecute(String[] args)
public abstract void execute()
public String getSubTypeForElevation(float elevation)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |