Skip to content
Snippets Groups Projects
Commit a2caa2cb authored by mathias.chouet's avatar mathias.chouet
Browse files

lint

parent 17bfb663
No related branches found
No related tags found
No related merge requests found
......@@ -133,23 +133,6 @@ export abstract class Nub extends ComputeNode implements IObservable {
}
}
/**
* Returns values of parameters and the result of the calculation for the calculated parameter
* @param sVarCalc Symbol of the calculated param
* @param result Result object of the calculation
*/
protected getParamValuesAfterCalc(sVarCalc: string, result: Result): { [key: string]: number } {
const cPrms: { [key: string]: number } = {};
for (const p of this.parameterIterator) {
if (p.symbol === sVarCalc) {
cPrms[p.symbol] = result.vCalc;
} else {
cPrms[p.symbol] = p.v;
}
}
return cPrms;
}
/**
* Resets the calculated parameter to the default one if it is in SINGLE
* mode, or else to the first calculable parameter other than requirer.
......@@ -1051,6 +1034,23 @@ export abstract class Nub extends ComputeNode implements IObservable {
this._observable.notifyObservers(data, sender);
}
/**
* Returns values of parameters and the result of the calculation for the calculated parameter
* @param sVarCalc Symbol of the calculated param
* @param result Result object of the calculation
*/
protected getParamValuesAfterCalc(sVarCalc: string, result: Result): { [key: string]: number } {
const cPrms: { [key: string]: number } = {};
for (const p of this.parameterIterator) {
if (p.symbol === sVarCalc) {
cPrms[p.symbol] = result.vCalc;
} else {
cPrms[p.symbol] = p.v;
}
}
return cPrms;
}
/**
* For all SINGLE, LINK and CALC parameters, copies singleValue to
* sandbox value (.v) before calculation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment