
net.sf.tweety.arg.aspic.reasoner.ModuleBasedAspicReasoner Maven / Gradle / Ivy
/*
* This file is part of "TweetyProject", a collection of Java libraries for
* logical aspects of artificial intelligence and knowledge representation.
*
* TweetyProject is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see .
*
* Copyright 2018 The TweetyProject Team
*/
package net.sf.tweety.arg.aspic.reasoner;
import net.sf.tweety.arg.aspic.syntax.AspicArgumentationTheory;
import net.sf.tweety.arg.dung.reasoner.AbstractExtensionReasoner;
import net.sf.tweety.arg.dung.syntax.DungTheory;
import net.sf.tweety.logics.commons.syntax.interfaces.Invertable;
/**
* Slightly optimised reasoner for ASPIC. It first computes the syntactic module of the ASPIC theory and then
* constructs an AAF from that module (instead of the whole ASPIC theory).
*
* @author Matthias Thimm
*
* @param the type of formulas
*/
public class ModuleBasedAspicReasoner extends AbstractAspicReasoner {
/**
* Creates a new instance
* @param aafReasoner Underlying reasoner for AAFs.
*/
public ModuleBasedAspicReasoner(AbstractExtensionReasoner aafReasoner) {
super(aafReasoner);
}
/* (non-Javadoc)
* @see net.sf.tweety.arg.aspic.reasoner.AbstractAspicReasoner#getDungTheory(net.sf.tweety.arg.aspic.syntax.AspicArgumentationTheory, net.sf.tweety.logics.commons.syntax.interfaces.Invertable)
*/
@Override
public DungTheory getDungTheory(AspicArgumentationTheory aat, T query) {
AspicArgumentationTheory module = new AspicArgumentationTheory(aat.getRuleFormulaGenerator());
module.addAll(aat.getSyntacticModule(query));
return module.asDungTheory();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy