Class PApply
java.lang.Object
tools.refinery.interpreter.matchers.planning.operations.POperation
tools.refinery.interpreter.matchers.planning.operations.PApply
Represents a constraint application on a single parent SubPlan.
Either a "selection" filter operation according to a deferred PConstraint (or transform in case of eval/aggregate), or alternatively a shorthand for PJoin + a PEnumerate on the right input for an enumerable PConstraint.
WARNING: if there are coinciding variables in the variable tuple of the enumerable constraint, it is the responsibility of the compiler to check them for equality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkConsistency
(SubPlan subPlan) Checks whether this constraint can be properly applied at the given SubPlan.boolean
Set
<? extends PConstraint> Newly enforced constraintsint
hashCode()
int
Methods inherited from class tools.refinery.interpreter.matchers.planning.operations.POperation
toString
-
Constructor Details
-
PApply
-
-
Method Details
-
getPConstraint
-
getShortName
- Specified by:
getShortName
in classPOperation
-
getDeltaConstraints
Description copied from class:POperation
Newly enforced constraints- Specified by:
getDeltaConstraints
in classPOperation
-
numParentSubPlans
public int numParentSubPlans()- Specified by:
numParentSubPlans
in classPOperation
- Returns:
- the number of SubPlans that must be specified as parents
-
checkConsistency
Description copied from class:POperation
Checks whether this constraint can be properly applied at the given SubPlan.- Overrides:
checkConsistency
in classPOperation
-
hashCode
public int hashCode() -
equals
-