import edu.neu.ccs.gui.*; import edu.neu.ccs.jpf.*; import java.awt.*; import java.util.*; /** * Contains tests for the sets and filters exercise. * @author *** YOUR NAME HERE *** */ public class SetsAndFiltersTests extends SetsAndFiltersBase { /** Starts the application. */ public static void main(String[] args) { new SetsAndFiltersTests(); }; ///////////////////// // YOUR TESTS HERE // ///////////////////// /** Filter that removes half of the shapes from the set. */ AShapeFilter removeAboutHalf = new AShapeFilter() { public boolean filter(AShape aShape) { return (Math.random() < 0.5); } }; /** * Applies a filter to the set that removes * about half of the shapes from the set. */ public void RemoveAboutHalf() { setView.applyToModel(removeAboutHalf); } /////////////////////// // YOUR FILTERS HERE // /////////////////////// }