UNPKG

jalhyd

Version:

JaLHyd, a Javascript Library for Hydraulics

63 lines 1.88 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChildNub = void 0; const internal_modules_1 = require("./internal_modules"); /** * A Nub that is meant to exist within a parent only */ class ChildNub extends internal_modules_1.Nub { /** * Forwards to parent, that has vsibility over * all the parameters, including the Structure ones */ unsetCalculatedParam(except) { if (this.parent) { this.parent.unsetCalculatedParam(except); } } /** * Forwards to parent, that has vsibility over * all the parameters, including the Structure ones */ get calculatedParam() { if (this.parent) { return this.parent.calculatedParam; } // For testing purpose without ParallelStructure return this._calculatedParam; } /** * Forwards to parent, that has vsibility over * all the parameters, including the Structure ones */ set calculatedParam(p) { if (this.parent) { this.parent.calculatedParam = p; } else { // For testing purpose without ParallelStructure this._calculatedParam = p; } } /** * Forwards to parent, that has vsibility over * all the parameters, including the Structure ones */ findFirstCalculableParameter(otherThan) { if (this.parent) { return this.parent.findFirstCalculableParameter(otherThan); } return undefined; } /** * Forwards to parent, that has visibility over * all the parameters, including the Structure ones */ resetDefaultCalculatedParam(requirer) { if (this.parent) { this.parent.resetDefaultCalculatedParam(requirer); } } } exports.ChildNub = ChildNub; //# sourceMappingURL=child_nub.js.map