From c8fe3474439554adebb223bb06ae148cbb7c8448 Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Mon, 6 May 2019 15:01:00 +0200
Subject: [PATCH] Added Cloisons list method

---
 src/session.ts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/session.ts b/src/session.ts
index eec7fc62..f9620f95 100644
--- a/src/session.ts
+++ b/src/session.ts
@@ -450,6 +450,19 @@ export class Session {
         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
      * @param nt ComputeNodeType
-- 
GitLab