|
||||||||||
| 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.logical.Logical
public class Logical
To hold all constants specific to arithmetic operators
| Field Summary | |
|---|---|
static int |
TOTAL_OPERATORS
|
| Fields inherited from class org.problets.domain.model.expression.node.operator.Operator |
|---|
INCORRECT_OPERAND_COUNT |
| Method Summary | |
|---|---|
java.lang.String |
getQualifiedLearningObject()
Method returns the name of the operator, disambiguated enough so that it can be easily credited in the student model. |
boolean |
shouldAddRightExplanation(boolean nonShortCircuitValue)
Determines whether the right explanation should be added or not, used by And, Or, AndView and OrView |
| Methods inherited from class org.problets.domain.model.expression.node.operator.Operator |
|---|
clone, coerceToReal, contentEquals, contentEquals, evaluate, explain, getArity, getAssociativity, getLocalLearningObjectives, 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 int TOTAL_OPERATORS
| Method Detail |
|---|
public java.lang.String getQualifiedLearningObject()
getQualifiedLearningObject in class Operatorpublic boolean shouldAddRightExplanation(boolean nonShortCircuitValue)
nonShortCircuitValue - The boolean value for which rhs is NOT short-circuited,
i.e., true for AND and false for OR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||