org.problets.domain.model.expression.node.operand
Class FunctionCallOperand

java.lang.Object
  extended by org.problets.domain.model.DomainModel
      extended by org.problets.domain.model.expression.node.NodeModel
          extended by org.problets.domain.model.expression.node.operand.Operand
              extended by org.problets.domain.model.expression.node.operand.FunctionCallOperand
All Implemented Interfaces:
java.lang.Cloneable

public class FunctionCallOperand
extends Operand

FunctionCallOperand To hold a function call operand

Since:
7 / 19 / 2009
Author:
Amruth Kumar

Field Summary
 
Fields inherited from class org.problets.domain.model.DomainModel
BOOLEAN, BREAKPOINT, CHARACTER, DOUBLE_PRECISION_REAL, ERROR_TYPE, EVAL_STATUS, expACTION, expASSIGNMENT, expAUTO_DEALLOCATION, expCALL, expCONDITION, expDECLARATION, expDEREFERENCING, expDYNAMIC_ALLOCATION, expDYNAMIC_ALLOCATION_INITIALIZATION, expDYNAMIC_DEALLOCATION, expELSE_CLAUSE, expERROR, expEXECUTION, expIF_CLAUSE, expINITIALIZATION, expINPUT, expPARAMETER_PASSING, expPRINT, expQUESTIONABLE, expREFERENCING, expRETURN, expRUNTIME_ERROR, expSEMANTIC_ERROR, expSYNTAX_ERROR, expUPDATE, IDENTITY, MAX_OBJECT_IDENTITY, MIN_OBJECT_IDENTITY, QUADRUPLE_PRECISION_REAL, RUNTIME_ERROR, SEMANTIC_ERROR, SIGNED_INTEGER, SIGNED_LONG, SIGNED_SHORT, SINGLE_PRECISION_REAL, SYNTAX_ERROR, UNDEFINED_TYPE, UNSIGNED_INTEGER, UNSIGNED_LONG, UNSIGNED_SHORT, WARNING
 
Constructor Summary
FunctionCallOperand(java.lang.String callString)
           
 
Method Summary
 java.lang.Object clone()
          Returns a bitwise/shallow copy of this node
 java.lang.String getTemplate()
           
 boolean grade(java.lang.String actualTemplate, java.lang.String studentCode, java.util.Vector explanation)
          Grades the studentCode according to the actualTemplate, returns true if correct, and false otherwise
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.problets.domain.model.expression.node.NodeModel
classifyNodes, contentEquals, contentEquals, evaluate, explain, getContent, getLeftChild, getNonRecursiveContent, getOrder, getPosition, getRecursiveContent, getRightChild, getSideEffects, getStudentCopy, getValue, insertInOrder, recursiveSetValue, 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
 

Constructor Detail

FunctionCallOperand

public FunctionCallOperand(java.lang.String callString)
Method Detail

clone

public java.lang.Object clone()
Returns a bitwise/shallow copy of this node

Overrides:
clone in class NodeModel

getTemplate

public java.lang.String getTemplate()

grade

public boolean grade(java.lang.String actualTemplate,
                     java.lang.String studentCode,
                     java.util.Vector explanation)
Grades the studentCode according to the actualTemplate, returns true if correct, and false otherwise

Overrides:
grade in class Operand

main

public static void main(java.lang.String[] args)