org.sat4j.sat
Class Lanceur
java.lang.Object
org.sat4j.AbstractLauncher
org.sat4j.sat.Lanceur
- All Implemented Interfaces:
- Serializable, ICDCLLogger
public class Lanceur
- extends AbstractLauncher
- implements ICDCLLogger
- See Also:
- Serialized Form
Fields inherited from class org.sat4j.AbstractLauncher |
ANSWER_PREFIX, beginTime, COMMENT_PREFIX, exitCode, out, prime, reader, shutdownHook, silent, SOLUTION_PREFIX, solver |
Methods inherited from class org.sat4j.AbstractLauncher |
displayHeader, getBeginTime, getExitCode, getLogWriter, getReader, log, setExitCode, setLogWriter, setSilent, showAvailableSolvers, showAvailableSolvers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.sat4j.minisat.core.ICDCLLogger |
log |
factory
protected ASolverFactory<ISolver> factory
Lanceur
public Lanceur()
main
public static void main(String[] args)
configureSolver
protected ICDCL configureSolver(String[] args)
- Configure the solver according to the command line parameters.
- Specified by:
configureSolver
in class AbstractLauncher
- Parameters:
args
- the command line
- Returns:
- a solver properly configured.
createReader
protected Reader createReader(ISolver theSolver,
String problemname)
- Specified by:
createReader
in class AbstractLauncher
displayLicense
public void displayLicense()
- Overrides:
displayLicense
in class AbstractLauncher
getInstanceName
protected String getInstanceName(String[] args)
- Specified by:
getInstanceName
in class AbstractLauncher
readProblem
protected IProblem readProblem(String problemname)
throws FileNotFoundException,
ParseFormatException,
IOException,
ContradictionException
- Overrides:
readProblem
in class AbstractLauncher
- Throws:
FileNotFoundException
ParseFormatException
IOException
ContradictionException
solve
protected void solve(IProblem problem)
throws TimeoutException
- Overrides:
solve
in class AbstractLauncher
- Throws:
TimeoutException
displayResult
protected void displayResult()
- Overrides:
displayResult
in class AbstractLauncher
displayAnswer
protected void displayAnswer()
run
public void run(String[] args)
- Overrides:
run
in class AbstractLauncher
usage
public void usage()
- Specified by:
usage
in class AbstractLauncher
createCLIOptions
public static org.apache.commons.cli.Options createCLIOptions()
Copyright © 2012 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.