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
jalhyd
Commits
eaf1d328
Commit
eaf1d328
authored
Jul 30, 2019
by
Mathias Chouet
🍝
Browse files
Add getAllNubs() method in Session
parent
e298de2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/nub.ts
View file @
eaf1d328
...
...
@@ -641,7 +641,7 @@ export abstract class Nub extends ComputeNode implements IObservable {
}
/**
* Returns all Nubs whose parameters or results are targette
s
* Returns all Nubs whose parameters or results are targette
d
* by the given one.
* (used for dependencies checking at session saving time)
*/
...
...
src/session.ts
View file @
eaf1d328
...
...
@@ -80,8 +80,6 @@ export class Session {
/** instance pour le pattern singleton */
private
static
_instance
:
Session
;
private
defaultPrecision
:
number
=
0.001
;
/** Nubs de la session */
private
_nubs
:
Nub
[];
...
...
@@ -120,6 +118,11 @@ export class Session {
return
this
.
_nubs
.
length
;
}
/** Accessor for Nubs list */
public
getAllNubs
()
{
return
this
.
_nubs
;
}
/**
* Removes a Nub from the session; does not consider Structure nubs inside Calculator nubs
* @param sn the Nub to remove from the session
...
...
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