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 deprecated functions #301

Merged
merged 2 commits into from
Jan 24, 2022
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 @@ -346,10 +346,13 @@ public int getStartPlus() {
}

/**
* Setter for property startPlus. NB! Deprecated and replaced by firstPlusFractionNumber?
* Setter for property firstPlusFractionNumber.
*
* @param startPlus New value of property startPlus.
* @param startPlus New value of property firstPlusFractionNumber.
* @deprecated use {@link #setFirstPlusFractionNumber(int firstPlusFractionNumber)} instead.
*
*/
@Deprecated
public void setStartPlus(int startPlus) {
setFirstPlusFractionNumber(startPlus);
}
Expand Down
10 changes: 4 additions & 6 deletions src/main/java/neqsim/thermo/system/SystemInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,7 @@ public static SystemInterface addFluids(SystemInterface addFluid1, SystemInterfa
public void setForcePhaseTypes(boolean forcePhaseTypes);

/**
* <p>
* setEmptyFluid.
* </p>
* Set the flow rate of all components to zero.
*/
public void setEmptyFluid();

Expand Down Expand Up @@ -2143,9 +2141,9 @@ public double calcBeta() throws neqsim.util.exception.IsNaNException,
public void setPhaseType(int phaseToChange, String phaseTypeName);

/**
* <p>
* removeMoles.
* </p>
* Set the flow rate of all components to zero.
*
* @deprecated use {@link #setEmptyFluid()} instead.
*/
public void removeMoles();

Expand Down
13 changes: 2 additions & 11 deletions src/main/java/neqsim/thermo/system/SystemThermo.java
Original file line number Diff line number Diff line change
Expand Up @@ -1299,11 +1299,7 @@ public void removeComponent(String name) {
numberOfComponents--;
}

/**
* {@inheritDoc}
*
* This method set the flow rate of all components to zero.
*/
/** {@inheritDoc} */
@Override
public void setEmptyFluid() {
for (int i = 0; i < getMaxNumberOfPhases(); i++) {
Expand All @@ -1312,12 +1308,7 @@ public void setEmptyFluid() {
totalNumberOfMoles = 0.0;
}

/**
* {@inheritDoc}
*
* This method set the flow rate of all components to zero. This method is depreciated - and the
* setEmptyFluid method should be used.
*/
/** {@inheritDoc} */
@Override
@Deprecated
public void removeMoles() {
Expand Down