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
-
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:SIPS
Arrange the bodies of a rule. Returnsnull
if it cannot be arranged.- Specified by:
orderBodies
in 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
null
if no reordering is possible with this SIPS - Throws:
RewriterException
- if an error occurs
-