Rene De Ren
fe2631f29b
refactor: extract validators from validationUtils.js into strategy pattern modules
...
Break the 548-line monolith into focused modules:
- validators/typeValidators.js (number, integer, boolean, string, enum)
- validators/collectionValidators.js (array, set, object)
- validators/curveValidator.js (curve, machineCurve, dimensionStructure)
validationUtils.js now uses a VALIDATORS registry map and delegates to
extracted modules. Reduced from 548 to 217 lines.
Closes #2
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-11 15:15:01 +01:00
Rene De Ren
f95ef43f05
Standardize softwareType to lowercase everywhere
...
- ConfigManager.buildConfig() now lowercases softwareType
- Updated config JSON defaults to lowercase
- childRegistrationUtils lowercases softwareType on extraction
- Closes #8
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-11 15:06:41 +01:00
Rene De Ren
89aec9a7eb
Reset chaining context in MeasurementContainer.clear()
...
Closes #25
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-11 15:06:17 +01:00
Rene De Ren
135dfc31d3
Add base config schema and ConfigManager.buildConfig()
...
- New baseConfig.json: shared schema for general/logging/functionality/asset sections
- ConfigManager.buildConfig(): builds runtime config from UI inputs + domain overrides
- Eliminates the need for each nodeClass to manually construct base config sections
- All nodes can now use: cfgMgr.buildConfig(name, uiConfig, nodeId, domainConfig)
Closes #1
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-11 14:59:26 +01:00
Rene De Ren
96fdf2a27a
Fix orphaned debug log and array bounds check
...
- Remove console.log('hello:') from Measurement.js (#22 )
- Add bounds check for peakIndex in predict_class.js (#23 )
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-11 14:56:42 +01:00
Rene De Ren
c698e5a1bc
Remove deprecated menuUtils and childRegistrationUtils files
...
Closes #6
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-11 14:56:28 +01:00
Rene De Ren
089f4c5129
Add position constants, reactor/settler config schemas
...
- New src/constants/positions.js: POSITIONS enum (upstream/downstream/atEquipment/delta)
- New src/configs/reactor.json: Full schema for CSTR/PFR reactor parameters and ASM3 initial state
- New src/configs/settler.json: Schema for settler node
- Export POSITIONS, POSITION_VALUES, isValidPosition from index.js
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-11 13:43:24 +01:00
Rene De Ren
82094d8d09
Fix ESLint errors, bugs, and add gravity export
...
- Fix missing return in childRegistrationUtils.registerChild()
- Fix assertionUtils: assertNoNaN uses this.assertNoNaN
- Fix logger: nameModule uses this.nameModule
- Fix assetUtils: convert ESM to CommonJS
- Fix childRegistrationUtils_DEPRECATED: desc -> softwareType
- Add gravity export to index.js for rotatingMachine
- Fix ESLint errors across 18 files (no-undef, no-case-declarations,
no-mixed-spaces-and-tabs, parsing errors)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-11 13:39:40 +01:00
p.vanderwilt
a293e0286a
Merge pull request 'Add addtional and updated configs' ( #12 ) from dev-Pieter into main
...
Reviewed-on: https://gitea.centraal.wbd-rd.nl/RnD/generalFunctions/pulls/12
2025-11-06 14:01:32 +00:00
012b8a7ff6
Merge pull request 'Merging to latest updates' ( #10 ) from dev-Rene into main
...
Reviewed-on: https://gitea.centraal.wbd-rd.nl/RnD/generalFunctions/pulls/10
2025-11-03 14:24:58 +00:00
znetsixe
9610e7138d
Added extra pump data
...
lagged sample in measurement
2025-11-03 15:22:51 +01:00
p.vanderwilt
d5d078413c
Add flowNumber configuration to define effluent flow handling
2025-10-31 14:03:54 +01:00
p.vanderwilt
9d8da15d0e
Merge pull request 'Register multiple parents during child registration' ( #9 ) from dev-Pieter into main
...
Reviewed-on: https://gitea.centraal.wbd-rd.nl/RnD/generalFunctions/pulls/9
2025-10-31 10:36:28 +00:00
p.vanderwilt
f653a1e98c
Refactor child setup to support multiple parents consistently
2025-10-24 13:37:26 +02:00
znetsixe
1725c5b0e9
bug fixes for measurement container lagged retrieval-> unit conversion and sample output
2025-10-23 09:51:27 +02:00
znetsixe
d7cb8e1072
latest version
2025-10-21 12:45:06 +02:00
znetsixe
c99d24e4c6
added lagged value functionality for retrieving values further down in memory; Converted position always to lower case strings to avoid problems with caps sensitivity names; added examples for use in examples.js
2025-10-16 14:37:42 +02:00
znetsixe
f9d1348fd0
added pumpingStation config, expanded functionality for difference in measurement container
2025-10-15 14:09:37 +02:00
znetsixe
428c611ec6
added pumping station and commented out console stuf
2025-10-14 13:51:57 +02:00
znetsixe
cffbd51d92
added coolprop
2025-10-07 18:10:04 +02:00
znetsixe
de0b947c56
Updated distance in measurement helper so its a settable compoment. See example.js file in measurement helper folder
2025-10-05 09:34:00 +02:00
Rene De ren
d99561fa80
need to further update measurement emit function
2025-10-03 15:37:08 +02:00
znetsixe
44033da15d
Added logging data on menu and distance
...
Added helper functionality to abort movements in state class and safeguards to NOT be able to abort in protected states.
some caps removal
2025-10-02 17:29:31 +02:00
p.vanderwilt
3886277616
Fix bug in parent registration code block
2025-09-29 17:13:34 +02:00
p.vanderwilt
83018fabe0
Allow for multiple parents
2025-09-29 16:06:06 +02:00
p.vanderwilt
0fb42865ff
Add distance configuration to measurement settings
2025-09-26 15:51:40 +02:00
p.vanderwilt
d7017b5d33
Add logger checks before error logging for position validation
2025-09-26 13:51:59 +02:00
p.vanderwilt
c261335df5
Fix comparison operator in _convertPositionNum2Str method
2025-09-25 13:54:12 +02:00
p.vanderwilt
a41f053d5d
Merge branch 'position-float'
2025-09-24 13:38:50 +02:00
p.vanderwilt
8d7d98f126
Fix inversion bug
2025-09-23 14:31:09 +02:00
p.vanderwilt
3f90685834
Enhance position handling by adding utility methods for conversion
2025-09-23 14:17:42 +02:00
znetsixe
d72bfd5560
updated files
2025-09-22 16:02:04 +02:00
p.vanderwilt
6d30e25daa
Add string handling for position
2025-09-17 14:52:25 +02:00
p.vanderwilt
16e202e841
Refactor position handling in MeasurementContainer to use position values instead of names
2025-09-17 13:21:35 +02:00
znetsixe
241ed1d3cb
errormetrics fix
2025-09-16 12:10:41 +02:00
znetsixe
a30f2c90f4
physicalPosition 1D update
2025-09-05 16:18:42 +02:00
znetsixe
50f99fa642
updated registration logic to be consise
2025-09-04 17:06:30 +02:00
znetsixe
eb15da2a63
update
2025-09-03 14:35:23 +02:00
znetsixe
222d0f56fc
update
2025-09-02 15:47:53 +02:00
znetsixe
e87f9da4bf
license update and enhancements to measurement functionality + child parent relationship
2025-08-07 13:52:29 +02:00
znetsixe
7061d6a539
added support for valve and valvegroupcontrol
2025-07-31 09:09:25 +02:00
znetsixe
2540d19b76
updates to accomodate valve node
2025-07-24 13:17:10 +02:00
p.vanderwilt
950ca2b6b4
Added assertions utility for error handling and validation
2025-07-08 12:57:22 +02:00
znetsixe
4665949c88
bug fixes
2025-07-02 10:54:01 +02:00
znetsixe
a2018509ef
updates to make generic functions work
2025-07-01 17:05:09 +02:00
znetsixe
73f518ecc7
Updates for machine
2025-06-25 17:27:32 +02:00
znetsixe
63c5463160
updates
2025-06-25 14:59:37 +02:00
znetsixe
3198690a81
standaardisation updates
2025-06-25 10:55:50 +02:00
znetsixe
dbc36c2f57
cleaned up method
2025-06-12 17:04:02 +02:00
znetsixe
bc9e3cda90
changed the folder and added index.js
2025-06-10 12:36:39 +02:00