jalhyd
Version:
JaLHyd, a Javascript Library for Hydraulics
27 lines • 1.14 kB
TypeScript
import { IObservable, Observer } from "./internal_modules";
export declare class SessionSettings implements IObservable {
private static _instance;
/** session-wide calculation precision, used by all Nubs */
static readonly defaultComputePrecision = 1e-7;
/** session-wide maximum number of iterations, used by all Nubs in Newton() and Dichotomie() */
static readonly defaultMaxIterations = 100;
private _props;
private static readonly ComputePrecisionProp;
private static readonly MaxIterationsProp;
/**
* IObservable delegation.
* Do not use Props IObservable interface to make notifications specific to SessionSettings
* and to not disturb observers.
*/
private _observable;
private constructor();
static get instance(): SessionSettings;
static get precision(): number;
static set precision(p: number);
static get maxIterations(): number;
static set maxIterations(n: number);
addObserver(o: Observer): void;
removeObserver(o: Observer): void;
notifyObservers(data: any, sender?: any): void;
}
//# sourceMappingURL=session_settings.d.ts.map