jInfer

cz.cuni.mff.ksi.jinfer.iss.experiments
Class Experiment

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.iss.experiments.Experiment

public class Experiment
extends Object

Class encapsulating an ID set search experiment. After all the input parameters are set and information about the system is collected, the ID set search is run and evaluated.


Constructor Summary
Experiment(ExperimentParameters params)
           
 
Method Summary
 void addListener(ExperimentListener el)
          Adds a "experiment finished" listener.
 double getAlpha()
           
 double getBeta()
           
 HeuristicResult getConstructionResult()
           
 String getCsv()
           
 long getGrammarTime()
           
 Quality getHighestQuality()
           
 Double getKnownOptimum()
           
 AMModel getModel()
           
 long getModelTime()
           
 int getPoolSize()
           
 QualityMeasurement getQualityMeasurement()
           
 String getReport()
          Returns a string report of this whole experiment, its setting and results.
 Pair<Boolean,String> getTerminationReason()
           
 long getTotalTime()
           
 String getWinner()
          Writes the best ID set.
 void run()
          Runs this experiment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Experiment

public Experiment(ExperimentParameters params)
Method Detail

getReport

public String getReport()
Returns a string report of this whole experiment, its setting and results.

Returns:
String report of this experiment.

getCsv

public String getCsv()

getWinner

public String getWinner()
Writes the best ID set.

Returns:
String representation of the best ID set in CSV format.

addListener

public void addListener(ExperimentListener el)
Adds a "experiment finished" listener.

Parameters:
el - Listener which will receive a notification when this experiment finishes.

run

public void run()
         throws InterruptedException
Runs this experiment. This function returns almost immediately, as the run itself is asynchronous. Use ExperimentListener to be notified about the experiment finish.

Throws:
InterruptedException

getPoolSize

public int getPoolSize()

getModel

public AMModel getModel()

getAlpha

public double getAlpha()

getBeta

public double getBeta()

getQualityMeasurement

public QualityMeasurement getQualityMeasurement()

getKnownOptimum

public Double getKnownOptimum()

getHighestQuality

public Quality getHighestQuality()

getGrammarTime

public long getGrammarTime()

getModelTime

public long getModelTime()

getTotalTime

public long getTotalTime()

getConstructionResult

public HeuristicResult getConstructionResult()

getTerminationReason

public Pair<Boolean,String> getTerminationReason()

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011