P11.5 + B2.1/B2.2: per-command units + description (where applicable)
Adds to scalar setters whose payloads are
plain numbers OR {value, unit}. Skipped where payload is compound or
mode-dependent (control-%, {F, C: [...]}, etc.) — documented inline.
Every command gains a description field for wikiGen consumption.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,36 +12,44 @@ module.exports = [
|
|||||||
topic: 'data.clock',
|
topic: 'data.clock',
|
||||||
aliases: ['clock'],
|
aliases: ['clock'],
|
||||||
payloadSchema: { type: 'any' },
|
payloadSchema: { type: 'any' },
|
||||||
|
description: 'Push the simulation clock tick (timestamp / dt) to the ASM solver.',
|
||||||
handler: handlers.dataClock,
|
handler: handlers.dataClock,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
topic: 'data.fluent',
|
topic: 'data.fluent',
|
||||||
aliases: ['Fluent'],
|
aliases: ['Fluent'],
|
||||||
payloadSchema: { type: 'object' },
|
payloadSchema: { type: 'object' },
|
||||||
|
// Compound payload `{F, C: [...]}` — registry-level units normalisation is
|
||||||
|
// skipped (the handler converts per-field internally).
|
||||||
|
description: 'Push the influent stream (payload: {F: flow m3/h, C: [concentrations mg/L]}).',
|
||||||
handler: handlers.dataFluent,
|
handler: handlers.dataFluent,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
topic: 'data.otr',
|
topic: 'data.otr',
|
||||||
aliases: ['OTR'],
|
aliases: ['OTR'],
|
||||||
payloadSchema: { type: 'any' },
|
payloadSchema: { type: 'any' },
|
||||||
|
description: 'Push the current oxygen-transfer rate into the reactor.',
|
||||||
handler: handlers.dataOTR,
|
handler: handlers.dataOTR,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
topic: 'data.temperature',
|
topic: 'data.temperature',
|
||||||
aliases: ['Temperature'],
|
aliases: ['Temperature'],
|
||||||
payloadSchema: { type: 'any' },
|
payloadSchema: { type: 'any' },
|
||||||
|
description: 'Push the current reactor temperature.',
|
||||||
handler: handlers.dataTemperature,
|
handler: handlers.dataTemperature,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
topic: 'data.dispersion',
|
topic: 'data.dispersion',
|
||||||
aliases: ['Dispersion'],
|
aliases: ['Dispersion'],
|
||||||
payloadSchema: { type: 'any' },
|
payloadSchema: { type: 'any' },
|
||||||
|
description: 'Push a dispersion/mixing parameter update.',
|
||||||
handler: handlers.dataDispersion,
|
handler: handlers.dataDispersion,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
topic: 'child.register',
|
topic: 'child.register',
|
||||||
aliases: ['registerChild'],
|
aliases: ['registerChild'],
|
||||||
payloadSchema: { type: 'any' },
|
payloadSchema: { type: 'any' },
|
||||||
|
description: 'Register a child node (settler / measurement) with this reactor.',
|
||||||
handler: handlers.childRegister,
|
handler: handlers.childRegister,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user