Class PConstraintInfo
java.lang.Object
tools.refinery.interpreter.localsearch.planner.PConstraintInfo
- All Implemented Interfaces:
IConstraintEvaluationContext
Wraps a PConstraint together with information required for the planner. Currently contains information about the expected binding state of
the affected variables also called application condition, and the cost of the enforcement, based on the meta and/or the runtime context.
-
Constructor Summary
ConstructorsConstructorDescriptionPConstraintInfo
(PConstraint constraint, Set<PVariable> boundMaskVariables, Set<PVariable> freeMaskVariables, Set<PConstraintInfo> sameWithDifferentBindings, IQueryBackendContext context, ResultProviderRequestor resultRequestor, Function<IConstraintEvaluationContext, Double> costFunction) Instantiates the wrapper -
Method Summary
-
Constructor Details
-
PConstraintInfo
public PConstraintInfo(PConstraint constraint, Set<PVariable> boundMaskVariables, Set<PVariable> freeMaskVariables, Set<PConstraintInfo> sameWithDifferentBindings, IQueryBackendContext context, ResultProviderRequestor resultRequestor, Function<IConstraintEvaluationContext, Double> costFunction) Instantiates the wrapper- Parameters:
boundMaskVariables
- the bound variables in the operation maskfreeMaskVariables
- the free variables in the operation masksameWithDifferentBindings
- during the planning process, multiple operation adornments are considered for a constraint, so that it is represented by multiple plan infos. This parameter contains all plan infos that are for the same constraint, but with different adornmentcontext
- the query backend contextconstraintfor
- which the information is added and stored
-
-
Method Details
-
getRuntimeContext
- Specified by:
getRuntimeContext
in interfaceIConstraintEvaluationContext
-
getQueryAnalyzer
- Specified by:
getQueryAnalyzer
in interfaceIConstraintEvaluationContext
-
getConstraint
Description copied from interface:IConstraintEvaluationContext
Get the constraint to be evaluated- Specified by:
getConstraint
in interfaceIConstraintEvaluationContext
-
getFreeVariables
Description copied from interface:IConstraintEvaluationContext
Unbound variables at the time of evaluating the constraint- Specified by:
getFreeVariables
in interfaceIConstraintEvaluationContext
-
getBoundVariables
Description copied from interface:IConstraintEvaluationContext
Bound variables at the time of evaluating the constraint- Specified by:
getBoundVariables
in interfaceIConstraintEvaluationContext
-
getSameWithDifferentBindings
-
getCost
public double getCost() -
getCategory
-
toString
-
resultProviderAccess
Deprecated.- Specified by:
resultProviderAccess
in interfaceIConstraintEvaluationContext
-
resultProviderRequestor
- Specified by:
resultProviderRequestor
in interfaceIConstraintEvaluationContext
-
resultProviderRequestor()