← Documentation
ADS-IDAC Engine 5.0.0
RestApiSolver.h File Reference

REST API implementation of ThermalHydraulicSolver. More...

#include "ThermalHydraulicSolver.h"
#include <string>
#include <vector>
#include <map>
Include dependency graph for RestApiSolver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RestApiSolver
 ThermalHydraulicSolver backed by a solver process behind a REST API. More...
 

Detailed Description

REST API implementation of ThermalHydraulicSolver.

Connects to a remote T-H solver process via HTTP REST API. The solver manages thermal-hydraulic state; ADS-IDAC manages branching and crew logic. Each advance call corresponds to one evaluation point (0.5 s of simulation time).

Every request opens a new HTTP connection (5 s connect timeout, 30 s read timeout for POST and GET). A failed POST, or a POST answered with status 400 or above, throws std::runtime_error, which the callers in ADSIDAC.cpp and Client.cpp do not catch.

Definition in file RestApiSolver.h.