public abstract class AbstractConsole extends Object implements PrologConsole
PrologConsole
interface.Constructor and Description |
---|
AbstractConsole(PrologProvider provider) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getArguments(String[] args)
Create a arguments map from a given string arguments array.
|
void |
printUsage()
Used to print console usage.
|
void |
run(String[] args)
Command line interface program run method for this platform.
|
public AbstractConsole(PrologProvider provider)
public final Map<String,String> getArguments(String[] args)
PrologConsole
getArguments
in interface PrologConsole
args
- string arguments arraypublic final void printUsage()
PrologConsole
printUsage
in interface PrologConsole
public final void run(String[] args)
PrologConsole
Command line interface program run method for this platform. Take the program arguments from main entry point and execute the job. Used like:
public class ANYPrologConsole extends AbstractConsole implements PrologConsole { public static void main(String[] args) { new ANYPrologConsole().run(args); } }
run
in interface PrologConsole
args
- command line interface program arguments arrayCopyright © 2020–2024 Prolobjectlink Project. All rights reserved.