Class PProject


  • public class PProject
    extends POperation
    Represents a projection of a single parent SubPlan onto a limited set of variables.

    May optionally prescribe an ordering of variables (List, as opposed to Set).

    • Constructor Detail

      • PProject

        public PProject​(java.util.Set<PVariable> toVariables)
      • PProject

        public PProject​(java.util.List<PVariable> toVariables)
    • Method Detail

      • getToVariables

        public java.util.Collection<PVariable> getToVariables()
      • isOrdered

        public boolean isOrdered()
      • numParentSubPlans

        public int numParentSubPlans()
        Specified by:
        numParentSubPlans in class POperation
        Returns:
        the number of SubPlans that must be specified as parents
      • checkConsistency

        public void checkConsistency​(SubPlan subPlan)
        Description copied from class: POperation
        Checks whether this constraint can be properly applied at the given SubPlan.
        Overrides:
        checkConsistency in class POperation
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object