|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.AbstractFunctionInterp blog.distrib.ListInterp
public class ListInterp
An interpretation for a Boolean function symbol, specified by a list of tuples for which the function returns true. The first parameter to ListInterp is the arity of the tuples, i.e., the number of arguments to the function. If the arity is k, then the remaining parameters are interpreted in groups of k, as k-tuples for which the function returns true. The function returns false for all other tuples.
Constructor Summary | |
---|---|
ListInterp(int arity)
Creates a new ListInterp object with an empty list of tuples on which the function returns true. |
|
ListInterp(java.util.List params)
Creates a new ListInterp object with a specified list of tuples on which the function returns true. |
Method Summary | |
---|---|
void |
add(java.util.List args)
Adds the given argument tuple to the list of tuples on which the function returns true. |
java.util.Set |
getInverseTuples(java.lang.Object value)
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 ListInterp(int arity)
public ListInterp(java.util.List params)
params
- List whose first element is an Integer k, and
whose remaining elements are interpreted in groups
of k, as tuples of function arguments.Method Detail |
---|
public void add(java.util.List args)
java.lang.IllegalArgumentException
- if the size of args
does not equal the arity passed
to this object's constructorpublic java.lang.Object getValue(java.util.List args)
FunctionInterp
public java.util.Set getInverseTuples(java.lang.Object value)
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 |