import edu.neu.ccs.demeterf.*; /** * This class counts the number of variables appeared in the given formula * */ abstract class GenericCombine_IDb_add2 extends IDb { // GENERIC combine methods, up to 2 parts // 2 parts Float combine(Object o, Float n1, Float n2){ return n1+n2; } // 1 part Float combine(Object o, Float n1){ return n1; } // 0 part Float combine(Object o){ return 0.0f; } }