public class ScreenedRemainderSets extends RemainderSets<net.sf.tweety.lp.asp.syntax.ASPRule>
| Constructor and Description |
|---|
ScreenedRemainderSets(net.sf.tweety.lp.asp.syntax.Program p,
net.sf.tweety.lp.asp.syntax.Program r,
net.sf.tweety.lp.asp.reasoner.ASPSolver solver)
Creates a new set of screened remainder sets of program p that all contain
the screened rules r.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<net.sf.tweety.lp.asp.syntax.Program> |
asPrograms()
Returns this set of remainder sets as a collection of programs where
each program contains exactly the rules of one remainder set.
|
net.sf.tweety.lp.asp.syntax.Program |
getScreen()
Returns the screened rules that are contained in every remainder set.
|
net.sf.tweety.lp.asp.syntax.Program |
getSourceBeliefBase()
Returns the original program p for which this set represents the
set of remainder sets.
|
static void |
main(String[] args)
Simple test case taken from [1]
|
add, clear, clone, contains, isEmpty, iterator, remove, size, spliteratorequals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArrayparallelStream, removeIf, streampublic ScreenedRemainderSets(net.sf.tweety.lp.asp.syntax.Program p,
net.sf.tweety.lp.asp.syntax.Program r,
net.sf.tweety.lp.asp.reasoner.ASPSolver solver)
p - an asp-program for which the screened remainder sets are calculatedr - an asp-program representing the set of rules, that have to be contained in every remainder set. Has to be a subset of psolver - an asp-solverSolverExceptionpublic net.sf.tweety.lp.asp.syntax.Program getSourceBeliefBase()
getSourceBeliefBase in class RemainderSets<net.sf.tweety.lp.asp.syntax.ASPRule>public net.sf.tweety.lp.asp.syntax.Program getScreen()
public Collection<net.sf.tweety.lp.asp.syntax.Program> asPrograms()
public static void main(String[] args) throws net.sf.tweety.lp.asp.parser.ParseException
args - net.sf.tweety.lp.asp.parser.ParseExceptionSolverExceptionCopyright © 2019. All rights reserved.