From f8ca35e38a2f3ee4eb745f20c00f803ac90f45c5 Mon Sep 17 00:00:00 2001 From: "mathias.chouet" <mathias.chouet@irstea.fr> Date: Wed, 16 Jan 2019 12:28:02 +0100 Subject: [PATCH] =?UTF-8?q?M=C3=A0j=20jalhyd:=20NubFactory=20=3D>=20Sessio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- src/app/formulaire/definition/form-definition.ts | 2 +- src/app/services/param/param.service.ts | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1ee1be580..4692536a0 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ and then : * Ajouter une valeur à l'enum _CalculatorType_ pour identifier le type de calculette (par ex _MaCalculette_). -* Compléter la méthode _NubFactory.createNub()_. +* Compléter la méthode _Session.createNub()_. ## ngHyd diff --git a/src/app/formulaire/definition/form-definition.ts b/src/app/formulaire/definition/form-definition.ts index ea579d10d..1e5377872 100644 --- a/src/app/formulaire/definition/form-definition.ts +++ b/src/app/formulaire/definition/form-definition.ts @@ -292,7 +292,7 @@ export abstract class FormulaireDefinition extends FormulaireNode implements Obs // console.log("-----"); - // for (const n of NubFactory.getInstance().sessionNubIterator) { + // for (const n of Session.getInstance().sessionNubIterator) { // console.log(n.nub); // for (const p of n.nub.parameterIterator) // console.log(`${p.symbol} uid ${p.uid} props ${n.properties} mode ${p.valueMode} val ${p.uncheckedValue}`); diff --git a/src/app/services/param/param.service.ts b/src/app/services/param/param.service.ts index cd117e6d0..0c529caf3 100644 --- a/src/app/services/param/param.service.ts +++ b/src/app/services/param/param.service.ts @@ -1,4 +1,4 @@ -import { ParamDomain, ParamDefinition, ParamDomainValue, ParamCalculability, NubFactory, SessionNub, Props } from "jalhyd"; +import { ParamDomain, ParamDefinition, ParamDomainValue, ParamCalculability, Session, SessionNub, Props } from "jalhyd"; import { NgParameter } from "../../formulaire/ngparam"; import { Injectable } from "@angular/core"; @@ -92,18 +92,18 @@ export class ParamService { } public createSessionNub(params: Props | {}): SessionNub { - return NubFactory.getInstance().createSessionNub(params); + return Session.getInstance().createSessionNub(params); } public findSessionNub(params: Props | {}): SessionNub { - return NubFactory.getInstance().findSessionNub(params); + return Session.getInstance().findSessionNub(params); } public replaceSessionNub(sn: SessionNub, params: Props): SessionNub { - return NubFactory.getInstance().replaceSessionNub(sn, params); + return Session.getInstance().replaceSessionNub(sn, params); } public deleteSessionNub(sn: SessionNub) { - NubFactory.getInstance().deleteSessionNub(sn); + Session.getInstance().deleteSessionNub(sn); } } -- GitLab