From f389f174481df676c841ebcc87a7b8b313921bbc Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 17 Sep 2018 16:11:31 +0530 Subject: add importset and getContainer to combined.js --- js/Hydraulics/PerteDP.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'js/Hydraulics/PerteDP.js') diff --git a/js/Hydraulics/PerteDP.js b/js/Hydraulics/PerteDP.js index 80939bc5..f0cd6845 100644 --- a/js/Hydraulics/PerteDP.js +++ b/js/Hydraulics/PerteDP.js @@ -71,4 +71,15 @@ function PerteDP() { PerteDP.prototype.get_popup_title = function PerteDP() { return this.set_param_popup_title; } + PerteDP.prototype.importset = function PerteDP() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.L = ary[0]; + this.D = ary[1]; + this.lambda = ary[2]; + this.z1 = ary[3]; + this.z2 = ary[4]; + this.p_rho = ary[5]; + } + PerteDP.prototype.getContainer = function PerteDP() { return new BasicBlock(this.x); } } -- cgit