Package Executable

Class Output


  • public class Output
    extends java.lang.Object
    Represents the output options to LinkImputeR
    • Constructor Summary

      Constructors 
      Constructor Description
      Output​(java.io.File summary, java.io.File table, java.io.File control, boolean partial)
      Constructor
      Output​(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> params)
      Constructor from a config (read in from a XML file)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.commons.configuration2.tree.ImmutableNode getConfig()
      Get the input config for the final imputation step
      boolean getPartial()
      Should we write partial output
      java.io.PrintWriter getSummaryWriter()
      Gets the writer to write summary information to
      java.io.PrintWriter getTableWriter()
      Gets the writer to write table information to
      void writeControl​(java.util.List<org.apache.commons.configuration2.tree.ImmutableNode> config)
      Write the control file (for the final imputation step)
      • Methods inherited from class java.lang.Object

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

      • Output

        public Output​(java.io.File summary,
                      java.io.File table,
                      java.io.File control,
                      boolean partial)
        Constructor
        Parameters:
        summary - The file to write the summary results to
        table - The file to write the table results to
        control - The file to write the control file (for the final imputation stage) to
        partial - Whether to return partial results (i.e. for the imputation and calling steps)
      • Output

        public Output​(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> params)
        Constructor from a config (read in from a XML file)
        Parameters:
        params - The config
    • Method Detail

      • getSummaryWriter

        public java.io.PrintWriter getSummaryWriter()
                                             throws OutputException
        Gets the writer to write summary information to
        Returns:
        The writer
        Throws:
        OutputException - If there is an IO problem
      • getTableWriter

        public java.io.PrintWriter getTableWriter()
                                           throws OutputException
        Gets the writer to write table information to
        Returns:
        The writer
        Throws:
        OutputException - If there is an IO problem
      • getPartial

        public boolean getPartial()
        Should we write partial output
        Returns:
        Whether to write partial output
      • writeControl

        public void writeControl​(java.util.List<org.apache.commons.configuration2.tree.ImmutableNode> config)
                          throws OutputException
        Write the control file (for the final imputation step)
        Parameters:
        config - The configuration to write
        Throws:
        OutputException - If there is an IO problem
      • getConfig

        public org.apache.commons.configuration2.tree.ImmutableNode getConfig()
        Get the input config for the final imputation step
        Returns:
        The config