Class BioprocessRunner
java.lang.Object
neqsim.mcp.runners.BioprocessRunner
Stateless bioprocessing runner for MCP integration.
Supports four reactor types: anaerobic digestion, fermentation, biomass gasification, and pyrolysis. Each takes feedstock parameters and returns process outputs (biogas, syngas, bio-oil, char yields, energy recovery, etc.).
- Version:
- 1.0
- Author:
- Even Solbraa
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor — all methods are static. -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringCreates a standard error JSON string.static StringRuns a bioprocess simulation from a JSON input.private static StringrunAnaerobicDigestion(com.google.gson.JsonObject input) Runs an anaerobic digestion simulation.private static StringrunFermentation(com.google.gson.JsonObject input) Runs a fermentation reactor simulation.private static StringrunGasification(com.google.gson.JsonObject input) Runs a biomass gasification simulation.private static StringrunPyrolysis(com.google.gson.JsonObject input) Runs a pyrolysis reactor simulation.
-
Field Details
-
GSON
private static final com.google.gson.Gson GSON
-
-
Constructor Details
-
BioprocessRunner
private BioprocessRunner()Private constructor — all methods are static.
-
-
Method Details
-
run
Runs a bioprocess simulation from a JSON input.The "reactorType" field determines which reactor is used:
- "anaerobicDigester" — biogas production from organic waste
- "fermentation" — microbial fermentation (ethanol, etc.)
- "gasifier" — thermochemical biomass gasification to syngas
- "pyrolysis" — thermal decomposition to char, bio-oil, gas
- Parameters:
json- the JSON bioprocess specification- Returns:
- a JSON string with bioprocess results
-
runAnaerobicDigestion
Runs an anaerobic digestion simulation.- Parameters:
input- the JSON input- Returns:
- the results as JSON
-
runFermentation
Runs a fermentation reactor simulation.- Parameters:
input- the JSON input- Returns:
- the results as JSON
-
runGasification
Runs a biomass gasification simulation.- Parameters:
input- the JSON input- Returns:
- the results as JSON
-
runPyrolysis
Runs a pyrolysis reactor simulation.- Parameters:
input- the JSON input- Returns:
- the results as JSON
-
errorJson
-