|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of RunEnv in org.problets.domain.model |
---|
Methods in org.problets.domain.model that return RunEnv | |
---|---|
RunEnv |
CodeModel.getStepRunEnv()
Returns a reference to the run time environment for stepping through a code |
Uses of RunEnv in org.problets.domain.model.control |
---|
Methods in org.problets.domain.model.control with parameters of type RunEnv | |
---|---|
ExecutionStatus |
ControlModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public void explainProcess(Vector explanation, Vector errors, int lineNumber); Generate the explanation for the control object |
Uses of RunEnv in org.problets.domain.model.control.abstraction |
---|
Methods in org.problets.domain.model.control.abstraction with parameters of type RunEnv | |
---|---|
ExecutionStatus |
StatementSequence.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
|
ExecutionStatus |
Statement.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
|
ExecutionStatus |
Program.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
Get super classes to explain execution of all the statements. |
ExecutionStatus |
Block.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
Get super classes to explain execution of all the statements. |
ExecutionStatus |
Scope.newFunctionCall(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int codeLineNumber,
boolean stepFlag)
Calls the function and adds its explanation, output and errors to the respective vectors. |
Uses of RunEnv in org.problets.domain.model.control.iteration |
---|
Methods in org.problets.domain.model.control.iteration with parameters of type RunEnv | |
---|---|
ExecutionStatus |
ForLoopModel.explainInitial(RunEnv runEnv,
Behavior behavior,
boolean stepFlag,
int lineNumber)
public void explainInitial(Vector explanation, Vector errors, int lineNumber); This function handles explaining any declarations, initializations, or assignments in the for loop header |
ExecutionStatus |
WhileModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public void explainProcess(Vector explanation, Vector errors) This function generates the explanation of the code for the student. |
ExecutionStatus |
IWhileModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public void explainProcess(Vector explanation, Vector errors, String occasion, int lineNumber); This function generates the explanation of the code for the student. |
ExecutionStatus |
IForLoopModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public void explainProcess(Vector explanation, Vector errors, String occasion, int lineNumber); This function generates the explanation of the code for the student. |
ExecutionStatus |
IDoWhileModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public void explainProcess(Vector explanation, Vector errors, String occasion, int lineNumber); This function generates the explanation of the code for the student. |
ExecutionStatus |
ForLoopModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public void explainProcess(Vector explanation, OutputStream output, Vector errors) This function generates the explanation of the code for the student. |
ExecutionStatus |
DoWhileModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public void explainProcess(Vector explanation, Vector errors) This function generates the explanation of the code for the student. |
ExecutionStatus |
ForLoopModel.explainUpdate(RunEnv runEnv,
Behavior behavior,
int lineNumber)
public void explainUpdate(Vector explanation, Vector errors, int lineNumber); This function handles explaining any update that occurs in the for loop header |
Uses of RunEnv in org.problets.domain.model.control.selection |
---|
Methods in org.problets.domain.model.control.selection with parameters of type RunEnv | |
---|---|
ExecutionStatus |
SwitchModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public int explainProcess( RunEnv runEnv, Behavior behavior, boolean stepFlag) Extracts the cases from the caseVector and sends it to the explainProcess of CaseModel so that CaseModel can explain the case. |
ExecutionStatus |
IfModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public void explainProcess(Vector explanation, OutputStream output, Vector errors) |
ExecutionStatus |
IfElseModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public void explainProcess(Vector explanation, OutputStream output, Vector errors) |
ExecutionStatus |
CaseModel.explainProcess(RunEnv runEnv,
Behavior behavior,
boolean stepFlag)
public int explainProcess( RunEnv runEnv, Behavior behavior, boolean stepFlag) Single case is checked and explained if it is correct |
Uses of RunEnv in org.problets.domain.model.expression |
---|
Methods in org.problets.domain.model.expression with parameters of type RunEnv | |
---|---|
Value |
Expression.evaluate(RunEnv runEnv,
Behavior behavior,
int codeLineNumber,
boolean stepFlag)
Called by expressions in code - ensures function calls are properly handled |
void |
Expression.explainPrinting(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int event,
int lineNumber,
boolean abbreviate)
Method to explain expression in an output statement - assume this happens only in code, not standalone |
void |
Expression.explainProcess(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int event,
int lineNumber,
boolean abbreviate)
Explains the execution of expressions in CODE, not standalone expressions. |
Uses of RunEnv in org.problets.domain.model.implement |
---|
Methods in org.problets.domain.model.implement with parameters of type RunEnv | |
---|---|
void |
ActivationRecord.explainProcess(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int event,
int lineNumber)
Explains the event that occurs during the execution of statement on line lineNumber |
Uses of RunEnv in org.problets.domain.model.variable |
---|
Methods in org.problets.domain.model.variable with parameters of type RunEnv | |
---|---|
void |
VarModel.explainProcess(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int event,
int lineNumber)
|
void |
RefVarModel.explainProcess(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int event,
int lineNumber)
|
void |
PtrModel.explainProcess(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int event,
int lineNumber)
For each step (e.g., print), If the step has been properly set up, (e.g., pointer points to a var which is initialized) Gives the full-fledged explanation Else, (e.g., pointer is not yet assigned, is out of scope, not yet declared, etc.) Gives an "Attempt was made" explanation |
void |
AnonVarModel.explainProcess(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int event,
int lineNumber)
|
abstract void |
AbstractVarModel.explainProcess(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int event,
int lineNumber)
|
Uses of RunEnv in org.problets.domain.model.variable.aggregate |
---|
Methods in org.problets.domain.model.variable.aggregate with parameters of type RunEnv | |
---|---|
void |
ErrorVarModel.explainProcess(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int event,
int lineNumber)
Executes a statement and provides an explanation based on what type of statement was executed. |
void |
ArrayModel.explainProcess(RunEnv runEnv,
Behavior behavior,
java.lang.String statement,
int event,
int lineNumber)
Executes a statement and provides an explanation based on what type of statement was executed. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |