| java.lang.Object biz.hammurapi.rules.Derivation
Derivation | public class Derivation implements DomSerializable,Serializable,Visualizable(Code) | | This class is a tracking element for inference process.
It is created by rules during inference process and attached to facts.
author: Pavel Vlasov |
Derivation | Derivation(Object target, Method method)(Code) | | Parameters: target - Parameters: method - |
addSourceFact | public synchronized void addSourceFact(Object fact)(Code) | | Adds fact to derivation.
If fact is instance of conclusion then its derivation depth becomes Max(ownDepth, conclusionDepth).
Parameters: fact - |
getDepth | public int getDepth()(Code) | | Derivation depth is the size of the longest of logical chains which lead to this derivation.
derivation depth |
getRuleFullName | public String getRuleFullName()(Code) | | Full rule name which includes class and method names and object hash code |
hashCode | public int hashCode()(Code) | | |
isDerivedFrom | public boolean isDerivedFrom(Object fact)(Code) | | |
negatedBy | public boolean negatedBy(Negator negator)(Code) | | Derivation is negated if any of its constituent facts in negated.
Parameters: negator - |
|
|