org.problets.domain.model.datatype
Class CShort

java.lang.Object
  extended by org.problets.domain.model.DomainModel
      extended by org.problets.domain.model.datatype.Value
          extended by org.problets.domain.model.datatype.CInteger
              extended by org.problets.domain.model.datatype.CSigned
                  extended by org.problets.domain.model.datatype.CShort
All Implemented Interfaces:
java.lang.Cloneable

public class CShort
extends CSigned
implements java.lang.Cloneable

CShort Class to wrap C++ short integer values

Author:
Amruth Kumar

Field Summary
static int MAXIMUM
           
static int METADATATYPE
           
static int MINIMUM
           
 
Fields inherited from class org.problets.domain.model.datatype.Value
IDENTITY, UNASSIGNED_VALUE
 
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, 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
CShort(int inValue)
           
CShort(java.lang.String inValue)
           
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this object
static java.lang.String getRandomValue()
          Returns a random short value
 
Methods inherited from class org.problets.domain.model.datatype.CInteger
equals, generateRandomValue, getBitValue, getBitValue, getBitValue, getBooleanValue, getDoubleValue, getIntegerValue
 
Methods inherited from class org.problets.domain.model.datatype.Value
compatible, equals, getCorrectValue, getCorrectValue, getCorrectValue, getMetaDataType, getValue, print, setValue, setValue, setValue, setValue, setValue, toString
 
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

MINIMUM

public static final int MINIMUM
See Also:
Constant Field Values

MAXIMUM

public static final int MAXIMUM
See Also:
Constant Field Values

METADATATYPE

public static final int METADATATYPE
See Also:
Constant Field Values
Constructor Detail

CShort

public CShort(java.lang.String inValue)

CShort

public CShort(int inValue)
Method Detail

clone

public java.lang.Object clone()
Returns a clone of this object

Overrides:
clone in class DomainModel

getRandomValue

public static java.lang.String getRandomValue()
Returns a random short value