12
12
import neqsim .processSimulation .util .report .Report ;
13
13
14
14
/**
15
- * A class representing a process module class that can contain unit operations
16
- * and other modules.
17
- * Module will be runnning until all recycles in this module are solved. If no
18
- * recycle in the module
15
+ * A class representing a process module class that can contain unit operations and other modules.
16
+ * Module will be runnning until all recycles in this module are solved. If no recycle in the module
19
17
* then run only once.
20
18
*
21
19
* @author [seros]
@@ -56,8 +54,7 @@ public ProcessModule(String name) {
56
54
/**
57
55
* Add an unit operation to the process module.
58
56
*
59
- * @param processSystem the process system that contains the unit operations to
60
- * be added.
57
+ * @param processSystem the process system that contains the unit operations to be added.
61
58
*/
62
59
63
60
public void add (ProcessSystem processSystem ) {
@@ -86,8 +83,7 @@ public List<ProcessSystem> getAddedUnitOperations() {
86
83
}
87
84
88
85
/**
89
- * Get the list of operations index. The operations index is used to follow the
90
- * correct order of
86
+ * Get the list of operations index. The operations index is used to follow the correct order of
91
87
* calculations.
92
88
*
93
89
* @return the list of operations index
@@ -108,8 +104,7 @@ public List<ProcessModule> getAddedModules() {
108
104
}
109
105
110
106
/**
111
- * Get the list of module index. The module index is used to follow the correct
112
- * order of
107
+ * Get the list of module index. The module index is used to follow the correct order of
113
108
* calculations.
114
109
*
115
110
* @return the list of module index
@@ -203,13 +198,11 @@ public Thread runAsThread() {
203
198
}
204
199
205
200
/**
206
- * Returns the unit with the given name from the list of added unit operations
207
- * and list of added
201
+ * Returns the unit with the given name from the list of added unit operations and list of added
208
202
* modules.
209
203
*
210
204
* @param name the name of the unit to retrieve
211
- * @return the unit with the given name, or {@code null} if no such unit is
212
- * found
205
+ * @return the unit with the given name, or {@code null} if no such unit is found
213
206
*/
214
207
public Object getUnit (String name ) {
215
208
for (ProcessSystem processSystem : addedUnitOperations ) {
@@ -229,13 +222,11 @@ public Object getUnit(String name) {
229
222
}
230
223
231
224
/**
232
- * Returns the unit with the given name from the list of added unit operations
233
- * and list of added
225
+ * Returns the unit with the given name from the list of added unit operations and list of added
234
226
* modules.
235
227
*
236
228
* @param name the name of the unit to retrieve
237
- * @return the unit with the given name, or {@code null} if no such unit is
238
- * found
229
+ * @return the unit with the given name, or {@code null} if no such unit is found
239
230
*/
240
231
public Object getMeasurementDevice (String name ) {
241
232
for (ProcessSystem processSystem : addedUnitOperations ) {
@@ -283,6 +274,6 @@ public String getReport_json() {
283
274
/** {@inheritDoc} */
284
275
@ Override
285
276
public void run_step (UUID id ) {
286
-
277
+ run ( id );
287
278
}
288
279
}
0 commit comments