Class GeneralResamplingSearchRunnable

java.lang.Object
edu.pitt.dbmi.algo.resampling.task.GeneralResamplingSearchRunnable
All Implemented Interfaces:
Callable<Graph>

public class GeneralResamplingSearchRunnable extends Object implements Callable<Graph>
A runnable for a single search over either a single- or multi-data set algorithm, for use in a thread pool.
Version:
$Id: $Id
Author:
Chirayu (Kong) Wongchokprasitti, PhD, josephramsey Cleanup.
  • Constructor Details

  • Method Details

    • setKnowledge

      public void setKnowledge(Knowledge knowledge)
      Sets the background knowledge.
      Parameters:
      knowledge - the knowledge object, specifying forbidden and required edges.
    • setOut

      public void setOut(PrintStream out)
      Sets the output stream that output (except for log output) should be sent to. By default, System.out.
      Parameters:
      out - a PrintStream object
    • call

      public Graph call()
      Runs the search over the data model or data models, using the algorithm and parameters.
      Specified by:
      call in interface Callable<Graph>
      Returns:
      The graph discovered by the search.
    • setScoreWrapper

      public void setScoreWrapper(ScoreWrapper scoreWrapper)
      Sets the score wrapper, for multi-data set algorithms.
      Parameters:
      scoreWrapper - a ScoreWrapper object
    • setIndependenceWrapper

      public void setIndependenceWrapper(IndependenceWrapper independenceWrapper)
      Sets the independence wrapper, for multi-data set algorithms.
      Parameters:
      independenceWrapper - a IndependenceWrapper object
    • setVerbose

      public void setVerbose(boolean verbose)
      Sets whether verbose output should be printed.
      Parameters:
      verbose - a boolean