|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.AbstractFunctionInterp blog.ConstantInterp
public class ConstantInterp
Implementation of FunctionInterp for constants (zero-ary functions). In this case, the interpretation is specified by just a single value.
Constructor Summary | |
---|---|
ConstantInterp(java.util.List params)
Expects a single parameter, namely the function value. |
Method Summary | |
---|---|
java.util.Set |
getInverseTuples(java.lang.Object v)
Returns the set of argument tuples that yield the given value, if this set is finite and can be computed easily. |
java.lang.Object |
getValue(java.util.List args)
Returns the value of this function on the given tuple of arguments. |
Methods inherited from class blog.AbstractFunctionInterp |
---|
getInverseArgs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstantInterp(java.util.List params)
Method Detail |
---|
public java.lang.Object getValue(java.util.List args)
FunctionInterp
public java.util.Set getInverseTuples(java.lang.Object v)
AbstractFunctionInterp
This default implementation just returns null.
getInverseTuples
in interface FunctionInterp
getInverseTuples
in class AbstractFunctionInterp
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |