|
||||||||||
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
org.problets.domain.model.expression.node.operator.arithmetic.JModulus
org.problets.domain.model.expression.node.operator.arithmetic.VBModulus
public class VBModulus
To represent modulus operator in VB
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 | |
---|---|
VBModulus()
|
Method Summary | |
---|---|
Value |
getCoercedValue(Value leftValue,
Value rightValue,
java.lang.String result)
Since VB returns an integer result if the denominator evenly divides the numerator even though the two operands are real, we extend getCoercedValue() to handle this |
java.lang.String |
getQualifiedLearningObject()
Method returns the name of the operator, disambiguated enough so that it can be easily credited in the student model. |
Methods inherited from class org.problets.domain.model.expression.node.operator.arithmetic.BaseModulus |
---|
evaluate, explain, getLocalLearningObjectives |
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 VBModulus()
Method Detail |
---|
public java.lang.String getQualifiedLearningObject()
getQualifiedLearningObject
in class Arithmetic
public Value getCoercedValue(Value leftValue, Value rightValue, java.lang.String result)
getCoercedValue
in class Arithmetic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |