Class CallableCalculator

java.lang.Object
_global.tri.oxidationstates.fitting.CallableCalculator
All Implemented Interfaces:
Callable<Double>

public class CallableCalculator extends Object implements Callable<Double>
This class is used for multi-threaded model fitting
  • Constructor Details

    • CallableCalculator

      public CallableCalculator(OxidationStateData.Entry[] entries)
      Create a CallableCalculator that will work on the given subset of entries. Each thread should have its own subset.
      Parameters:
      entries - The given subset of entries.
  • Method Details

    • setCalculator

      public void setCalculator(LikelihoodCalculator calculator)
      Set the calculator to be used to calculate the likelihood score.
      Parameters:
      calculator - the likelihood calculator to be used to calculate the likelihood score.
    • call

      public Double call() throws Exception
      Specified by:
      call in interface Callable<Double>
      Throws:
      Exception
    • appendFile

      public void appendFile(String fileName)
      Useful for debugging, appends information about the current fit to a file with the given name
      Parameters:
      fileName - The given filename