org.problets.domain.model.variable
Class AccessVarModel

java.lang.Object
  extended by org.problets.domain.model.DomainModel
      extended by org.problets.domain.model.variable.AbstractVarModel
          extended by org.problets.domain.model.variable.AccessVarModel
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
PtrModel, RefVarModel

public abstract class AccessVarModel
extends AbstractVarModel

Base class for PtrModel and RefVarModel - both access variables

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
AccessVarModel(java.lang.String inputType)
           
 
Method Summary
 void addToAssignees(java.lang.String template, ActivationRecord activationRecord)
          Creates any random objects on RHS of initialization or assignment and adds variables on RHS to the list of objects to which the access variable points - so that these objects can be displayed in the drop-down menu for the access variable
 java.util.Vector getAssignees()
          Returns a vector of all the variables and anonymous variables to which this pointer points over the course of a program - Called by ActivationRecord.getAllPointees()
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.problets.domain.model.variable.AbstractVarModel
clone, explainObject, explainProcess, getAllocated, getAssigned, getCode, getDeclared, getMetaDataType, getName, getPossibleErrors, getType, getValue, getValueDifference, print, resetAllocated, resetDeclared, resetFlags, setAllocated, setDeclared, setValue
 
Methods inherited from class org.problets.domain.model.DomainModel
getId, getIdName, grade
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessVarModel

public AccessVarModel(java.lang.String inputType)
Method Detail

getAssignees

public java.util.Vector getAssignees()
Returns a vector of all the variables and anonymous variables to which this pointer points over the course of a program - Called by ActivationRecord.getAllPointees()


addToAssignees

public void addToAssignees(java.lang.String template,
                           ActivationRecord activationRecord)
Creates any random objects on RHS of initialization or assignment and adds variables on RHS to the list of objects to which the access variable points - so that these objects can be displayed in the drop-down menu for the access variable


main

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