Commit eaf1d328 authored by Mathias Chouet's avatar Mathias Chouet 🍝
Browse files

Add getAllNubs() method in Session

parent e298de2d
......@@ -641,7 +641,7 @@ export abstract class Nub extends ComputeNode implements IObservable {
}
/**
* Returns all Nubs whose parameters or results are targettes
* Returns all Nubs whose parameters or results are targetted
* by the given one.
* (used for dependencies checking at session saving time)
*/
......
......@@ -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
......
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