Interface SIPS
- All Known Implementing Classes:
EqualSIPS,TopDownSIPS
public interface SIPS
Sideways information passing strategy. A SIPS reorders body literals of a rule e.g. in order to optimize performance.
- Author:
- Juergen Angele
-
Method Summary
Modifier and TypeMethodDescriptionorderBodies(Rule rule, BitSet groundVars, long[] groundValues, IntensionalDB idb, ExtensionalDB[] edbs, SymbolTable symbols) Arrange the bodies of a rule.
-
Method Details
-
orderBodies
WeightedLiteral[] orderBodies(Rule rule, BitSet groundVars, long[] groundValues, IntensionalDB idb, ExtensionalDB[] edbs, SymbolTable symbols) throws RewriterException, IOException, SymboltableException, SemReasonerException Arrange the bodies of a rule. Returnsnullif it cannot be arranged.- Parameters:
rule- the rulegroundVars- the topdown instantiated variables of the rulegroundValues- variable instantiationsidb- the intensional databaseedbs- the extensional databasessymbols- the symbol table- Returns:
- the weighted literals or
nullif no reordering is possible with this SIPS - Throws:
RewriterException- if an error occursIOExceptionSymboltableExceptionSemReasonerException
-