public class FlatPowerSet extends FlatPred
| Constructor and Description |
|---|
FlatPowerSet(net.sourceforge.czt.z.ast.ZName baseSet,
net.sourceforge.czt.z.ast.ZName set)
Creates a FlatPowerSet object.
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(net.sourceforge.czt.util.Visitor<R> visitor)
Calls visitor.visitPred (preferably) or visitor.visitTerm.
|
Mode |
chooseMode(Envir env)
Chooses the mode in which the predicate can be evaluated.
|
boolean |
inferBounds(Bounds bnds)
Adds this power set into the Bounds information.
|
boolean |
nextEvaluation()
Does the actual evaluation
|
Iterator<net.sourceforge.czt.z.ast.Expr> |
subsetIterator(net.sourceforge.czt.z.ast.ZName element) |
String |
toString()
A default implementation of toString.
|
freeVars, getArgs, getEnvir, getLastArg, getMode, indent, modeAllDefined, modeCollection, modeFunction, modeOneOutput, printArg, printBinOp, printLastArg, printName, printQuant, setMode, startEvaluationpublic FlatPowerSet(net.sourceforge.czt.z.ast.ZName baseSet,
net.sourceforge.czt.z.ast.ZName set)
baseSet - the underlying set, from which all subsets will be taken.set - the name of the resulting set of subsets.public boolean inferBounds(Bounds bnds)
inferBounds in class FlatPredbnds - The database of lower and upper bounds for integer variables.The default implementation infers nothing and returns false.
public Mode chooseMode(Envir env)
chooseMode in class FlatPredpublic boolean nextEvaluation()
nextEvaluation in class FlatPredpublic String toString()
FlatPredpublic <R> R accept(net.sourceforge.czt.util.Visitor<R> visitor)
FlatPredpublic Iterator<net.sourceforge.czt.z.ast.Expr> subsetIterator(net.sourceforge.czt.z.ast.ZName element)
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.