Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docfix: specify that reference pressure is in bara #827

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public double getMeasuredValue(String unit) {
* Getter for the field <code>referencePressure</code>.
* </p>
*
* @return a double
* @return Reference pressure in bara
*/
public double getReferencePressure() {
return referencePressure;
Expand All @@ -93,7 +93,7 @@ public double getReferencePressure() {
* Setter for the field <code>referencePressure</code>.
* </p>
*
* @param referencePressure a double
* @param referencePressure Reference pressure to set in in bara
*/
public void setReferencePressure(double referencePressure) {
this.referencePressure = referencePressure;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public double getMeasuredValue(String unit) {
* Getter for the field <code>referencePressure</code>.
* </p>
*
* @return a double
* @return Reference pressure in bara
*/
public double getReferencePressure() {
return referencePressure;
Expand All @@ -110,7 +110,7 @@ public double getReferencePressure() {
* Setter for the field <code>referencePressure</code>.
* </p>
*
* @param referencePressure a double
* @param referencePressure Reference pressure to set in in bara
*/
public void setReferencePressure(double referencePressure) {
this.referencePressure = referencePressure;
Expand Down
12 changes: 8 additions & 4 deletions src/main/java/neqsim/standards/Standard.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
16 changes: 16 additions & 0 deletions src/main/java/neqsim/standards/StandardInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,21 @@ public interface StandardInterface {
*/
public void setResultTable(String[][] resultTable);

/**
* <p>
* Getter for the field <code>referencePressure</code>.
* </p>
*
* @return Reference pressure in bara
*/
public double getReferencePressure();

/**
* <p>
* Setter for the field <code>referencePressure</code>.
* </p>
*
* @param referencePressure Reference pressure to set in in bara
*/
public void setReferencePressure(double referencePressure);
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public void setReferenceTemperatureMeasurement(double referenceTemperature) {
* Getter for the field <code>referencePressure</code>.
* </p>
*
* @return a double
* @return Reference pressure in bara
*/
public double getReferencePressure() {
return referencePressure;
Expand All @@ -213,7 +213,7 @@ public double getReferencePressure() {
* Setter for the field <code>referencePressure</code>.
* </p>
*
* @param referencePressure a double
* @param referencePressure Reference pressure to set in in bara
*/
public void setReferencePressure(double referencePressure) {
this.referencePressure = referencePressure;
Expand Down
Loading