public class ScreenedRemainderSets extends RemainderSets<net.sf.tweety.lp.asp.syntax.Rule>
| 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.solver.Solver 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.solver.Solver solver)
throws net.sf.tweety.lp.asp.solver.SolverException
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-solvernet.sf.tweety.lp.asp.solver.SolverExceptionpublic net.sf.tweety.lp.asp.syntax.Program getSourceBeliefBase()
getSourceBeliefBase in class RemainderSets<net.sf.tweety.lp.asp.syntax.Rule>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, net.sf.tweety.lp.asp.solver.SolverException
args - net.sf.tweety.lp.asp.parser.ParseExceptionnet.sf.tweety.lp.asp.solver.SolverExceptionCopyright © 2018. All rights reserved.