Commit c8fe3474 authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Added Cloisons list method

Showing with 13 additions and 0 deletions
+13 -0
...@@ -450,6 +450,19 @@ export class Session { ...@@ -450,6 +450,19 @@ export class Session {
return res; return res;
} }
/**
* Returns all Nubs of type Cloisons, to be used as models in PAB
*/
public getCloisonsNubs() {
const cloisonsNubs: Nub[] = [];
for (const n of this._nubs) {
if (n instanceof Cloisons) {
cloisonsNubs.push(n);
}
}
return cloisonsNubs;
}
/** /**
* Crée un Nub de type Section * Crée un Nub de type Section
* @param nt ComputeNodeType * @param nt ComputeNodeType
......
Supports Markdown
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