org.sat4j
Class BasicLauncher<T extends ISolver>

java.lang.Object
  extended by org.sat4j.AbstractLauncher
      extended by org.sat4j.BasicLauncher<T>
All Implemented Interfaces:
Serializable

public class BasicLauncher<T extends ISolver>
extends AbstractLauncher

Very simple launcher, to be used during the SAT competition or the SAT race for instance.

Author:
daniel
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sat4j.AbstractLauncher
ANSWER_PREFIX, COMMENT_PREFIX, reader, shutdownHook, SOLUTION_PREFIX, solver
 
Constructor Summary
BasicLauncher(ASolverFactory<T> factory)
           
 
Method Summary
protected  ISolver configureSolver(String[] args)
           
protected  Reader createReader(ISolver theSolver, String problemname)
           
protected  String getInstanceName(String[] args)
           
static void main(String[] args)
          Lance le prouveur sur un fichier Dimacs.
 void usage()
           
 
Methods inherited from class org.sat4j.AbstractLauncher
displayHeader, displayLicense, displayResult, getBeginTime, getExitCode, getLogWriter, getReader, log, readProblem, run, setExitCode, setLogWriter, setSilent, showAvailableSolvers, solve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicLauncher

public BasicLauncher(ASolverFactory<T> factory)
Method Detail

main

public static void main(String[] args)
Lance le prouveur sur un fichier Dimacs.

Parameters:
args - doit contenir le nom d'un fichier Dimacs, eventuellement compress?.

configureSolver

protected ISolver configureSolver(String[] args)
Specified by:
configureSolver in class AbstractLauncher

createReader

protected Reader createReader(ISolver theSolver,
                              String problemname)
Specified by:
createReader in class AbstractLauncher

usage

public void usage()
Specified by:
usage in class AbstractLauncher

getInstanceName

protected String getInstanceName(String[] args)
Specified by:
getInstanceName in class AbstractLauncher


Copyright © 2010 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.