/*
@license.text@
 */
package com.hammurapi.reasoning.tutorial.rules;

import com.hammurapi.reasoning.spi.Condition;
import com.hammurapi.reasoning.spi.Infer;
import com.hammurapi.reasoning.tutorial.objectmodel.Child;
import com.hammurapi.reasoning.tutorial.objectmodel.Daughter;

public class DaughterRule {
	
	@Infer	
	public Daughter infer(
			@Condition("!(arg instanceof com.hammurapi.reasoning.tutorial.objectmodel.Daughter) && !arg.getSubject().isMale()") Child child
	) {
		return new Daughter(child.getSubject(), child.getObject());
	}
}
