com.hammurapi.reasoning.tutorial.rules
Class SiblingRules

java.lang.Object
  extended by com.hammurapi.reasoning.tutorial.rules.SiblingRules

public class SiblingRules
extends Object


Constructor Summary
SiblingRules()
           
 
Method Summary
 void infer(Child child, Child anotherChild)
          If two children have common parent then they are siblings.
 Sibling infer(Sibling sibling)
          Male sibling is brother, female sibling is sister.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiblingRules

public SiblingRules()
Method Detail

infer

public Sibling infer(Sibling sibling)
Male sibling is brother, female sibling is sister. If A is a sibling of B then B is a sibling of A.

Parameters:
sibling -
Returns:
Brother or Sister.

infer

public void infer(Child child,
                  Child anotherChild)
If two children have common parent then they are siblings.

Parameters:
child -
anotherChild -