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:
getRuntimeContextin interfaceIConstraintEvaluationContext
-
getQueryAnalyzer
- Specified by:
getQueryAnalyzerin interfaceIConstraintEvaluationContext
-
getConstraint
Description copied from interface:IConstraintEvaluationContextGet the constraint to be evaluated- Specified by:
getConstraintin interfaceIConstraintEvaluationContext
-
getFreeVariables
Description copied from interface:IConstraintEvaluationContextUnbound variables at the time of evaluating the constraint- Specified by:
getFreeVariablesin interfaceIConstraintEvaluationContext
-
getBoundVariables
Description copied from interface:IConstraintEvaluationContextBound variables at the time of evaluating the constraint- Specified by:
getBoundVariablesin interfaceIConstraintEvaluationContext
-
getSameWithDifferentBindings
-
getCost
public double getCost() -
getCategory
-
toString
-
resultProviderAccess
Deprecated.- Specified by:
resultProviderAccessin interfaceIConstraintEvaluationContext
-
resultProviderRequestor
- Specified by:
resultProviderRequestorin interfaceIConstraintEvaluationContext
-
resultProviderRequestor()