2025-06-10 12:36:39 +02:00
|
|
|
/**
|
2025-09-22 16:02:04 +02:00
|
|
|
* generalFunctions/index.js
|
2025-06-10 12:36:39 +02:00
|
|
|
* -----------------------------------------------------------
|
|
|
|
|
* Central barrel file for re-exporting helpers and configurations.
|
|
|
|
|
* Provides both namespace exports and dynamic loading capabilities.
|
2025-06-25 10:55:50 +02:00
|
|
|
* now we can load modules like this:
|
2025-09-22 16:02:04 +02:00
|
|
|
* const { menuUtils, outputUtils } = require('generalFunctions');
|
2025-06-10 12:36:39 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Core helper modules
|
2026-02-23 13:17:47 +01:00
|
|
|
const helper = require('./src/helper/index.js');
|
|
|
|
|
const {
|
|
|
|
|
outputUtils,
|
|
|
|
|
logger,
|
|
|
|
|
validation,
|
|
|
|
|
configUtils,
|
|
|
|
|
assertions,
|
|
|
|
|
childRegistrationUtils,
|
|
|
|
|
gravity,
|
|
|
|
|
} = helper;
|
2025-10-07 18:10:04 +02:00
|
|
|
const coolprop = require('./src/coolprop-node/src/index.js');
|
2026-01-29 09:16:41 +01:00
|
|
|
const assetApiConfig = require('./src/configs/assetApiConfig.js');
|
2025-06-10 12:36:39 +02:00
|
|
|
|
|
|
|
|
// Domain-specific modules
|
2025-06-25 17:27:32 +02:00
|
|
|
const { MeasurementContainer } = require('./src/measurements/index.js');
|
2025-06-25 10:55:50 +02:00
|
|
|
const configManager = require('./src/configs/index.js');
|
2026-02-23 13:17:47 +01:00
|
|
|
const { nrmse } = require('./src/nrmse/index.js');
|
|
|
|
|
const { state } = require('./src/state/index.js');
|
2025-06-25 10:55:50 +02:00
|
|
|
const convert = require('./src/convert/index.js');
|
|
|
|
|
const MenuManager = require('./src/menu/index.js');
|
2026-02-23 13:17:47 +01:00
|
|
|
const { predict, interpolation } = require('./src/predict/index.js');
|
2026-03-11 11:13:05 +01:00
|
|
|
const { PIDController, CascadePIDController, createPidController, createCascadePidController } = require('./src/pid/index.js');
|
2025-11-13 19:39:48 +01:00
|
|
|
const { loadCurve } = require('./datasets/assetData/curves/index.js'); //deprecated replace with load model data
|
2026-03-31 18:07:57 +02:00
|
|
|
const { loadModel } = require('./datasets/assetData/modelData/index.js');
|
2026-03-11 13:43:24 +01:00
|
|
|
const { POSITIONS, POSITION_VALUES, isValidPosition } = require('./src/constants/positions.js');
|
2026-03-11 13:39:40 +01:00
|
|
|
const Fysics = require('./src/convert/fysics.js');
|
2025-06-10 12:45:35 +02:00
|
|
|
|
|
|
|
|
// Export everything
|
|
|
|
|
module.exports = {
|
2025-06-25 17:27:32 +02:00
|
|
|
predict,
|
|
|
|
|
interpolation,
|
2025-06-25 10:55:50 +02:00
|
|
|
configManager,
|
2026-01-29 09:16:41 +01:00
|
|
|
assetApiConfig,
|
2025-06-12 17:04:02 +02:00
|
|
|
outputUtils,
|
|
|
|
|
configUtils,
|
2025-06-10 12:45:35 +02:00
|
|
|
logger,
|
|
|
|
|
validation,
|
2025-09-05 13:39:15 +02:00
|
|
|
assertions,
|
2025-06-25 17:27:32 +02:00
|
|
|
MeasurementContainer,
|
2025-06-10 12:45:35 +02:00
|
|
|
nrmse,
|
|
|
|
|
state,
|
2025-10-07 18:10:04 +02:00
|
|
|
coolprop,
|
2025-06-25 10:55:50 +02:00
|
|
|
convert,
|
2025-06-25 17:27:32 +02:00
|
|
|
MenuManager,
|
2026-03-11 11:13:05 +01:00
|
|
|
PIDController,
|
|
|
|
|
CascadePIDController,
|
|
|
|
|
createPidController,
|
|
|
|
|
createCascadePidController,
|
2025-07-01 17:05:09 +02:00
|
|
|
childRegistrationUtils,
|
2025-11-13 19:39:48 +01:00
|
|
|
loadCurve, //deprecated replace with loadModel
|
|
|
|
|
loadModel,
|
2026-03-11 13:43:24 +01:00
|
|
|
gravity,
|
|
|
|
|
POSITIONS,
|
|
|
|
|
POSITION_VALUES,
|
2026-03-31 18:07:57 +02:00
|
|
|
isValidPosition,
|
|
|
|
|
Fysics
|
2025-09-23 11:55:44 +02:00
|
|
|
};
|