Class ReportBase.DistributionNode

java.lang.Object
org.tquadrat.bloodpressure.spi.ReportBase.DistributionNode
Enclosing class:
ReportBase

@ClassVersion(sourceVersion="$Id: ReportBase.java 126 2022-02-19 21:13:35Z tquadrat $") @API(status=STABLE, since="0.0.1") public static final class ReportBase.DistributionNode extends Object
The record for the distribution data.
Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: ReportBase.java 126 2022-02-19 21:13:35Z tquadrat $
Since:
0.0.1
UML Diagram
UML Diagram for "org.tquadrat.bloodpressure.spi.ReportBase.DistributionNode"

UML Diagram for "org.tquadrat.bloodpressure.spi.ReportBase.DistributionNode"

UML Diagram for "org.tquadrat.bloodpressure.spi.ReportBase.DistributionNode"
  • Field Details

    • m_Diagnosis

      private final Diagnosis m_Diagnosis
      The diagnosis for this node.
    • m_DiastolicCount

      private int m_DiastolicCount
      The count for the diastolic values for this diagnosis.
    • m_DiastolicPercent

      private double m_DiastolicPercent
      The percentage of diastolic values for this diagnosis.
    • m_SystolicCount

      private int m_SystolicCount
      The count for the systolic values for this diagnosis.
    • m_SystolicPercent

      private double m_SystolicPercent
      The percentage of systolic values for this diagnosis.
  • Constructor Details

    • DistributionNode

      public DistributionNode(Diagnosis diagnosis)
      Creates a new instance of DistributionName.
      Parameters:
      diagnosis - The diagnosis for this node.
  • Method Details

    • calcDiastolicPercentage

      public final double calcDiastolicPercentage(int totalCount)
      Calculates the diastolic percentage.
      Parameters:
      totalCount - The total amount of values.
      Returns:
      The percentage.
    • calcSystolicPercentage

      public final double calcSystolicPercentage(int totalCount)
      Calculates the systolic percentage.
      Parameters:
      totalCount - The total amount of values.
      Returns:
      The percentage.
    • getDiagnosis

      public final Diagnosis getDiagnosis()
      Returns the diagnosis.
      Returns:
      The diagnosis.
    • getDiastolicCount

      public final int getDiastolicCount()
      Returns the amount of diastolic values for this diagnosis.
      Returns:
      The value count.
    • getDiastolicPercentage

      public final double getDiastolicPercentage()
      Returns the percentage of diastolic values for this diagnosis.
      Returns:
      The value percentage.
    • getSystolicCount

      public final int getSystolicCount()
      Returns the amount of systolic values for this diagnosis.
      Returns:
      The value count.
    • getSystolicPercentage

      public final double getSystolicPercentage()
      Returns the percentage of systolic values for this diagnosis.
      Returns:
      The value percentage.
    • incrementDiastolic

      public final void incrementDiastolic()
      Increments the counter for the diastolic values.
    • incrementSystolic

      public final void incrementSystolic()
      Increments the counter for the systolic values.