|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.problets.services.ProblemServer
public class ProblemServer
Provides the code, explanation, output and errors for a given topic and problem number
Constructor Summary | |
---|---|
ProblemServer()
|
Method Summary | |
---|---|
static void |
getCodeProblem(java.lang.String topic,
int numberSolvedSoFar,
java.util.Vector codeText,
Behavior behavior)
Provides the code and behavior of the (n+1)th code-analysis problem on a topic. |
static void |
getExpressionProblem(java.lang.String topic,
int numberSolvedSoFar,
java.util.Vector codeText,
Behavior behavior)
Provides the code and behavior of the (n+1)th expression-evaluation problem on a topic. |
static void |
getProblem(java.lang.String topic,
int numberSolvedSoFar,
java.util.Vector codeText,
Behavior behavior)
Provides the code and behavior of the (n+1)th problem on a topic. |
static void |
main(java.lang.String[] args)
Generates the (n+1)th problem on the specified topic, and prints its code, explanation, output and errors. |
static boolean |
setLanguage(java.lang.String inLanguage)
Sets the language for which problems should be generated |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProblemServer()
Method Detail |
---|
public static void getProblem(java.lang.String topic, int numberSolvedSoFar, java.util.Vector codeText, Behavior behavior)
topic
- String representing the topic for which a problem is desirednumberSolvedSoFar
- The number of problems that have been provided so far to the user (and should be skipped before generating the next problem)codeText
- Vector that will contain the code for the problembehavior
- Behavior object that holds the behavior of the problempublic static void getCodeProblem(java.lang.String topic, int numberSolvedSoFar, java.util.Vector codeText, Behavior behavior)
topic
- String representing the topic for which a problem is desirednumberSolvedSoFar
- The number of problems that have been provided so far to the user (and should be skipped before generating the next problem)codeText
- Vector that will contain the code for the problembehavior
- Behavior object that holds the behavior of the problempublic static void getExpressionProblem(java.lang.String topic, int numberSolvedSoFar, java.util.Vector codeText, Behavior behavior)
topic
- String representing the topic for which a problem is desirednumberSolvedSoFar
- The number of problems that have been provided so far to the user (and should be skipped before generating the next problem)codeText
- Vector that will contain the code for the problembehavior
- Behavior object that holds the behavior of the problempublic static boolean setLanguage(java.lang.String inLanguage)
inLanguage
- String representing the programming language for which problems are desired
public static void main(java.lang.String[] args)
args
- Command line arguments, the first being the topic and the second being the number of problems generated so far
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |