public class ALDOpRunner extends Object
Reading of IN and INOUT parameters and writing of OUT and INOUT parameters
is accomplished using the interface ALDDataIOCmdline in conjunction
with ALDDataIOManagerCmdline.
For each parameter which should be read or written according to its
annotated direction, a name=value pair has to be given as argument.
If the flag --donotrun or -n is given, only the parameters of the operator
and there details will be printed but the operator is not invoked.
The flag noDefaultHistory specifies that not for each input parameter
a history file should be read and associated with the parameter for all data types
(irrespective whether the corresponding provider does so).
Likewise this flags specifies if a history is to be written for all output parameters.
If the flag --verbose or -v the interface of the
operator will be printed to stdout (and potentially further information).
| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<String> |
matchingClassNames
List of fully qualified class names of operators available
|
protected boolean |
useRegEx
If true, matching of operator name from commandline to the
annoteated ALDOperators uses regular expression matching,
otherwise exact substring matching
|
| Constructor and Description |
|---|
ALDOpRunner(String[] args)
Construct a
ALDOpRunner using args |
| Modifier and Type | Method and Description |
|---|---|
LinkedList<String> |
findALDOperators(String opNamePattern)
Find operator with given pattern among all annotated ALDOperators
and return the full qualified names as a list.
|
protected void |
findOperators(String opNamePattern)
This method is call once to populate the member
matchingClassNames. |
protected ALDOperator |
getOperator(String opName)
This method is called to instantiate the ALDOperator.
|
protected boolean |
isExactSubstring(String substr,
String str)
return true, if
substr is a exact substring of str |
static void |
main(String[] args)
Main routine of
ALDOpRunner , see usage. |
void |
runIt()
This method does the complete work to scan arguments, read and write parameters
and
runOp the operator. |
protected boolean useRegEx
protected LinkedList<String> matchingClassNames
public ALDOpRunner(String[] args)
ALDOpRunner using argsargs - command line argumentspublic static void main(String[] args)
ALDOpRunner , see usage.args - command line argumentspublic void runIt()
runOp the operator.protected ALDOperator getOperator(String opName)
protected void findOperators(String opNamePattern)
matchingClassNames.
May be overrridden may extending classes.opNamePattern - string with pattern for operator namepublic LinkedList<String> findALDOperators(String opNamePattern)
opNamePattern - string with pattern for operator nameCopyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.