Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cassiopee
nghyd
Commits
f8ca35e3
Commit
f8ca35e3
authored
Jan 16, 2019
by
Mathias Chouet
🍝
Browse files
Màj jalhyd: NubFactory => Session
parent
eb43c7ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
f8ca35e3
...
...
@@ -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
...
...
src/app/formulaire/definition/form-definition.ts
View file @
f8ca35e3
...
...
@@ -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}`);
...
...
src/app/services/param/param.service.ts
View file @
f8ca35e3
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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment