

package logic;



public class ModPredStrategy extends APredicate

{

 int factor; /**

  * @param factor 

  * @SBGen Constructor assigns factor

  */

 public ModPredStrategy(int factor)

 {

   // SBgen: Assign variable

  this.factor = factor;

 }





 /**

  * Returns true if the value is not evenly divided by the divisor.

  * @param dat1 Value to check..  Assumed to be an Integer

  * @param dat2 Divisor to check against.  Assumed to be an Integer

  * @return 

  */

 public IBoolean isTrue(Object dat)

 {

  return (BooleanFactory.Singleton.makeBoolean(((Integer) dat) % factor != 0));   

 }

}



