Package net.sf.tweety.arg.adf.sat
Class NativeLingelingSolver.LingelingSolverState
- java.lang.Object
-
- net.sf.tweety.arg.adf.sat.NativeLingelingSolver.LingelingSolverState
-
- All Implemented Interfaces:
java.lang.AutoCloseable,SatSolverState
- Enclosing class:
- NativeLingelingSolver
private class NativeLingelingSolver.LingelingSolverState extends java.lang.Object implements SatSolverState
-
-
Field Summary
Fields Modifier and Type Field Description private longhandleprivate java.util.Map<Proposition,java.lang.Integer>propsprivate booleansatCalledFlag which indicates if sat was already called at least once.private NativeLingelingSolversolver
-
Constructor Summary
Constructors Constructor Description LingelingSolverState(NativeLingelingSolver solver)
-
Method Summary
Modifier and Type Method Description booleanadd(java.util.Collection<Disjunction> clauses)booleanadd(Disjunction clause)voidclose()longgetHandle()PossibleWorldgetPossibleWorld()booleanisTrue(Proposition p)booleanremove(Disjunction clause)voidsetSatCalled()
-
-
-
Field Detail
-
props
private java.util.Map<Proposition,java.lang.Integer> props
-
handle
private long handle
-
solver
private NativeLingelingSolver solver
-
satCalled
private boolean satCalled
Flag which indicates if sat was already called at least once.
-
-
Constructor Detail
-
LingelingSolverState
public LingelingSolverState(NativeLingelingSolver solver)
-
-
Method Detail
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getHandle
public long getHandle()
- Specified by:
getHandlein interfaceSatSolverState
-
getPossibleWorld
public PossibleWorld getPossibleWorld()
-
isTrue
public boolean isTrue(Proposition p)
- Specified by:
isTruein interfaceSatSolverState
-
add
public boolean add(java.util.Collection<Disjunction> clauses)
- Specified by:
addin interfaceSatSolverState
-
add
public boolean add(Disjunction clause)
- Specified by:
addin interfaceSatSolverState
-
setSatCalled
public void setSatCalled()
- Specified by:
setSatCalledin interfaceSatSolverState
-
remove
public boolean remove(Disjunction clause)
- Specified by:
removein interfaceSatSolverState
-
-