Module org.tquadrat.bloodpressure
Package org.tquadrat.bloodpressure.spi
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"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Diagnosis
The diagnosis for this node.private int
The count for the diastolic values for this diagnosis.private double
The percentage of diastolic values for this diagnosis.private int
The count for the systolic values for this diagnosis.private double
The percentage of systolic values for this diagnosis. -
Constructor Summary
ConstructorsConstructorDescriptionDistributionNode
(Diagnosis diagnosis) Creates a new instance ofDistributionName
. -
Method Summary
Modifier and TypeMethodDescriptionfinal double
calcDiastolicPercentage
(int totalCount) Calculates the diastolic percentage.final double
calcSystolicPercentage
(int totalCount) Calculates the systolic percentage.final Diagnosis
Returns the diagnosis.final int
Returns the amount of diastolic values for this diagnosis.final double
Returns the percentage of diastolic values for this diagnosis.final int
Returns the amount of systolic values for this diagnosis.final double
Returns the percentage of systolic values for this diagnosis.final void
Increments the counter for the diastolic values.final void
Increments the counter for the systolic values.
-
Field Details
-
m_Diagnosis
The diagnosis for this node. -
m_DiastolicCount
The count for the diastolic values for this diagnosis. -
m_DiastolicPercent
The percentage of diastolic values for this diagnosis. -
m_SystolicCount
The count for the systolic values for this diagnosis. -
m_SystolicPercent
The percentage of systolic values for this diagnosis.
-
-
Constructor Details
-
DistributionNode
Creates a new instance ofDistributionName
.- Parameters:
diagnosis
- The diagnosis for this node.
-
-
Method Details
-
calcDiastolicPercentage
Calculates the diastolic percentage.- Parameters:
totalCount
- The total amount of values.- Returns:
- The percentage.
-
calcSystolicPercentage
Calculates the systolic percentage.- Parameters:
totalCount
- The total amount of values.- Returns:
- The percentage.
-
getDiagnosis
Returns the diagnosis.- Returns:
- The diagnosis.
-
getDiastolicCount
Returns the amount of diastolic values for this diagnosis.- Returns:
- The value count.
-
getDiastolicPercentage
Returns the percentage of diastolic values for this diagnosis.- Returns:
- The value percentage.
-
getSystolicCount
Returns the amount of systolic values for this diagnosis.- Returns:
- The value count.
-
getSystolicPercentage
Returns the percentage of systolic values for this diagnosis.- Returns:
- The value percentage.
-
incrementDiastolic
Increments the counter for the diastolic values. -
incrementSystolic
Increments the counter for the systolic values.
-