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