package OT; import java.util.*; /** * Abstract Gen operation. * @version 1999-04-01 * @author Andrea Heiberg, University of Arizona */ public abstract class Operation { protected boolean canCreateGaps = true; protected boolean canCreateOCPViolation = true; protected int appliedCounter = 0; protected Feature feature; protected FeatureType featureType; public Operation(Feature feature) { this.feature = feature; this.featureType = feature.featureType; } //end constructor abstract void apply(Representation rep); abstract boolean test(Representation rep); }