|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of AbstractVarModel in org.problets.domain.model.expression.node.operand |
---|
Methods in org.problets.domain.model.expression.node.operand that return AbstractVarModel | |
---|---|
AbstractVarModel |
VarOperand.getClone()
Returns a clone of the variable that is this operand for purposes of re-creating the current expression as student's attempted answer in StudentNodeView. |
AbstractVarModel |
VarOperand.getVarReference()
Returns a reference to the variable that is this operand. |
Constructors in org.problets.domain.model.expression.node.operand with parameters of type AbstractVarModel | |
---|---|
VarOperand(AbstractVarModel inValue)
|
Uses of AbstractVarModel in org.problets.domain.model.expression.node.operator.assignment |
---|
Methods in org.problets.domain.model.expression.node.operator.assignment that return AbstractVarModel | |
---|---|
AbstractVarModel |
PrefixAssignment.getClone()
If right is a VarOperand, get its varClone Else, call getClone recursively on the right operand, In either case, add getIncrement() to the value of the clone, and return it. |
AbstractVarModel |
Assignable.getClone()
Returns a clone of the variable to which a value is being assigned |
AbstractVarModel |
PrefixAssignment.getVarReference()
Returns a reference to the variable that is this operand. |
AbstractVarModel |
Assignable.getVarReference()
Returns the variable to which a value can be assigned |
Uses of AbstractVarModel in org.problets.domain.model.expression.step |
---|
Constructors in org.problets.domain.model.expression.step with parameters of type AbstractVarModel | |
---|---|
AssignmentStep(AbstractVarModel inVariable)
If only the variable is passed, assume the side effect is not correct |
|
AssignmentStep(AbstractVarModel inVariable,
boolean inCorrect)
|
Uses of AbstractVarModel in org.problets.domain.model.implement |
---|
Methods in org.problets.domain.model.implement that return AbstractVarModel | |
---|---|
AbstractVarModel |
DataTraceItem.getVariable()
Returns a reference to the variable |
AbstractVarModel |
ActivationRecord.getVariable(int index,
boolean searchParents,
boolean searchChildren)
Returns a reference to the variable of given index by searching this activation record, followed by activation records of ancestral scopes, followed by the activation records of nested scopes searchParents = false; searchChildren = false; Only check this scope object for the variable searchParents = false; searchChildren = true; NOT LIKELY USAGE - except when the procedure calls itself recursively when the flags are true & true searchParents = true; searchChildren = false; Check this scope object, and all its ancestors searchParents = true; searchChildren = true; Check this scope object, its static parents and children - Used to create buggy code. |
Methods in org.problets.domain.model.implement with parameters of type AbstractVarModel | |
---|---|
void |
Behavior.addDataTraceItem(AbstractVarModel dataObject,
int lineNumber,
java.lang.String template)
Adds a new data trace item to the dataTrace vector and sets its previous tell if the item is an ask item |
static DataTraceItem |
DataTraceItem.getDataTraceItem(AbstractVarModel inVariable,
int inLineNumber,
java.lang.String template)
|
void |
DataTraceItem.setVariable(AbstractVarModel a_var)
Sets the variable of this item |
void |
ActivationRecord.setVariable(AbstractVarModel variable,
int index)
Inserts a variable to the activation record at the given index |
Constructors in org.problets.domain.model.implement with parameters of type AbstractVarModel | |
---|---|
AskItem(AbstractVarModel inVariable,
int inLineNumber)
|
|
DataTraceItem(AbstractVarModel inVariable,
int inLineNumber)
|
|
TellItem(AbstractVarModel inVariable,
int inLineNumber)
|
Uses of AbstractVarModel in org.problets.domain.model.variable |
---|
Subclasses of AbstractVarModel in org.problets.domain.model.variable | |
---|---|
class |
AccessVarModel
Base class for PtrModel and RefVarModel - both access variables |
class |
AnonVarModel
VarModel Model of a scalar variable |
class |
PtrModel
Model for a pointer variable |
class |
RefVarModel
Reference variable |
class |
VarModel
VarModel class maintains a scalar variable object. |
Methods in org.problets.domain.model.variable that return AbstractVarModel | |
---|---|
AbstractVarModel |
RefVarModel.getLValue()
Returns a reference to the object to which the pointer points |
AbstractVarModel |
AbstractVarView.getModel()
|
Methods in org.problets.domain.model.variable with parameters of type AbstractVarModel | |
---|---|
java.util.Vector |
AbstractVarModel.getValueDifference(AbstractVarModel observedModel,
int line)
Creates a ValueDifference object with the value of this VarModel and the value of the observedModel. |
void |
AbstractVarView.setModel(AbstractVarModel inModel)
Sets the model that this view displays |
void |
PtrModel.setValue(AbstractVarModel in_value,
Scope in_scope)
Sets the value of the pointer - value may be either a VarModel or AnonVarModel object - hence AbstractVarModel parameter |
Constructors in org.problets.domain.model.variable with parameters of type AbstractVarModel | |
---|---|
AbstractVarView(java.awt.event.ActionListener inViewParent,
AbstractVarModel inModel,
java.lang.String inInstructions,
boolean inEditable)
Creates the abstract variable view |
Uses of AbstractVarModel in org.problets.domain.model.variable.aggregate |
---|
Subclasses of AbstractVarModel in org.problets.domain.model.variable.aggregate | |
---|---|
class |
AggregateVarModel
Class: AggregateVarModel Purpose: This class serves as the base class for aggregate variables including ArrayModel and StructureVarModel |
class |
ArrayModel
Class: ArrayModel Purpose: Represents an array of AbstractVarModel objects |
class |
ErrorVarModel
Class: ErrorVarModel Purpose: This class acts as a place holder for non-existent variables. |
Methods in org.problets.domain.model.variable.aggregate that return AbstractVarModel | |
---|---|
AbstractVarModel |
ArrayModel.getElement(java.lang.String subscriptStringTemplate,
ActivationRecord activationRecord)
returns the element at the given string of subscripts. |
AbstractVarModel |
ArrayTableModel.getVariableAt(int row,
int col)
Returns a variable from this class's ArrayModel reference at the given row and column. |
Methods in org.problets.domain.model.variable.aggregate with parameters of type AbstractVarModel | |
---|---|
java.util.Vector |
ArrayModel.getValueDifference(AbstractVarModel currentModel,
int line)
Returns a vector of ValueDifference objects containing the corresponding elements of this array and the currentModel array. |
Uses of AbstractVarModel in org.problets.domain.viz.data |
---|
Methods in org.problets.domain.viz.data with parameters of type AbstractVarModel | |
---|---|
abstract AbstractVarViz |
AggregateBaseViz.findInAncestors(AbstractVarModel inModel)
Recursively look for the variable in the ancestors of this block |
abstract AbstractVarViz |
AggregateBaseViz.findInDescendants(AbstractVarModel inModel)
Recursively look for the variable in the descendants of this block |
Uses of AbstractVarModel in org.problets.domain.viz.data.control.abstraction |
---|
Methods in org.problets.domain.viz.data.control.abstraction with parameters of type AbstractVarModel | |
---|---|
AbstractVarViz |
BlockViz.findInAncestors(AbstractVarModel inModel)
Given a variable, looks for it in this block and its parents until found |
AbstractVarViz |
BlockViz.findInDescendants(AbstractVarModel inModel)
Given a variable to which a pointer is pointing, look for it in the embedded scopes and return its visualization, if found |
Uses of AbstractVarModel in org.problets.domain.viz.data.implement |
---|
Methods in org.problets.domain.viz.data.implement with parameters of type AbstractVarModel | |
---|---|
AbstractVarViz |
ActivationRecordViz.find(AbstractVarModel inModel)
Searches for the variable in this activation record (only). |
AbstractVarViz |
StackViz.findInAncestors(AbstractVarModel inModel)
We will ask data space to find the variable in the heap and global areas |
AbstractVarViz |
HeapViz.findInAncestors(AbstractVarModel inModel)
Recursively look for the variable in the stack and global areas |
AbstractVarViz |
GlobalViz.findInAncestors(AbstractVarModel inModel)
Recursively look for the variable in the stack and heap |
AbstractVarViz |
DataSpaceViz.findInAncestors(AbstractVarModel inModel)
Recursively look for the variable in the ancestors of this block - Not to be used by anyone |
AbstractVarViz |
StackViz.findInDescendants(AbstractVarModel inModel)
Since the stack does not have its own activation record, we will pass the request down to the last function still on the stack. |
AbstractVarViz |
HeapViz.findInDescendants(AbstractVarModel inModel)
Given a variable to which a pointer is pointing, look for it in the heap and return its visualization, if found |
AbstractVarViz |
DataSpaceViz.findInDescendants(AbstractVarModel inModel)
Recursively look for the variable in the descendants of this block - Not to be used by anyone |
AbstractVarViz |
DataSpaceViz.findInGlobal(AbstractVarModel inModel)
|
AbstractVarViz |
DataSpaceViz.findInHeap(AbstractVarModel inModel)
|
AbstractVarViz |
DataSpaceViz.findInStack(AbstractVarModel inModel)
|
AbstractVarViz |
ActivationRecordViz.findRecursively(AbstractVarModel inModel)
Looks for the variable in this activation record, as well as the descendants and parents of its block, and returns the viz object |
Uses of AbstractVarModel in org.problets.domain.viz.data.variable |
---|
Methods in org.problets.domain.viz.data.variable that return AbstractVarModel | |
---|---|
AbstractVarModel |
AbstractVarViz.getModel()
|
Constructors in org.problets.domain.viz.data.variable with parameters of type AbstractVarModel | |
---|---|
AbstractVarViz(AbstractVarModel inModel)
|
|
PtrViz(AbstractVarModel inModel,
ActivationRecordViz inActRecViz)
|
|
VarViz(AbstractVarModel inModel)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |