Package main

Class MainHelper


  • public class MainHelper
    extends java.lang.Object

    Class MainHelper is an auxiliary class with methods called by the main.Main class.

    Instances of class MainHelper are not thread-safe.

    • Constructor Summary

      Constructors 
      Constructor Description
      MainHelper​(Par par, RunStats runStats, long seed)
      Constructs a new MainHelper instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GT phase​(FixedPhaseData fpd)
      Phases the current window of genotype data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MainHelper

        public MainHelper​(Par par,
                          RunStats runStats,
                          long seed)
        Constructs a new MainHelper instance.
        Parameters:
        par - the command line parameters
        runStats - the class for collecting and printing run-time statistics
        seed - random number seed
        Throws:
        java.lang.NullPointerException - if runStarts == null
    • Method Detail

      • phase

        public GT phase​(FixedPhaseData fpd)
        Phases the current window of genotype data.
        Parameters:
        fpd - the input data for the current window
        Returns:
        the phased genotype data
        Throws:
        java.lang.IllegalArgumentException - if fpd.par()!=this.par()
        java.lang.NullPointerException - if fpd == null