GNU Prolog for Java

gnu.prolog.demo.mentalarithmetic
Class MentalArithmetic

java.lang.Object
  extended by 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.
 
Method Summary
static Pair<String,Integer> generateQuestion(int limit, int length)
           
static void main(String[] args)
          Standalone entry point for the program
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USAGE

public static final String USAGE
The USAGE of this program as a standalone program.

See Also:
Constant Field Values
Method Detail

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

GNU Prolog for Java