gnu.prolog.demo.mentalarithmetic
Class MentalArithmetic
java.lang.Object
gnu.prolog.demo.mentalarithmetic.MentalArithmetic
public class MentalArithmetic
- extends Object
This is the main class of the mentalarithemtic program. It is runnable as a
stand alone program.
Should be thread safe.
- Author:
- Daniel Thomas
Field Summary |
static String |
USAGE
The USAGE of this program as a standalone program. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USAGE
public static final String USAGE
- The USAGE of this program as a standalone program.
- See Also:
- Constant Field Values
main
public static void main(String[] args)
- Standalone entry point for the program
- Parameters:
args
- as detailed in USAGE
- See Also:
USAGE
generateQuestion
public static Pair<String,Integer> generateQuestion(int limit,
int length)
throws PrologException,
NoAnswerException
- Throws:
PrologException
NoAnswerException