Class EqualSIPS
java.lang.Object
com.semedy.reasoner.rewriter.sips.EqualSIPS
- All Implemented Interfaces:
SIPS
This SIPS does not change the sequence of rule bodies.
- Author:
- Juergen Baier
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorderBodies(Rule rule, BitSet groundVars, long[] groundValues, IntensionalDB IDB, ExtensionalDB[] edbs, SymbolTable symbols) Arrange the bodies of a rule.
-
Field Details
-
INSTANCE
-
-
Method Details
-
orderBodies
public WeightedLiteral[] orderBodies(Rule rule, BitSet groundVars, long[] groundValues, IntensionalDB IDB, ExtensionalDB[] edbs, SymbolTable symbols) throws RewriterException Description copied from interface:SIPSArrange the bodies of a rule. Returnsnullif it cannot be arranged.- Specified by:
orderBodiesin interfaceSIPS- 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 occurs
-