public class FlatProd extends FlatPred
| Modifier and Type | Field and Description |
|---|---|
protected Bounds |
bounds_
The most recent bounds information.
|
| Constructor and Description |
|---|
FlatProd(List<net.sourceforge.czt.z.ast.ZName> baseSets,
net.sourceforge.czt.z.ast.ZName s)
Creates a new instance of FlatUnion
|
| 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)
TODO: could implement a reverse mode as well, but rarely useful.
|
protected List<EvalSet> |
findSets(Envir env)
Helper method to search for all the base sets.
|
boolean |
inferBounds(Bounds bnds)
This calculates the maximum and estimated size of the cartesian
product from the maximum and estimated sizes of the base sets.
|
boolean |
nextEvaluation()
Generates the next solution that satisfies this predicate.
|
String |
toString()
A default implementation of toString.
|
freeVars, getArgs, getEnvir, getLastArg, getMode, indent, modeAllDefined, modeCollection, modeFunction, modeOneOutput, printArg, printBinOp, printLastArg, printName, printQuant, setMode, startEvaluationprotected Bounds bounds_
public FlatProd(List<net.sourceforge.czt.z.ast.ZName> baseSets, net.sourceforge.czt.z.ast.ZName s)
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()
FlatPrednextEvaluation in class FlatPredprotected List<EvalSet> findSets(Envir env)
public String toString()
FlatPredpublic <R> R accept(net.sourceforge.czt.util.Visitor<R> visitor)
FlatPredCopyright © 2003–2016 Community Z Tools Project. All rights reserved.