UNPKG

jalhyd

Version:

JaLHyd, a Javascript Library for Hydraulics

37 lines 1.31 kB
import { Nub } from "../../internal_modules"; import { ParamDefinition } from "../../internal_modules"; import { ParamsEquation } from "../../internal_modules"; import { acSection } from "../../internal_modules"; /** * A Nub that contains an acSection (ex: RegimeUniforme, SectionParametree, Remous) */ export declare abstract class SectionNub extends Nub { /** moved from SectionParametree */ protected _sectionVars: { [key: string]: ParamDefinition; }; /** Section is always the first child */ get section(): acSection; constructor(prms: ParamsEquation, dbg?: boolean); getParameter(name: string): ParamDefinition; /** * Once session is loaded, run a second pass on all linked parameters to * reset their target if needed */ fixLinks(obj: any): { hasErrors: boolean; }; /** * Proxy to setSection() to ensure extra code is executed when * unserialising session (a SectionNub child can only be the * one and only Section) */ addChild(child: Nub, after?: number): void; /** * Sets / replaces the current section */ setSection(s: acSection): void; getPropValue(key: string): any; setPropValue(key: string, val: any, sender?: any): boolean; } //# sourceMappingURL=section_nub.d.ts.map