|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hammurapi.eventbus.tests.familyties.rules.FamilyTiesRules
com.hammurapi.eventbus.tests.familyties.rules.SecondaryRules
public class SecondaryRules
Infers aunt, uncle, cousin, niece, nephew
| Constructor Summary | |
|---|---|
SecondaryRules()
|
|
| Method Summary | |
|---|---|
Cousin |
infer(Aunt aunt,
Parent parent)
Another way to infer cousin to demonstrate mutiple derivations |
Uncle |
infer(Brother brother,
Parent parent)
Brother of parent is uncle. |
Cousin |
infer(Cousin cousin)
If A is a cousin of B then B is a cousin of A |
Niece |
infer(Daughter daughter,
Sibling sibling)
Daughter of sibling is niece. |
void |
infer(FamilyTiesEventDispatchContext dispatchContext,
Child child1,
Child child2,
Sibling sibling)
Infers cousin as a child or parent's sibling. |
Uncle |
infer(Husband husband,
Aunt aunt)
Husband of aunt is uncle. |
Aunt |
infer(Sister sister,
Parent parent)
Sister of parent is aunt. |
Nephew |
infer(Son son,
Sibling sibling)
Son of sibling is nephew. |
Cousin |
infer(Uncle uncle,
Parent parent)
Another way to infer cousin to demonstrate mutiple derivations |
Aunt |
infer(Wife wife,
Uncle uncle)
Wife of uncle is aunt. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecondaryRules()
| Method Detail |
|---|
public void infer(FamilyTiesEventDispatchContext dispatchContext,
Child child1,
Child child2,
Sibling sibling)
public Cousin infer(Cousin cousin)
cousin -
public Cousin infer(Aunt aunt,
Parent parent)
aunt - child -
public Cousin infer(Uncle uncle,
Parent parent)
uncle - child -
public Aunt infer(Sister sister,
Parent parent)
sister - parent -
public Aunt infer(Wife wife,
Uncle uncle)
sister - parent -
public Uncle infer(Brother brother,
Parent parent)
sister - parent -
public Uncle infer(Husband husband,
Aunt aunt)
sister - parent -
public Niece infer(Daughter daughter,
Sibling sibling)
public Nephew infer(Son son,
Sibling sibling)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||