org.sat4j.sat
Class Lanceur

java.lang.Object
  extended by org.sat4j.AbstractLauncher
      extended by org.sat4j.sat.Lanceur
All Implemented Interfaces:
Serializable, ICDCLLogger

public class Lanceur
extends AbstractLauncher
implements ICDCLLogger

See Also:
Serialized Form

Field Summary
protected  ASolverFactory<ISolver> factory
           
 
Fields inherited from class org.sat4j.AbstractLauncher
ANSWER_PREFIX, beginTime, COMMENT_PREFIX, exitCode, out, prime, reader, shutdownHook, silent, SOLUTION_PREFIX, solver
 
Fields inherited from interface org.sat4j.minisat.core.ICDCLLogger
CONSOLE
 
Constructor Summary
Lanceur()
           
 
Method Summary
protected  ICDCL configureSolver(String[] args)
          Configure the solver according to the command line parameters.
static org.apache.commons.cli.Options createCLIOptions()
           
protected  Reader createReader(ISolver theSolver, String problemname)
           
protected  void displayAnswer()
           
 void displayLicense()
           
protected  void displayResult()
           
protected  String getInstanceName(String[] args)
           
static void main(String[] args)
           
protected  IProblem readProblem(String problemname)
          Reads a problem file from the command line.
 void run(String[] args)
           
protected  void solve(IProblem problem)
           
 void usage()
           
 
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
 

Field Detail

factory

protected ASolverFactory<ISolver> factory
Constructor Detail

Lanceur

public Lanceur()
Method Detail

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
Description copied from class: AbstractLauncher
Reads a problem file from the command line.

Overrides:
readProblem in class AbstractLauncher
Parameters:
problemname - the fully qualified name of the problem.
Returns:
a reference to the problem to solve
Throws:
FileNotFoundException - if the file is not found
ParseFormatException - if the problem is not expressed using the right format
IOException - for other IO problems
ContradictionException - if the problem is found trivially unsat

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.