org.problets.domain.model.expression.node.student
Class MultiOperatorStudentNodeView
java.lang.Object
org.problets.domain.model.expression.node.NodeView
org.problets.domain.model.expression.node.student.StudentNodeView
org.problets.domain.model.expression.node.student.MultiOperatorStudentNodeView
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- BailedOutStudentNodeView
public class MultiOperatorStudentNodeView
- extends StudentNodeView
Serves as base class for BailedOutStudentNodeView and
ParenthesizedStudentNodeView, both of which deal with more than one operator
- Author:
- Amruth Kumar
Constructor Summary |
MultiOperatorStudentNodeView(java.util.Vector inOperatorsCovered,
java.util.Vector inOperandsCovered,
int inLeftX,
int inRightX,
int inOrder)
|
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
restoreAvailable(java.util.Vector operatorVector,
java.util.Vector operandVector)
Updates the operatorViewVector and operandViewVector
based on which operators and operands were used for this node
when this node is deleted from the student model |
void |
updateAvailable(java.util.Vector operatorVector,
java.util.Vector operandVector)
Updates the operatorViewVector and operandViewVector
based on which operators and operands were used for this node
when this node is added to the student model |
Methods inherited from class org.problets.domain.model.expression.node.NodeView |
classifyNodes, clone, explain, getBackupLeftX, getBackupRightX, getContent, getContentWidth, getCopyIfExists, getFontMetrics, getLeftChild, getLeftMax, getLeftMin, getLeftX, getNode, getNodeView, getRightChild, getRightMax, getRightMin, getRightX, getSideEffects, paintExpression, print, setLeftChild, setRightChild, toString, typeset |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MultiOperatorStudentNodeView
public MultiOperatorStudentNodeView(java.util.Vector inOperatorsCovered,
java.util.Vector inOperandsCovered,
int inLeftX,
int inRightX,
int inOrder)
updateAvailable
public void updateAvailable(java.util.Vector operatorVector,
java.util.Vector operandVector)
- Updates the operatorViewVector and operandViewVector
based on which operators and operands were used for this node
when this node is added to the student model
- Overrides:
updateAvailable
in class StudentNodeView
restoreAvailable
public void restoreAvailable(java.util.Vector operatorVector,
java.util.Vector operandVector)
- Updates the operatorViewVector and operandViewVector
based on which operators and operands were used for this node
when this node is deleted from the student model
- Overrides:
restoreAvailable
in class StudentNodeView
main
public static void main(java.lang.String[] args)