Class CommonIdentityReference
java.lang.Object
edu.udel.cis.vsl.sarl.object.common.CommonSymbolicObject
edu.udel.cis.vsl.sarl.expr.common.HomogeneousExpression<SymbolicObject>
edu.udel.cis.vsl.sarl.expr.common.CommonReferenceExpression
edu.udel.cis.vsl.sarl.expr.common.CommonIdentityReference
- All Implemented Interfaces:
ReferenceExpression,SymbolicExpression,SymbolicObject
The identity reference I, which is characterized by the property that
dereference(value, I)==value for any symbolic expression value.
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.udel.cis.vsl.sarl.IF.expr.ReferenceExpression
ReferenceExpression.ReferenceKindNested classes/interfaces inherited from interface edu.udel.cis.vsl.sarl.IF.expr.SymbolicExpression
SymbolicExpression.SymbolicOperatorNested classes/interfaces inherited from interface edu.udel.cis.vsl.sarl.IF.object.SymbolicObject
SymbolicObject.SymbolicObjectKind -
Field Summary
Fields inherited from class edu.udel.cis.vsl.sarl.expr.common.HomogeneousExpression
debug -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true, as this is the identity reference, overriding the default false.Method that returns ReferenceKind.intsize()Methods inherited from class edu.udel.cis.vsl.sarl.expr.common.CommonReferenceExpression
isArrayElementReference, isNullReference, isOffsetReference, isTupleComponentReference, isUnionMemberReferenceMethods inherited from class edu.udel.cis.vsl.sarl.expr.common.HomogeneousExpression
argument, arguments, atomString, canonizeChildren, containsQuantifier, containsSubobject, getArguments, getFreeVars, isFalse, isNull, isNumeric, isOne, isTrue, isZero, numArguments, operator, printCompressedTree, symbolicObjectKind, toStringBuffer, toStringBuffer1, toStringBufferLong, typeMethods inherited from class edu.udel.cis.vsl.sarl.object.common.CommonSymbolicObject
equals, getOrder, hashCode, id, isCanonic, setInCanonic, setOrder, toStringMethods inherited from interface edu.udel.cis.vsl.sarl.IF.expr.SymbolicExpression
argument, atomString, getArguments, getFreeVars, isFalse, isNull, isNumeric, isOne, isTrue, isZero, numArguments, operator, printCompressedTree, typeMethods inherited from interface edu.udel.cis.vsl.sarl.IF.object.SymbolicObject
containsQuantifier, containsSubobject, equals, getOrder, hashCode, id, isCanonic, setInCanonic, setOrder, symbolicObjectKind, toString, toStringBuffer, toStringBufferLong
-
Method Details
-
isIdentityReference
public boolean isIdentityReference()Returns true, as this is the identity reference, overriding the default false.- Specified by:
isIdentityReferencein interfaceReferenceExpression- Overrides:
isIdentityReferencein classCommonReferenceExpression- Returns:
trueiff the kind of this reference isReferenceExpression.ReferenceKind.IDENTITY.
-
referenceKind
Method that returns ReferenceKind.- Returns:
- the kind of this reference
-
size
public int size()- Specified by:
sizein interfaceSymbolicExpression- Overrides:
sizein classHomogeneousExpression<SymbolicObject>- Returns:
- the size of this
SymbolicExpression. The size of a symbolic expression is the total number of "node"s in the "tree". A symbolic expression is essentially a tree of (sub-)symbolic expressions.
-