com.hammurapi.reasoning.spi
Interface Superseder
public interface Superseder
Fact which supersedes another fact.
The superseding fact contains all the information which the superseded
fact contains and can be used in place of the superseded fact.
e.g. Male("John", "Smith") supersedes Person("John", "Smith")
Facts can implement this interface or be converted/adapted to the interface.
- Author:
- Pavel Vlasov
supersedes
boolean supersedes(Object subFact)
- Parameters:
subFact -
- Returns:
- true if this fact supersedes subFact and can replace the subFact
in the knowledge base.