|
||||||||||
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.assignment.Assignment
public class Assignment
To hold all constants specific to assignment operators
Field Summary | |
---|---|
static int |
TOTAL_OPERATORS
|
Fields inherited from class org.problets.domain.model.expression.node.operator.Operator |
---|
INCORRECT_OPERAND_COUNT |
Method Summary | |
---|---|
void |
addSideEffects(java.util.Vector inSideEffectVector)
Adds side-effects specified by the user to this operator |
java.lang.Object |
clone()
Returns a bitwise/shallow copy of this node |
Value |
evaluate()
Method to detect any errors before subclasses evaluate expressions Not to be used by client. |
java.util.Vector |
getSideEffects()
Returns the side effects for this nodemodel |
NodeModel |
getStudentCopy()
Method returns a copy of this node with only shareable values, resetting the others - Method used by StudentNodeModel to make a copy of the correct node for the student's answer |
Methods inherited from class org.problets.domain.model.expression.node.operator.Operator |
---|
coerceToReal, contentEquals, contentEquals, explain, getArity, getAssociativity, getLocalLearningObjectives, getOperatorType, getPrecedence, getQualifiedLearningObject, 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, 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.Object clone()
Operator
clone
in class Operator
public java.util.Vector getSideEffects()
getSideEffects
in class NodeModel
public NodeModel getStudentCopy()
getStudentCopy
in class Operator
public void addSideEffects(java.util.Vector inSideEffectVector)
public Value evaluate()
evaluate
in class Operator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |