
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 ILogical isTrue(Object dat)
	{
		return (LogicFactory.Singleton().makeLogical(((Integer) dat).intValue () % factor != 0));   
	}
}

