public class ListOfParam extends DefaultConstraintParam<List<Object>>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canBeEmpty |
protected int |
depth |
protected BtrpOperand.Type |
type |
| Constructor and Description |
|---|
ListOfParam(String n,
BtrpOperand.Type t)
Make a new parameter for a simple set, possibly empty, of elements.
|
ListOfParam(String n,
int d,
BtrpOperand.Type t,
boolean e)
Make a new set parameter
|
| Modifier and Type | Method and Description |
|---|---|
String |
fullSignature()
Get the signature of the parameter including the parameter name.
|
boolean |
isCompatibleWith(BtrPlaceTree t,
BtrpOperand o)
Check if a given operand is compatible with this parameter.
|
String |
prettySignature()
Get the signature of the parameter without the parameter name.
|
List<Object> |
transform(SatConstraintBuilder cb,
BtrPlaceTree tree,
BtrpOperand op)
Transform an operand into the right btrplace parameter.
|
getNameprotected boolean canBeEmpty
protected BtrpOperand.Type type
protected int depth
public ListOfParam(String n, BtrpOperand.Type t)
n - the parameter namet - the type of the element inside the setpublic ListOfParam(String n, int d, BtrpOperand.Type t, boolean e)
n - the parameter named - the set deptht - the type of the elements inside the sete - true to allow empty sets.public String prettySignature()
ConstraintParamprettySignature in interface ConstraintParam<List<Object>>prettySignature in class DefaultConstraintParam<List<Object>>public String fullSignature()
ConstraintParamfullSignature in interface ConstraintParam<List<Object>>fullSignature in class DefaultConstraintParam<List<Object>>public List<Object> 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.