|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.problets.domain.model.DomainModel
org.problets.domain.model.expression.node.NodeModel
org.problets.domain.model.expression.node.operator.Operator
org.problets.domain.model.expression.node.operator.arithmetic.Arithmetic
org.problets.domain.model.expression.node.operator.arithmetic.BaseModulus
public abstract class BaseModulus
To serve as the base class for CModulus and JModulus operators
| Field Summary | |
|---|---|
static java.lang.String |
SYMBOL
|
| Fields inherited from class org.problets.domain.model.expression.node.operator.arithmetic.Arithmetic |
|---|
TOTAL_OPERATORS |
| Fields inherited from class org.problets.domain.model.expression.node.operator.Operator |
|---|
INCORRECT_OPERAND_COUNT |
| Constructor Summary | |
|---|---|
BaseModulus()
|
|
| Method Summary | |
|---|---|
Value |
evaluate()
Checks that arithmetic operators are not applied to boolean operands in Java/C# |
void |
explain(java.util.Vector explanation,
java.util.Vector errors)
Textually explains the evaluation of the tree - as opposed to graphical explanation by the view |
void |
getLocalLearningObjectives(java.util.Vector learnObjVector)
Overrides Arithmetic.getLocalLearningObjectives() Accounts for Divide By Zero errors, Incorrect data type error, and Correct answer learning objective. |
| Methods inherited from class org.problets.domain.model.expression.node.operator.arithmetic.Arithmetic |
|---|
getCoercedValue, getQualifiedLearningObject |
| Methods inherited from class org.problets.domain.model.expression.node.operator.Operator |
|---|
clone, coerceToReal, contentEquals, contentEquals, getArity, getAssociativity, getOperatorType, getPrecedence, getStudentCopy, getSymbol, grade, locateOperator, main, recursiveContentEquals, recursiveSetValue |
| Methods inherited from class org.problets.domain.model.expression.node.NodeModel |
|---|
classifyNodes, getContent, getLeftChild, getNonRecursiveContent, getOrder, getPosition, getRecursiveContent, getRightChild, getSideEffects, getValue, insertInOrder, setLeftChild, setOrder, setPosition, setRightChild, setValue, shortCircuit, skip, subExpToString, toString, valueEquals |
| Methods inherited from class org.problets.domain.model.DomainModel |
|---|
getId, getIdName, grade |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SYMBOL
| Constructor Detail |
|---|
public BaseModulus()
| Method Detail |
|---|
public void getLocalLearningObjectives(java.util.Vector learnObjVector)
getLocalLearningObjectives in class Arithmeticpublic Value evaluate()
Arithmetic
evaluate in class Arithmetic
public void explain(java.util.Vector explanation,
java.util.Vector errors)
explain in class Arithmetic
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||