Class EntityStat


  • public class EntityStat
    extends Object
    The class define a entity statistics which compute data collected on project, sample or others and update run data.
    Since:
    1.4
    Author:
    Sandrine Perrin
    • Constructor Detail

      • EntityStat

        public EntityStat​(RunData runData,
                          int projectId,
                          StatisticsCollector statCollector)
                   throws AozanException
        Instantiates a new project stat.
        Parameters:
        runData - the run data
        projectId - the project id
        statCollector - the stat collector
        Throws:
        AozanException - if an error occurs when listing source fastqscreen xml report file.
      • EntityStat

        public EntityStat​(RunData runData,
                          int projectId,
                          int sampleId,
                          StatisticsCollector statCollector)
                   throws AozanException
        Instantiates a new entity stat.
        Parameters:
        runData - the run data
        projectId - the project id
        sampleId - the sample id
        statCollector - the stat collector
        Throws:
        AozanException - the aozan exception
    • Method Detail

      • addRunDataProjectEntries

        public void addRunDataProjectEntries​(String prefix)
                                      throws AozanException
        Creates the run data project.
        Throws:
        AozanException - if run data object has already be create.
      • addEntity

        public void addEntity​(int sampleId)
                       throws AozanException
        Adds the sample.
        Parameters:
        sampleId - the sample id
        Throws:
        AozanException - if run data object has already be create.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object