public class FlatGivenSet extends FlatPred
| Constructor and Description |
|---|
FlatGivenSet(net.sourceforge.czt.z.ast.ZName set,
String name,
ZLive zlive) |
| 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)
Choose the mode that this predicate could use in this environment.
|
boolean |
contains(Object obj) |
boolean |
equals(Object obj)
To given sets are equal iff they are the same set.
|
double |
estSize()
Estimate the size of the set in the default environment.
|
double |
estSize(Envir env)
Estimate the size of the set in a given environment.
|
double |
estSubsetSize(Envir env,
net.sourceforge.czt.z.ast.ZName elem) |
double |
getApproxSize() |
BigInteger |
getLower()
The lower bound on numeric elements, if any, else null.
|
String |
getName()
The name of this given set.
|
BigInteger |
getUpper()
The upper bound on numeric elements, if any, else null.
|
BigInteger |
maxSize()
The maximum size of the set in the default environment.
|
boolean |
nextEvaluation()
Generates the next solution that satisfies this predicate.
|
protected net.sourceforge.czt.z.ast.Expr |
nextMember() |
int |
size()
Always throws an exception, since the size of given sets is unknown.
|
String |
toString()
A default implementation of toString.
|
freeVars, getArgs, getEnvir, getLastArg, getMode, indent, inferBounds, modeAllDefined, modeCollection, modeFunction, modeOneOutput, printArg, printBinOp, printLastArg, printName, printQuant, setMode, startEvaluationpublic double getApproxSize()
public String getName()
public boolean contains(Object obj)
public BigInteger getLower()
public BigInteger getUpper()
public BigInteger maxSize()
public double estSize()
public double estSize(Envir env)
public int size()
public double estSubsetSize(Envir env, net.sourceforge.czt.z.ast.ZName elem)
public boolean equals(Object obj)
public Mode chooseMode(Envir env)
FlatPredchooseMode in class FlatPredpublic boolean nextEvaluation()
FlatPrednextEvaluation in class FlatPredprotected net.sourceforge.czt.z.ast.Expr nextMember()
public String toString()
FlatPredpublic <R> R accept(net.sourceforge.czt.util.Visitor<R> visitor)
FlatPredCopyright © 2003–2016 Community Z Tools Project. All rights reserved.