public abstract class Explorer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
dimensions
Number of dimensions for exploration.
|
protected java.lang.String |
exploredPointsFileName
Filename for explored points file.
|
protected java.io.FileWriter |
explorePointsfile
Log file containing all explored points.
|
protected ExplorationParameters |
explParams
Exploration parameters.
|
private boolean |
filesOpened
Opened log files for writing or not.
|
private java.text.NumberFormat |
formatter
Format to generate the time for Log files.
|
protected java.io.FileWriter |
modelFile
File which contains models for every SAT point.
|
protected java.lang.String |
modelFileName
Filename for models file.
|
protected java.lang.String |
outputDir
Output directory to generate the log files.
|
protected java.io.FileWriter |
paretoPointsfile
Log file containing Pareto Points (final result).
|
protected java.lang.String |
paretoPointsFileName
Filename for Pareto points file.
|
protected int |
perQuerytimeOutInSeconds
Time out in Seconds for each query.
|
protected java.io.FileWriter |
satPointsfile
Log file containing all SAT points.
|
protected java.lang.String |
satPointsFileName
Filename for SAT points file.
|
protected java.io.FileWriter |
timedOutPointsfile
Log file containing all TIMED OUT points.
|
protected java.lang.String |
timedOutPointsFileName
Filename for TIMED OUT points file.
|
protected double |
timeTakenForCurrentQuery
Time required for current SMT query.
|
protected double |
totalExplTime
Current Exploration time (in milliseconds).
|
protected int |
totalQueryTimeOutInSeconds
Global time out in seconds for the exploration.
|
protected java.io.FileWriter |
unSatPointsfile
Log file containing all UNSAT points.
|
protected java.lang.String |
unsatPointsFileName
Filename for UNSAT points file.
|
Constructor and Description |
---|
Explorer(java.lang.String opDir,
int dimensions,
int perQueryTimeOutSeconds,
int totalTimeOutInSeconds,
ExplorationParameters explorationParams)
Initialize Explorer class object.
|
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
private void |
openFiles()
Open log files for writing.
|
protected void |
outputToFile(java.io.FileWriter fstreamOutput,
java.lang.String msg)
Write message to the log file.
|
protected Z3Solver.SatResult |
smtQuery(int[] constraints)
Perform the SMT query
|
private boolean filesOpened
protected final int dimensions
protected int perQuerytimeOutInSeconds
protected int totalQueryTimeOutInSeconds
protected double timeTakenForCurrentQuery
protected double totalExplTime
protected ExplorationParameters explParams
protected java.lang.String outputDir
protected java.io.FileWriter modelFile
protected java.io.FileWriter explorePointsfile
protected java.io.FileWriter unSatPointsfile
protected java.io.FileWriter satPointsfile
protected java.io.FileWriter paretoPointsfile
protected java.io.FileWriter timedOutPointsfile
protected java.lang.String modelFileName
protected java.lang.String exploredPointsFileName
protected java.lang.String unsatPointsFileName
protected java.lang.String satPointsFileName
protected java.lang.String paretoPointsFileName
protected java.lang.String timedOutPointsFileName
private java.text.NumberFormat formatter
public Explorer(java.lang.String opDir, int dimensions, int perQueryTimeOutSeconds, int totalTimeOutInSeconds, ExplorationParameters explorationParams)
opDir
- output directorydimensions
- total number of dimensions in explorationperQueryTimeOutSeconds
- per SMT query time out in secondstotalTimeOutInSeconds
- global time out in second for entire explorationexplorationParams
- exploration parametersprivate void openFiles()
protected void outputToFile(java.io.FileWriter fstreamOutput, java.lang.String msg)
fstreamOutput
- the file to writemsg
- string to writepublic void finalize()
finalize
in class java.lang.Object
protected Z3Solver.SatResult smtQuery(int[] constraints)
constraints
- constraints of the query for every dimension