org.problets.domain.model.control
Class ConditionControl

java.lang.Object
  extended by org.problets.domain.model.DomainModel
      extended by org.problets.domain.model.control.ControlModel
          extended by org.problets.domain.model.control.ConditionControl
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
AbstractLoopModel, Selection

public class ConditionControl
extends ControlModel

Serves as the base class for selection and iteration statements all of which have a condition

Author:
Amruth Kumar

Field Summary
static java.lang.String INCORRECT_TYPE
          Incorrect data type of condition - applies to Java, C#
 
Fields inherited from class org.problets.domain.model.control.ControlModel
ABORT_EXECUTION, BREAK_EXECUTION, CONTINUE_EXECUTION, END_EXECUTION, INFINITE_EXECUTION, RETURN_EXECUTION, RUN_TIME_ERROR_EXECUTION, SKIP_EXECUTION
 
Fields inherited from class org.problets.domain.model.DomainModel
BOOLEAN, BREAKPOINT, CHARACTER, DOUBLE_PRECISION_REAL, ERROR_TYPE, EVAL_STATUS, expACTION, expASSIGNMENT, expAUTO_DEALLOCATION, expCALL, expCONDITION, expDECLARATION, expDEREFERENCING, expDYNAMIC_ALLOCATION, expDYNAMIC_ALLOCATION_INITIALIZATION, expDYNAMIC_DEALLOCATION, expELSE_CLAUSE, expERROR, expEXECUTION, expIF_CLAUSE, expINITIALIZATION, expINPUT, expPARAMETER_PASSING, expPRINT, expQUESTIONABLE, expREFERENCING, expRETURN, expRUNTIME_ERROR, expSEMANTIC_ERROR, expSYNTAX_ERROR, expUPDATE, IDENTITY, MAX_OBJECT_IDENTITY, MIN_OBJECT_IDENTITY, QUADRUPLE_PRECISION_REAL, RUNTIME_ERROR, SEMANTIC_ERROR, SIGNED_INTEGER, SIGNED_LONG, SIGNED_SHORT, SINGLE_PRECISION_REAL, SYNTAX_ERROR, UNDEFINED_TYPE, UNSIGNED_INTEGER, UNSIGNED_LONG, UNSIGNED_SHORT, WARNING
 
Constructor Summary
ConditionControl(java.lang.String inTemplate)
           
 
Method Summary
 java.lang.String[] getPossibleErrors()
          Method to return errors for variables May want to post-process based on Student Model
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.problets.domain.model.control.ControlModel
explainProcess, getCode, getCodeLength, getName, getStartLineNumber
 
Methods inherited from class org.problets.domain.model.DomainModel
clone, getId, getIdName, grade
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCORRECT_TYPE

public static final java.lang.String INCORRECT_TYPE
Incorrect data type of condition - applies to Java, C#

See Also:
Constant Field Values
Constructor Detail

ConditionControl

public ConditionControl(java.lang.String inTemplate)
Method Detail

getPossibleErrors

public java.lang.String[] getPossibleErrors()
Description copied from class: ControlModel
Method to return errors for variables May want to post-process based on Student Model

Specified by:
getPossibleErrors in class ControlModel

main

public static void main(java.lang.String[] args)