biz.hammurapi.rules.tutorial.rules
Class GrandRules

java.lang.Object
  extended by biz.hammurapi.config.ComponentBase
      extended by biz.hammurapi.rules.AbstractRule
          extended by biz.hammurapi.rules.Rule
              extended by biz.hammurapi.rules.tutorial.rules.GrandRules
All Implemented Interfaces:
biz.hammurapi.config.Component, biz.hammurapi.config.Context, biz.hammurapi.dispatch.InvocationTarget, biz.hammurapi.metrics.MeasurementCollector, biz.hammurapi.metrics.MeasurementConsumer, biz.hammurapi.rules.Constants

public class GrandRules
extends biz.hammurapi.rules.Rule


Nested Class Summary
 
Nested classes/interfaces inherited from class biz.hammurapi.rules.Rule
biz.hammurapi.rules.Rule.AcceptInfo, biz.hammurapi.rules.Rule.ChangeDetector
 
Field Summary
 
Fields inherited from class biz.hammurapi.config.ComponentBase
owner
 
Fields inherited from interface biz.hammurapi.rules.Constants
COLLECTION_MANAGER, DESCRIPTION, HANDLE_MANAGER, KNOWLEDGE_COMPACTOR, NAME, NEGATOR_CLASS, OBJECT_FILTER, RETAIN_NEGATORS, RULES, URI_DIRECT, URI_PROPERTY, WORKER_REF
 
Constructor Summary
GrandRules()
           
 
Method Summary
 GrandFather infer(Child child, Father father)
          Father of parent is grandparent.
 GrandMother infer(Child child, Mother mother)
          Mother of parent is grandmother.
 GrandDaughter infer(Daughter daughter, Parent parent)
          Daughter of child is a granddaughter.
 GrandSon infer(Son son, Parent parent)
          Son of child is a grandson.
 
Methods inherited from class biz.hammurapi.rules.Rule
getInvocationCounter, getInvocationHandlers, getRemoveHandlers, newChangeDetector, post, remove, reset, resetInvocationCounter, setMethodFactTypes, setMethodFactTypes, setMethodFactTypes, setMethodFactTypes, start, update
 
Methods inherited from class biz.hammurapi.rules.AbstractRule
getCollection, getDescription, getName, setDescription, setName, stop, toString
 
Methods inherited from class biz.hammurapi.config.ComponentBase
addMeasurement, get, getChild, getMeasurementConsumer, getOwner, getOwner, setMeasurementConsumer, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GrandRules

public GrandRules()
Method Detail

infer

public GrandSon infer(Son son,
                      Parent parent)
Son of child is a grandson.

Parameters:
son -
parent -
Returns:

infer

public GrandDaughter infer(Daughter daughter,
                           Parent parent)
Daughter of child is a granddaughter.

Parameters:
daughter -
parent -
Returns:

infer

public GrandFather infer(Child child,
                         Father father)
Father of parent is grandparent.

Parameters:
child -
father -
Returns:

infer

public GrandMother infer(Child child,
                         Mother mother)
Mother of parent is grandmother.

Parameters:
child -
mother -
Returns:


Copyright © 2006 Hammurapi Group. All Rights Reserved.