Commit a051e33c authored by Grand Francois's avatar Grand Francois
Browse files

#43 création d'une classe spécifique FormulaireDever

parent 7bbd1633
import { FormDefParallelStructures } from "../form-def-parallel-structures";
import { FormDefParamToCalculate } from "../form-def-paramcalc";
import { FormComputeParallelStructures } from "../form-compute-parallel-structures";
import { FormResultFixedVar } from "../form-result-fixedvar";
import { CalculatorType, ComputeNodeType, StructureType, LoiDebit } from "jalhyd";
import { FormulaireParallelStructure } from "./form-parallel-structures";
export class FormulaireDever extends FormulaireParallelStructure {
constructor() {
super();
}
protected get defaultProperties(): {} {
return {
"calcType": CalculatorType.Dever, "nodeType": ComputeNodeType.None,
"structureType": StructureType.SeuilRectangulaire, "loiDebit": LoiDebit.WeirFree
};
}
}
......@@ -24,6 +24,7 @@ import { FormulaireRegimeUniforme } from "../../formulaire/definition/concrete/f
import { FormulairePasseBassinDimensions } from "../../formulaire/definition/concrete/form-passe-bassin-dim";
import { FormulairePasseBassinPuissance } from "../../formulaire/definition/concrete/form-passe-bassin-puissance";
import { FormulaireParallelStructure } from "../../formulaire/definition/concrete/form-parallel-structures";
import { FormulaireDever } from "../../formulaire/definition/concrete/form-dever";
@Injectable()
export class FormulaireService extends Observable {
......@@ -157,7 +158,7 @@ export class FormulaireService extends Observable {
break;
case CalculatorType.Dever:
f = new FormulaireParallelStructure();
f = new FormulaireDever();
break;
default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment