Skip to content

Commit eea4b3b

Browse files
authored
chore: fix javadoc (#1067)
* chore: fix javadoc
1 parent abe75f5 commit eea4b3b

File tree

121 files changed

+946
-555
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+946
-555
lines changed

src/main/java/neqsim/PVTsimulation/simulation/BasePVTsimulation.java

+3-9
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public double getTemperature() {
121121

122122
/**
123123
* <p>
124-
* Setter for the field <code>temperature</code>.
124+
* Setter for the field <code>temperature</code>. NB! Verify unit is correct.
125125
* </p>
126126
*
127127
* @param temperature the temperature to set
@@ -130,14 +130,8 @@ public void setTemperature(double temperature) {
130130
this.temperature = temperature;
131131
}
132132

133-
/**
134-
* <p>
135-
* Setter for the field <code>temperature</code>.
136-
* </p>
137-
*
138-
* @param temperature the temperature to set
139-
* @param temperatureUnit the unit of temperature as string
140-
*/
133+
/** {@inheritDoc} */
134+
@Override
141135
public void setTemperature(double temperature, String temperatureUnit) {
142136
this.temperature = temperature;
143137
this.temperatureUnit = temperatureUnit;

src/main/java/neqsim/PVTsimulation/simulation/SaturationPressure.java

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public SaturationPressure(SystemInterface tempSystem) {
3131
* @return a double
3232
*/
3333
public double calcSaturationPressure() {
34-
3534
if (!Double.isNaN(temperature)) {
3635
getThermoSystem().setTemperature(temperature, temperatureUnit);
3736
}

src/main/java/neqsim/dataPresentation/SampleXYDataSource.java

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* Note that the aim of this class is to create a self-contained data source for demo purposes - it
2525
* is NOT intended to show how you should go about writing your own data sources.
2626
* </p>
27+
*
28+
* @author Even Solbraa
2729
*/
2830
public class SampleXYDataSource {
2931
double[][] points;

src/main/java/neqsim/fluidMechanics/flowNode/fluidBoundary/heatMassTransferCalc/finiteVolumeBoundary/fluidBoundarySolver/FluidBoundarySolver.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public FluidBoundarySolver() {}
4141
* Constructor for FluidBoundarySolver.
4242
* </p>
4343
*
44-
* @param boundary a {@link FluidBoundarySystemInterface} object
44+
* @param boundary a
45+
* {@link neqsim.fluidMechanics.flowNode.fluidBoundary.heatMassTransferCalc.finiteVolumeBoundary.fluidBoundarySystem.FluidBoundarySystemInterface}
46+
* object
4547
*/
4648
public FluidBoundarySolver(FluidBoundarySystemInterface boundary) {
4749
this.boundary = boundary;
@@ -67,7 +69,9 @@ public FluidBoundarySolver(FluidBoundarySystemInterface boundary) {
6769
* Constructor for FluidBoundarySolver.
6870
* </p>
6971
*
70-
* @param boundary a {@link FluidBoundarySystemInterface} * object
72+
* @param boundary a
73+
* {@link neqsim.fluidMechanics.flowNode.fluidBoundary.heatMassTransferCalc.finiteVolumeBoundary.fluidBoundarySystem.FluidBoundarySystemInterface}
74+
* * object
7175
* @param reactive a boolean
7276
*/
7377
public FluidBoundarySolver(FluidBoundarySystemInterface boundary, boolean reactive) {

src/main/java/neqsim/processSimulation/SimulationBaseClass.java

+2-17
Original file line numberDiff line numberDiff line change
@@ -82,30 +82,15 @@ public void increaseTime(double dt) {
8282
this.time = this.time + dt;
8383
}
8484

85-
/**
86-
* <p>
87-
* setRunInSteps
88-
* </p>
89-
*
90-
* @param setRunSteps boolean set if run in steps
91-
*/
85+
/** {@inheritDoc} */
9286
@Override
9387
public void setRunInSteps(boolean setRunSteps) {
9488
runInSteps = setRunSteps;
9589
}
9690

97-
/**
98-
* <p>
99-
* isRunInSteps.
100-
* </p>
101-
*
102-
* @return boolean
103-
*/
91+
/** {@inheritDoc} */
10492
@Override
10593
public boolean isRunInSteps() {
10694
return runInSteps;
10795
}
108-
109-
110-
11196
}

src/main/java/neqsim/processSimulation/SimulationInterface.java

+14-16
Original file line numberDiff line numberDiff line change
@@ -40,47 +40,47 @@ public interface SimulationInterface extends NamedInterface, Runnable, Serializa
4040
public void setCalculateSteadyState(boolean steady);
4141

4242
/**
43-
* Getter for property time.
43+
* Getter for the field <code>time</code>.
4444
*
4545
* @return Value of property time.
4646
*/
4747
public double getTime();
4848

4949
/**
50-
* Setter for property time.
50+
* Setter for field <code>time</code>.
5151
*
5252
* @param value Value to set.
5353
*/
5454
public void setTime(double value);
5555

5656
/**
57-
* Method to increase parameter time by a given value.
57+
* Method to increase field <code>time</code> by a given value.
5858
*
5959
* @param dt Value to increase time by.
6060
*/
6161
public void increaseTime(double dt);
6262

6363
/**
6464
* <p>
65-
* setRunInSteps
65+
* setRunInSteps.
6666
* </p>
67-
*
68-
* @param setRunSteps boolean set if run in steps
67+
*
68+
* @param setRunSteps boolean set true to run in steps
6969
*/
7070
public void setRunInSteps(boolean setRunSteps);
7171

7272
/**
7373
* <p>
7474
* isRunInSteps.
7575
* </p>
76-
*
76+
*
7777
* @return boolean
7878
*/
7979
public boolean isRunInSteps();
8080

8181
/**
8282
* <p>
83-
* run
83+
* run.
8484
* </p>
8585
*
8686
* @param id UUID
@@ -89,9 +89,8 @@ public interface SimulationInterface extends NamedInterface, Runnable, Serializa
8989

9090
/**
9191
* <p>
92-
* run
92+
* run.
9393
* </p>
94-
*
9594
*/
9695
public default void run() {
9796
if (isRunInSteps()) {
@@ -102,12 +101,11 @@ public default void run() {
102101
}
103102

104103
/**
105-
* {@inheritDoc}
106-
*
107104
* <p>
105+
* run_step
106+
* </p>
108107
* In this method all thermodynamic and unit operations will be calculated in a steady state
109108
* calculation. It does not solve resycles - only calculates one step.
110-
* </p>
111109
*/
112110
public default void run_step() {
113111
run_step(UUID.randomUUID());
@@ -162,7 +160,7 @@ public default void runTransient(double dt, UUID id) {
162160

163161
/**
164162
* <p>
165-
* solved.
163+
* Returns whether or not the module has been solved.
166164
* </p>
167165
*
168166
* @return a boolean
@@ -171,10 +169,10 @@ public default void runTransient(double dt, UUID id) {
171169

172170
/**
173171
* <p>
174-
* getReport_json
172+
* getReport_json.
175173
* </p>
176174
* Return results of simulation in json format
177-
*
175+
*
178176
* @return a String
179177
*/
180178
public String getReport_json();

src/main/java/neqsim/processSimulation/measurementDevice/CombustionEmissionsCalculator.java

+21
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
import java.util.Map;
55
import neqsim.processSimulation.processEquipment.stream.StreamInterface;
66

7+
/**
8+
* <p>
9+
* CombustionEmissionsCalculator class.
10+
* </p>
11+
*
12+
* @author Even Solbraa
13+
*/
714
public class CombustionEmissionsCalculator extends StreamMeasurementDeviceBaseClass {
815
private static final long serialVersionUID = 1L;
916

@@ -37,6 +44,11 @@ public CombustionEmissionsCalculator(String name, StreamInterface stream) {
3744
super(name, "kg/hr", stream);
3845
}
3946

47+
/**
48+
* <p>
49+
* setComponents.
50+
* </p>
51+
*/
4052
public void setComponents() {
4153
NATURAL_GAS_COMPOSITION.clear();
4254
CO2_EMISSIONS_FACTORS.clear();
@@ -71,6 +83,15 @@ public double getMeasuredValue(String unit) {
7183
* stream.getFluid().getFlowRate(unit);
7284
}
7385

86+
/**
87+
* <p>
88+
* calculateCO2Emissions.
89+
* </p>
90+
*
91+
* @param composition a {@link java.util.Map} object
92+
* @param emissionsFactors a {@link java.util.Map} object
93+
* @return a double
94+
*/
7495
public static double calculateCO2Emissions(Map<String, Double> composition,
7596
Map<String, Double> emissionsFactors) {
7697
double totalEmissions = 0.0;

src/main/java/neqsim/processSimulation/measurementDevice/FlowInducedVibrationAnalyser.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public class FlowInducedVibrationAnalyser extends MeasurementDeviceBaseClass {
3030
private int segment;
3131
private double FRMSConstant = 6.7;
3232

33-
3433
/**
3534
* <p>
3635
* Constructor for WaterDewPointAnalyser.
@@ -116,7 +115,6 @@ public double getMeasuredValue(String unit) {
116115
return Double.NaN;
117116
}
118117

119-
120118
/**
121119
* <p>
122120
* Getter for the field <code>method</code>.
@@ -151,7 +149,13 @@ public void setSegment(int segment) {
151149
this.segmentSet = true;
152150
}
153151

154-
152+
/**
153+
* <p>
154+
* setFRMSConstant.
155+
* </p>
156+
*
157+
* @param frms a double
158+
*/
155159
public void setFRMSConstant(double frms) {
156160
this.FRMSConstant = frms;
157161
}
@@ -167,7 +171,6 @@ public void setSupportArrangement(String arrangement) {
167171
this.supportArrangement = arrangement;
168172
}
169173

170-
171174
/**
172175
* <p>
173176
* Setter for the support distance <code></code>.
@@ -178,7 +181,4 @@ public void setSupportArrangement(String arrangement) {
178181
public void setSupportDistance(Double distance) {
179182
this.supportDistance = distance;
180183
}
181-
182-
183-
184184
}

src/main/java/neqsim/processSimulation/measurementDevice/LevelTransmitter.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ public void displayResult() {
4747
System.out.println("measured level " + separator.getLiquidLevel());
4848
}
4949

50-
/**
51-
* Get level as volume fraction.
52-
*/
50+
/** {@inheritDoc} */
5351
@Override
5452
public double getMeasuredValue(String unit) {
5553
if (!unit.equalsIgnoreCase("")) {

src/main/java/neqsim/processSimulation/measurementDevice/MeasurementDeviceInterface.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public default double getMeasuredValue() {
3232

3333
/**
3434
* <p>
35-
* getMeasuredValue.
35+
* Get Measured value in specified unit.
3636
* </p>
3737
*
3838
* @param unit a {@link java.lang.String} object

src/main/java/neqsim/processSimulation/measurementDevice/WellAllocator.java

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public double getMeasuredValue(String unit) {
7474
* @param unit Unit to get value in
7575
* @return Measured value
7676
*/
77-
7877
public double getMeasuredValue(String measurement, String unit) {
7978
int numberOfComps = stream.getThermoSystem().getNumberOfComponents();
8079
double[] splitFactors = new double[numberOfComps];

src/main/java/neqsim/processSimulation/measurementDevice/simpleFlowRegime/SevereSlugAnalyser.java

+1-7
Original file line numberDiff line numberDiff line change
@@ -627,13 +627,7 @@ public String checkFlowRegime(FluidSevereSlug fluid, Pipe pipe, SevereSlugAnalys
627627
return flowPattern;
628628
}
629629

630-
/**
631-
* <p>
632-
* getMeasuredValue.
633-
* </p>
634-
*
635-
* @return a double
636-
*/
630+
/** {@inheritDoc} */
637631
@Override
638632
public double getMeasuredValue(String unit) {
639633
if (!unit.equalsIgnoreCase("m3/sec")) {

src/main/java/neqsim/processSimulation/mechanicalDesign/MechanicalDesign.java

+28
Original file line numberDiff line numberDiff line change
@@ -1083,18 +1083,46 @@ public UnitCostEstimateBaseClass getCostEstimate() {
10831083
return costEstimate;
10841084
}
10851085

1086+
/**
1087+
* <p>
1088+
* Setter for the field <code>defaultLiquidDensity</code>.
1089+
* </p>
1090+
*
1091+
* @param defaultLiqDens a double
1092+
*/
10861093
public void setDefaultLiquidDensity(double defaultLiqDens) {
10871094
this.defaultLiquidDensity = defaultLiqDens;
10881095
}
10891096

1097+
/**
1098+
* <p>
1099+
* Getter for the field <code>defaultLiquidDensity</code>.
1100+
* </p>
1101+
*
1102+
* @return a double
1103+
*/
10901104
public double getDefaultLiquidDensity() {
10911105
return defaultLiquidDensity;
10921106
}
10931107

1108+
/**
1109+
* <p>
1110+
* Setter for the field <code>defaultLiquidViscosity</code>.
1111+
* </p>
1112+
*
1113+
* @param defaultLiqVisc a double
1114+
*/
10941115
public void setDefaultLiquidViscosity(double defaultLiqVisc) {
10951116
this.defaultLiquidViscosity = defaultLiqVisc;
10961117
}
10971118

1119+
/**
1120+
* <p>
1121+
* Getter for the field <code>defaultLiquidViscosity</code>.
1122+
* </p>
1123+
*
1124+
* @return a double
1125+
*/
10981126
public double getDefaultLiquidViscosity() {
10991127
return defaultLiquidViscosity;
11001128
}

src/main/java/neqsim/processSimulation/mechanicalDesign/SystemMechanicalDesign.java

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public SystemMechanicalDesign(ProcessSystem processSystem) {
3636
this.processSystem = processSystem;
3737
}
3838

39+
/**
40+
* <p>
41+
* getProcess.
42+
* </p>
43+
*
44+
* @return a {@link neqsim.processSimulation.processSystem.ProcessSystem} object
45+
*/
3946
public ProcessSystem getProcess() {
4047
return processSystem;
4148
}

0 commit comments

Comments
 (0)