public abstract class DefaultSatConstraintBuilder extends Object implements SatConstraintBuilder
SatConstraintBuilder.| Modifier and Type | Field and Description |
|---|---|
protected ConstraintParam<?>[] |
params
The constraint parameters.
|
| Constructor and Description |
|---|
DefaultSatConstraintBuilder(String n,
ConstraintParam<?>[] ps)
Make a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkConformance(BtrPlaceTree t,
List<BtrpOperand> ops)
Check if the provided parameters match the constraint signature
|
String |
getFullSignature()
Get the full signature of the constraint, including the parameter name.
|
String |
getIdentifier()
Get the identifier of the constraint.
|
ConstraintParam<?>[] |
getParameters()
Get the constraint parameters.
|
String |
getSignature()
Get the signature of the constraint.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildConstraintprotected final ConstraintParam<?>[] params
public DefaultSatConstraintBuilder(String n, ConstraintParam<?>[] ps)
n - the constraint nameps - the expected parameterspublic ConstraintParam<?>[] getParameters()
SatConstraintBuildergetParameters in interface SatConstraintBuilderpublic String getIdentifier()
SatConstraintBuildergetIdentifier in interface SatConstraintBuilderpublic String getSignature()
SatConstraintBuildergetSignature in interface SatConstraintBuilderpublic String getFullSignature()
SatConstraintBuildergetFullSignature in interface SatConstraintBuilderpublic boolean checkConformance(BtrPlaceTree t, List<BtrpOperand> ops)
t - the constraint tokenops - the constraint argumentstrue iff the arguments match the constraint signatureCopyright © 2016 University of Nice-Sophia Antipolis. All Rights Reserved.