Class ProcessComparisonRunner
java.lang.Object
neqsim.mcp.runners.ProcessComparisonRunner
Compares two or more process configurations side by side.
Accepts an array of process cases (each with its own fluid and process definition), runs them all, and returns a comparison table highlighting differences in key outputs (temperatures, pressures, duties, compositions).
- Version:
- 1.0
- Author:
- Even Solbraa
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor — all methods are static. -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.google.gson.JsonObjectbuildComparisonSummary(List<String> caseNames, List<com.google.gson.JsonObject> caseResults) Builds a comparison summary from individual case results.private static StringCreates an error JSON response.private static booleanhasError(com.google.gson.JsonObject result) Checks if a result JSON indicates an error.static StringRuns multiple process cases and compares results.
-
Field Details
-
GSON
private static final com.google.gson.Gson GSON
-
-
Constructor Details
-
ProcessComparisonRunner
private ProcessComparisonRunner()Private constructor — all methods are static.
-
-
Method Details
-
run
-
buildComparisonSummary
private static com.google.gson.JsonObject buildComparisonSummary(List<String> caseNames, List<com.google.gson.JsonObject> caseResults) Builds a comparison summary from individual case results.- Parameters:
caseNames- list of case namescaseResults- list of result JSON objects- Returns:
- comparison JSON object
-
hasError
private static boolean hasError(com.google.gson.JsonObject result) Checks if a result JSON indicates an error.- Parameters:
result- the result JSON object- Returns:
- true if the result has error status
-
errorJson
-