From 9587f091ee0413a368d71bc93cb66d49d7f0132b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20V=C3=A5ge=20Fannemel?= <34712686+asmfstatoil@users.noreply.github.com> Date: Wed, 4 Oct 2023 09:55:19 +0200 Subject: [PATCH] docfix: specify that reference pressure is in bara (#827) --- .../HydrateEquilibriumTemperatureAnalyser.java | 4 ++-- .../measurementDevice/WaterDewPointAnalyser.java | 4 ++-- src/main/java/neqsim/standards/Standard.java | 12 ++++++++---- .../java/neqsim/standards/StandardInterface.java | 16 ++++++++++++++++ .../salesContract/ContractSpecification.java | 4 ++-- 5 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/main/java/neqsim/processSimulation/measurementDevice/HydrateEquilibriumTemperatureAnalyser.java b/src/main/java/neqsim/processSimulation/measurementDevice/HydrateEquilibriumTemperatureAnalyser.java index 9087e214ee..625412b88b 100644 --- a/src/main/java/neqsim/processSimulation/measurementDevice/HydrateEquilibriumTemperatureAnalyser.java +++ b/src/main/java/neqsim/processSimulation/measurementDevice/HydrateEquilibriumTemperatureAnalyser.java @@ -82,7 +82,7 @@ public double getMeasuredValue(String unit) { * Getter for the field referencePressure. *

* - * @return a double + * @return Reference pressure in bara */ public double getReferencePressure() { return referencePressure; @@ -93,7 +93,7 @@ public double getReferencePressure() { * Setter for the field referencePressure. *

* - * @param referencePressure a double + * @param referencePressure Reference pressure to set in in bara */ public void setReferencePressure(double referencePressure) { this.referencePressure = referencePressure; diff --git a/src/main/java/neqsim/processSimulation/measurementDevice/WaterDewPointAnalyser.java b/src/main/java/neqsim/processSimulation/measurementDevice/WaterDewPointAnalyser.java index 688b3cfbb1..6ab3770606 100644 --- a/src/main/java/neqsim/processSimulation/measurementDevice/WaterDewPointAnalyser.java +++ b/src/main/java/neqsim/processSimulation/measurementDevice/WaterDewPointAnalyser.java @@ -99,7 +99,7 @@ public double getMeasuredValue(String unit) { * Getter for the field referencePressure. *

* - * @return a double + * @return Reference pressure in bara */ public double getReferencePressure() { return referencePressure; @@ -110,7 +110,7 @@ public double getReferencePressure() { * Setter for the field referencePressure. *

* - * @param referencePressure a double + * @param referencePressure Reference pressure to set in in bara */ public void setReferencePressure(double referencePressure) { this.referencePressure = referencePressure; diff --git a/src/main/java/neqsim/standards/Standard.java b/src/main/java/neqsim/standards/Standard.java index 4a27d526e0..0373ede6f8 100644 --- a/src/main/java/neqsim/standards/Standard.java +++ b/src/main/java/neqsim/standards/Standard.java @@ -199,11 +199,15 @@ public void setReferenceState(String referenceState) { this.referenceState = referenceState; } - public void setReferencePressure(double referencePressure) { - this.referencePressure = referencePressure; + /** {@inheritDoc} */ + @Override + public double getReferencePressure() { + return referencePressure; } - public double getReferencePressure(){ - return referencePressure; + /** {@inheritDoc} */ + @Override + public void setReferencePressure(double referencePressure) { + this.referencePressure = referencePressure; } } diff --git a/src/main/java/neqsim/standards/StandardInterface.java b/src/main/java/neqsim/standards/StandardInterface.java index 7140224cc2..6449ccb17b 100644 --- a/src/main/java/neqsim/standards/StandardInterface.java +++ b/src/main/java/neqsim/standards/StandardInterface.java @@ -165,5 +165,21 @@ public interface StandardInterface { */ public void setResultTable(String[][] resultTable); + /** + *

+ * Getter for the field referencePressure. + *

+ * + * @return Reference pressure in bara + */ + public double getReferencePressure(); + + /** + *

+ * Setter for the field referencePressure. + *

+ * + * @param referencePressure Reference pressure to set in in bara + */ public void setReferencePressure(double referencePressure); } diff --git a/src/main/java/neqsim/standards/salesContract/ContractSpecification.java b/src/main/java/neqsim/standards/salesContract/ContractSpecification.java index 49f9fca59f..5d627a7141 100644 --- a/src/main/java/neqsim/standards/salesContract/ContractSpecification.java +++ b/src/main/java/neqsim/standards/salesContract/ContractSpecification.java @@ -202,7 +202,7 @@ public void setReferenceTemperatureMeasurement(double referenceTemperature) { * Getter for the field referencePressure. *

* - * @return a double + * @return Reference pressure in bara */ public double getReferencePressure() { return referencePressure; @@ -213,7 +213,7 @@ public double getReferencePressure() { * Setter for the field referencePressure. *

* - * @param referencePressure a double + * @param referencePressure Reference pressure to set in in bara */ public void setReferencePressure(double referencePressure) { this.referencePressure = referencePressure;