com.hammurapi.reasoning.tutorial.rules
Class SiblingRules
java.lang.Object
com.hammurapi.reasoning.tutorial.rules.SiblingRules
public class SiblingRules
- extends Object
|
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 |
SiblingRules
public SiblingRules()
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 -