Class OppositeRelationTranslator
java.lang.Object
tools.refinery.store.reasoning.translator.opposite.OppositeRelationTranslator
- All Implemented Interfaces:
ModelStoreConfiguration,PartialRelationRewriter
public class OppositeRelationTranslator
extends Object
implements ModelStoreConfiguration, PartialRelationRewriter
-
Constructor Summary
ConstructorsConstructorDescriptionOppositeRelationTranslator(PartialRelation linkType, PartialRelation opposite) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ModelStoreBuilder storeBuilder) rewriteLiteral(Set<Variable> positiveVariables, AbstractCallLiteral literal, Modality modality, Concreteness concreteness) <T> Term<T> rewriteTerm(AbstractCallTerm<T> term, Modality modality, Concreteness concreteness)
-
Constructor Details
-
OppositeRelationTranslator
-
-
Method Details
-
apply
- Specified by:
applyin interfaceModelStoreConfiguration
-
rewriteLiteral
public List<Literal> rewriteLiteral(Set<Variable> positiveVariables, AbstractCallLiteral literal, Modality modality, Concreteness concreteness) - Specified by:
rewriteLiteralin interfacePartialRelationRewriter
-
rewriteTerm
public <T> Term<T> rewriteTerm(AbstractCallTerm<T> term, Modality modality, Concreteness concreteness) - Specified by:
rewriteTermin interfacePartialRelationRewriter
-