package org.eclipse.viatra.solver.data.query.building; import java.util.List; import java.util.Map; import java.util.Set; public class PredicateAtom implements DNFAtom{ private DNFPredicate referred; private List substitution; private boolean positive; private boolean transitive; public PredicateAtom(boolean positive, boolean transitive, DNFPredicate referred, List substitution) { this.positive = positive; this.referred = referred; this.substitution = substitution; this.transitive = transitive; } public DNFPredicate getReferred() { return referred; } public void setReferred(DNFPredicate referred) { this.referred = referred; } public List getSubstitution() { return substitution; } public void setSubstitution(List substitution) { this.substitution = substitution; } public boolean isPositive() { return positive; } public void setPositive(boolean positive) { this.positive = positive; } public boolean isTransitive() { return transitive; } public void setTransitive(boolean transitive) { this.transitive = transitive; } @Override public void unifyVariables(Map variables) { for(int i = 0; i variables) { DNFAtom.addToCollection(variables, substitution); } }