package fape.core.planning.preprocessing;


import planstack.anml.model.abs.AbstractAction;

/**
 * An action an might support an open goal.
 *
 * The action might be given a decomposition to apply
 */
public class SupportingAction {
    public int decID;
    public final AbstractAction absAct;

    public SupportingAction(AbstractAction aa, int decID) {
        this.absAct = aa;
        this.decID = decID;
    }
    public SupportingAction(AbstractAction aa) {
        this.absAct = aa;
        this.decID = -1;
    }

    public boolean mustBeDecomposed() { return decID != -1; }
    public int getDecID() { return decID; }
}
@@ -622,10 +622,378 @@
 decID; %7D
+%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if(o instanceof SupportingAction) %7B%0A            return ((SupportingAction) o).absAct.equals(this.absAct) && ((SupportingAction) o).decID == this.decID;%0A        %7D else %7B%0A            return false;%0A        %7D%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return this.absAct.hashCode() + decID;%0A    %7D
 %0A%7D

Implement equals() and hashCode() for supporting actions.