public class NumberParam extends DefaultConstraintParam<Number>
| Constructor and Description |
|---|
NumberParam(String n)
Make a new number parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCompatibleWith(BtrPlaceTree t,
BtrpOperand o)
Check if a given operand is compatible with this parameter.
|
Number |
transform(SatConstraintBuilder cb,
BtrPlaceTree tree,
BtrpOperand op)
Transform an operand into the right btrplace parameter.
|
fullSignature, getName, prettySignaturepublic NumberParam(String n)
n - the parameter valuepublic Number transform(SatConstraintBuilder cb, BtrPlaceTree tree, BtrpOperand op)
ConstraintParamcb - the associated constrainttree - the tree use to propagate errorsop - the operand to transformnull if the transformation is not possiblepublic boolean isCompatibleWith(BtrPlaceTree t, BtrpOperand o)
ConstraintParamt - the tree used to propagate errorso - the operand to testtrue iff the operand is compatibleCopyright © 2016 University of Nice-Sophia Antipolis. All Rights Reserved.