diff options
author | Sunil Shetye | 2018-06-21 11:00:03 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-21 11:59:38 +0530 |
commit | 3f563b9e29d42266d6680229da5c29f847804834 (patch) | |
tree | 6c6a425d4e1c82db68fa7ecc0d5a71b3647f8990 /js/Linear | |
parent | 7b0bf23e7d94df8f3406f5f64926b1131041ba35 (diff) | |
download | sci2js-3f563b9e29d42266d6680229da5c29f847804834.tar.gz sci2js-3f563b9e29d42266d6680229da5c29f847804834.tar.bz2 sci2js-3f563b9e29d42266d6680229da5c29f847804834.zip |
code cleanup
Diffstat (limited to 'js/Linear')
32 files changed, 256 insertions, 256 deletions
diff --git a/js/Linear/BIGSOM_f.js b/js/Linear/BIGSOM_f.js index 8fbd341d..13cca127 100644 --- a/js/Linear/BIGSOM_f.js +++ b/js/Linear/BIGSOM_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/BIGSOM_f.sci" */ function BIGSOM_f() { -BIGSOM_f.prototype.define = function BIGSOM_f() { + BIGSOM_f.prototype.define = function BIGSOM_f() { sgn=[[1],[1]]; model=scicos_model(); model.sim=list("sum",2); @@ -12,12 +12,12 @@ model.dep_ut=[true,false]; exprs=sci2exp(sgn); gr_i=[]; x=standard_define([2,3],model,exprs,gr_i); -} -BIGSOM_f.prototype.details = function BIGSOM_f() { -} -BIGSOM_f.prototype.get = function BIGSOM_f() { -} -BIGSOM_f.prototype.set = function BIGSOM_f() { + } + BIGSOM_f.prototype.details = function BIGSOM_f() { + } + BIGSOM_f.prototype.get = function BIGSOM_f() { + } + BIGSOM_f.prototype.set = function BIGSOM_f() { x=arg1; graphics=arg1.graphics; model=arg1.model; @@ -37,5 +37,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/CLINDUMMY_f.js b/js/Linear/CLINDUMMY_f.js index c72b5713..3fc5112a 100644 --- a/js/Linear/CLINDUMMY_f.js +++ b/js/Linear/CLINDUMMY_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/CLINDUMMY_f.sci" */ function CLINDUMMY_f() { -CLINDUMMY_f.prototype.define = function CLINDUMMY_f() { + CLINDUMMY_f.prototype.define = function CLINDUMMY_f() { x0=0; model=scicos_model(); model.sim=list("cdummy",4); @@ -10,12 +10,12 @@ model.firing=[]; model.dep_ut=[false,true]; gr_i=[]; x=standard_define([3,2],model,[],gr_i); -} -CLINDUMMY_f.prototype.details = function CLINDUMMY_f() { -} -CLINDUMMY_f.prototype.get = function CLINDUMMY_f() { -} -CLINDUMMY_f.prototype.set = function CLINDUMMY_f() { + } + CLINDUMMY_f.prototype.details = function CLINDUMMY_f() { + } + CLINDUMMY_f.prototype.get = function CLINDUMMY_f() { + } + CLINDUMMY_f.prototype.set = function CLINDUMMY_f() { x=arg1; -} + } } diff --git a/js/Linear/CLSS.js b/js/Linear/CLSS.js index d4465f5e..1bd13689 100644 --- a/js/Linear/CLSS.js +++ b/js/Linear/CLSS.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/CLSS.sci" */ function CLSS() { -CLSS.prototype.define = function CLSS() { + CLSS.prototype.define = function CLSS() { x0=0; A=-1; B=1; @@ -19,12 +19,12 @@ model.dep_ut=[false,true]; exprs=[[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i=[]; x=standard_define([4,2],model,exprs,gr_i); -} -CLSS.prototype.details = function CLSS() { -} -CLSS.prototype.get = function CLSS() { -} -CLSS.prototype.set = function CLSS() { + } + CLSS.prototype.details = function CLSS() { + } + CLSS.prototype.get = function CLSS() { + } + CLSS.prototype.set = function CLSS() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -83,5 +83,5 @@ break; } } } -} + } } diff --git a/js/Linear/CLSS_f.js b/js/Linear/CLSS_f.js index a3af3879..fe2c0dbc 100644 --- a/js/Linear/CLSS_f.js +++ b/js/Linear/CLSS_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/CLSS_f.sci" */ function CLSS_f() { -CLSS_f.prototype.define = function CLSS_f() { + CLSS_f.prototype.define = function CLSS_f() { x0=0; A=-1; B=1; @@ -19,12 +19,12 @@ model.dep_ut=[false,true]; exprs=[[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i=[]; x=standard_define([4,2],model,exprs,gr_i); -} -CLSS_f.prototype.details = function CLSS_f() { -} -CLSS_f.prototype.get = function CLSS_f() { -} -CLSS_f.prototype.set = function CLSS_f() { + } + CLSS_f.prototype.details = function CLSS_f() { + } + CLSS_f.prototype.get = function CLSS_f() { + } + CLSS_f.prototype.set = function CLSS_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -73,5 +73,5 @@ break; } } } -} + } } diff --git a/js/Linear/DELAYV_f.js b/js/Linear/DELAYV_f.js index 8ecb2401..410c96f4 100644 --- a/js/Linear/DELAYV_f.js +++ b/js/Linear/DELAYV_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/DELAYV_f.sci" */ function DELAYV_f() { -DELAYV_f.prototype.define = function DELAYV_f() { + DELAYV_f.prototype.define = function DELAYV_f() { nin=1; z0=zeros(11,1); zz0=z0.slice(1-1,$-1); @@ -19,12 +19,12 @@ model.dep_ut=[true,false]; exprs=[[string(nin)],[strcat(string(z0.slice(1-1,$-1)),";")],[string(T)]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -DELAYV_f.prototype.details = function DELAYV_f() { -} -DELAYV_f.prototype.get = function DELAYV_f() { -} -DELAYV_f.prototype.set = function DELAYV_f() { + } + DELAYV_f.prototype.details = function DELAYV_f() { + } + DELAYV_f.prototype.get = function DELAYV_f() { + } + DELAYV_f.prototype.set = function DELAYV_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -58,5 +58,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/DELAY_f.js b/js/Linear/DELAY_f.js index 05949aa7..667c4976 100644 --- a/js/Linear/DELAY_f.js +++ b/js/Linear/DELAY_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/DELAY_f.sci" */ function DELAY_f() { -DELAY_f.prototype.define = function DELAY_f() { + DELAY_f.prototype.define = function DELAY_f() { evtdly=EVTDLY_f("define"); evtdly.graphics.orig=[243,296]; evtdly.graphics.sz=[40,40]; @@ -63,12 +63,12 @@ x.graphics.in_implicit=["E"]; x.graphics.in_style=""; x.graphics.out_implicit=["E"]; x.graphics.out_style=""; -} -DELAY_f.prototype.details = function DELAY_f() { -} -DELAY_f.prototype.get = function DELAY_f() { -} -DELAY_f.prototype.set = function DELAY_f() { + } + DELAY_f.prototype.details = function DELAY_f() { + } + DELAY_f.prototype.get = function DELAY_f() { + } + DELAY_f.prototype.set = function DELAY_f() { ppath=list(0,0); for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { o=arg1.model.rpar.objs(i); @@ -124,5 +124,5 @@ break; needcompile=0; y=needcompile; typ=newpar; -} + } } diff --git a/js/Linear/DERIV.js b/js/Linear/DERIV.js index 6ba258e6..acec98d0 100644 --- a/js/Linear/DERIV.js +++ b/js/Linear/DERIV.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/DERIV.sci" */ function DERIV() { -DERIV.prototype.define = function DERIV() { + DERIV.prototype.define = function DERIV() { model=scicos_model(); model.sim=list("deriv",4); model.in1=-1; @@ -10,12 +10,12 @@ model.dep_ut=[true,false]; exprs=[]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -DERIV.prototype.details = function DERIV() { -} -DERIV.prototype.get = function DERIV() { -} -DERIV.prototype.set = function DERIV() { + } + DERIV.prototype.details = function DERIV() { + } + DERIV.prototype.get = function DERIV() { + } + DERIV.prototype.set = function DERIV() { x=arg1; -} + } } diff --git a/js/Linear/DIFF_c.js b/js/Linear/DIFF_c.js index 7f5905ab..e6eef6ff 100644 --- a/js/Linear/DIFF_c.js +++ b/js/Linear/DIFF_c.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/DIFF_c.sci" */ function DIFF_c() { -DIFF_c.prototype.define = function DIFF_c() { + DIFF_c.prototype.define = function DIFF_c() { x0=[[0],[0]]; model=scicos_model(); model.sim=list("diffblk_c",10004); @@ -12,12 +12,12 @@ model.dep_ut=[false,true]; exprs=[[strcat(sci2exp(x0[1-1]))],[strcat(sci2exp(x0[2-1]))]]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -DIFF_c.prototype.details = function DIFF_c() { -} -DIFF_c.prototype.get = function DIFF_c() { -} -DIFF_c.prototype.set = function DIFF_c() { + } + DIFF_c.prototype.details = function DIFF_c() { + } + DIFF_c.prototype.get = function DIFF_c() { + } + DIFF_c.prototype.set = function DIFF_c() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -51,5 +51,5 @@ break; } } x.model.firing=[]; -} + } } diff --git a/js/Linear/DLSS.js b/js/Linear/DLSS.js index 48f4069a..eacdb24b 100644 --- a/js/Linear/DLSS.js +++ b/js/Linear/DLSS.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/DLSS.sci" */ function DLSS() { -DLSS.prototype.define = function DLSS() { + DLSS.prototype.define = function DLSS() { x0=0; A=-1; B=1; @@ -18,12 +18,12 @@ model.dep_ut=[false,false]; exprs=[[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i=[]; x=standard_define([4,2],model,exprs,gr_i); -} -DLSS.prototype.details = function DLSS() { -} -DLSS.prototype.get = function DLSS() { -} -DLSS.prototype.set = function DLSS() { + } + DLSS.prototype.details = function DLSS() { + } + DLSS.prototype.get = function DLSS() { + } + DLSS.prototype.set = function DLSS() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -82,5 +82,5 @@ break; } } } -} + } } diff --git a/js/Linear/DLSS_f.js b/js/Linear/DLSS_f.js index 3eeb691a..f521b0e4 100644 --- a/js/Linear/DLSS_f.js +++ b/js/Linear/DLSS_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/DLSS_f.sci" */ function DLSS_f() { -DLSS_f.prototype.define = function DLSS_f() { + DLSS_f.prototype.define = function DLSS_f() { x0=0; A=-1; B=1; @@ -18,12 +18,12 @@ model.dep_ut=[false,false]; exprs=[[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i=[]; x=standard_define([4,2],model,exprs,gr_i); -} -DLSS_f.prototype.details = function DLSS_f() { -} -DLSS_f.prototype.get = function DLSS_f() { -} -DLSS_f.prototype.set = function DLSS_f() { + } + DLSS_f.prototype.details = function DLSS_f() { + } + DLSS_f.prototype.get = function DLSS_f() { + } + DLSS_f.prototype.set = function DLSS_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -72,5 +72,5 @@ break; } } } -} + } } diff --git a/js/Linear/DOLLAR.js b/js/Linear/DOLLAR.js index abcad365..359b75ec 100644 --- a/js/Linear/DOLLAR.js +++ b/js/Linear/DOLLAR.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/DOLLAR.sci" */ function DOLLAR() { -DOLLAR.prototype.define = function DOLLAR() { + DOLLAR.prototype.define = function DOLLAR() { z=0; inh=0; in1=1; @@ -15,12 +15,12 @@ model.blocktype="d"; model.dep_ut=[false,false]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -DOLLAR.prototype.details = function DOLLAR() { -} -DOLLAR.prototype.get = function DOLLAR() { -} -DOLLAR.prototype.set = function DOLLAR() { + } + DOLLAR.prototype.details = function DOLLAR() { + } + DOLLAR.prototype.get = function DOLLAR() { + } + DOLLAR.prototype.set = function DOLLAR() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -86,5 +86,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/DOLLAR_f.js b/js/Linear/DOLLAR_f.js index 203d8dad..ef8a8f98 100644 --- a/js/Linear/DOLLAR_f.js +++ b/js/Linear/DOLLAR_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/DOLLAR_f.sci" */ function DOLLAR_f() { -DOLLAR_f.prototype.define = function DOLLAR_f() { + DOLLAR_f.prototype.define = function DOLLAR_f() { z=0; inh=0; in1=1; @@ -15,12 +15,12 @@ model.blocktype="d"; model.dep_ut=[false,false]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -DOLLAR_f.prototype.details = function DOLLAR_f() { -} -DOLLAR_f.prototype.get = function DOLLAR_f() { -} -DOLLAR_f.prototype.set = function DOLLAR_f() { + } + DOLLAR_f.prototype.details = function DOLLAR_f() { + } + DOLLAR_f.prototype.get = function DOLLAR_f() { + } + DOLLAR_f.prototype.set = function DOLLAR_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -51,5 +51,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/DOLLAR_m.js b/js/Linear/DOLLAR_m.js index d7ce7a98..f4cdefb2 100644 --- a/js/Linear/DOLLAR_m.js +++ b/js/Linear/DOLLAR_m.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/DOLLAR_m.sci" */ function DOLLAR_m() { -DOLLAR_m.prototype.define = function DOLLAR_m() { + DOLLAR_m.prototype.define = function DOLLAR_m() { z=0; inh=0; in1=1; @@ -15,12 +15,12 @@ model.blocktype="d"; model.dep_ut=[false,false]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -DOLLAR_m.prototype.details = function DOLLAR_m() { -} -DOLLAR_m.prototype.get = function DOLLAR_m() { -} -DOLLAR_m.prototype.set = function DOLLAR_m() { + } + DOLLAR_m.prototype.details = function DOLLAR_m() { + } + DOLLAR_m.prototype.get = function DOLLAR_m() { + } + DOLLAR_m.prototype.set = function DOLLAR_m() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -86,5 +86,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/GAINBLK.js b/js/Linear/GAINBLK.js index 83aad919..2f188149 100644 --- a/js/Linear/GAINBLK.js +++ b/js/Linear/GAINBLK.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/GAINBLK.sci" */ function GAINBLK() { -GAINBLK.prototype.define = function GAINBLK() { + GAINBLK.prototype.define = function GAINBLK() { gain=1; in1=-1; out=-1; @@ -18,12 +18,12 @@ model.dep_ut=[true,false]; exprs=[strcat(sci2exp(gain))]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -GAINBLK.prototype.details = function GAINBLK() { -} -GAINBLK.prototype.get = function GAINBLK() { -} -GAINBLK.prototype.set = function GAINBLK() { + } + GAINBLK.prototype.details = function GAINBLK() { + } + GAINBLK.prototype.get = function GAINBLK() { + } + GAINBLK.prototype.set = function GAINBLK() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -143,5 +143,5 @@ break; } } } -} + } } diff --git a/js/Linear/GAINBLK_f.js b/js/Linear/GAINBLK_f.js index 08505007..ad391196 100644 --- a/js/Linear/GAINBLK_f.js +++ b/js/Linear/GAINBLK_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/GAINBLK_f.sci" */ function GAINBLK_f() { -GAINBLK_f.prototype.define = function GAINBLK_f() { + GAINBLK_f.prototype.define = function GAINBLK_f() { gain=1; in1=1; out=1; @@ -14,12 +14,12 @@ model.dep_ut=[true,false]; exprs=[strcat(sci2exp(gain))]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -GAINBLK_f.prototype.details = function GAINBLK_f() { -} -GAINBLK_f.prototype.get = function GAINBLK_f() { -} -GAINBLK_f.prototype.set = function GAINBLK_f() { + } + GAINBLK_f.prototype.details = function GAINBLK_f() { + } + GAINBLK_f.prototype.get = function GAINBLK_f() { + } + GAINBLK_f.prototype.set = function GAINBLK_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -43,5 +43,5 @@ break; } } } -} + } } diff --git a/js/Linear/GAIN_f.js b/js/Linear/GAIN_f.js index 6e8f10bc..fcca61a8 100644 --- a/js/Linear/GAIN_f.js +++ b/js/Linear/GAIN_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/GAIN_f.sci" */ function GAIN_f() { -GAIN_f.prototype.define = function GAIN_f() { + GAIN_f.prototype.define = function GAIN_f() { gain=1; in1=1; out=1; @@ -14,12 +14,12 @@ model.dep_ut=[true,false]; exprs=[[strcat(sci2exp(gain))],[strcat(sci2exp(in1))],[strcat(sci2exp(out))]]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -GAIN_f.prototype.details = function GAIN_f() { -} -GAIN_f.prototype.get = function GAIN_f() { -} -GAIN_f.prototype.set = function GAIN_f() { + } + GAIN_f.prototype.details = function GAIN_f() { + } + GAIN_f.prototype.get = function GAIN_f() { + } + GAIN_f.prototype.set = function GAIN_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -43,5 +43,5 @@ break; } } } -} + } } diff --git a/js/Linear/INTEGRAL.js b/js/Linear/INTEGRAL.js index 04e3bca9..539b6c49 100644 --- a/js/Linear/INTEGRAL.js +++ b/js/Linear/INTEGRAL.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/INTEGRAL.sci" */ function INTEGRAL() { -INTEGRAL.prototype.define = function INTEGRAL() { + INTEGRAL.prototype.define = function INTEGRAL() { maxp=1; minp=-1; rpar=[]; @@ -16,12 +16,12 @@ exprs=string([[0],[0],[0],[maxp],[minp]]); gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); x.graphics.id="1/s"; -} -INTEGRAL.prototype.details = function INTEGRAL() { -} -INTEGRAL.prototype.get = function INTEGRAL() { -} -INTEGRAL.prototype.set = function INTEGRAL() { + } + INTEGRAL.prototype.details = function INTEGRAL() { + } + INTEGRAL.prototype.get = function INTEGRAL() { + } + INTEGRAL.prototype.set = function INTEGRAL() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -76,5 +76,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/INTEGRAL_f.js b/js/Linear/INTEGRAL_f.js index b3711642..95cc752c 100644 --- a/js/Linear/INTEGRAL_f.js +++ b/js/Linear/INTEGRAL_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/INTEGRAL_f.sci" */ function INTEGRAL_f() { -INTEGRAL_f.prototype.define = function INTEGRAL_f() { + INTEGRAL_f.prototype.define = function INTEGRAL_f() { x0=0; model=scicos_model(); model.sim="integr"; @@ -12,12 +12,12 @@ model.dep_ut=[false,true]; exprs=strcat(sci2exp(x0)); gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -INTEGRAL_f.prototype.details = function INTEGRAL_f() { -} -INTEGRAL_f.prototype.get = function INTEGRAL_f() { -} -INTEGRAL_f.prototype.set = function INTEGRAL_f() { + } + INTEGRAL_f.prototype.details = function INTEGRAL_f() { + } + INTEGRAL_f.prototype.get = function INTEGRAL_f() { + } + INTEGRAL_f.prototype.set = function INTEGRAL_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -34,5 +34,5 @@ x.model=model; break; } x.model.firing=[]; -} + } } diff --git a/js/Linear/INTEGRAL_m.js b/js/Linear/INTEGRAL_m.js index d1497320..d18b4af5 100644 --- a/js/Linear/INTEGRAL_m.js +++ b/js/Linear/INTEGRAL_m.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/INTEGRAL_m.sci" */ function INTEGRAL_m() { -INTEGRAL_m.prototype.define = function INTEGRAL_m() { + INTEGRAL_m.prototype.define = function INTEGRAL_m() { maxp=1; minp=-1; rpar=[]; @@ -17,12 +17,12 @@ model.dep_ut=[false,true]; exprs=string([[0],[0],[0],[maxp],[minp]]); gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -INTEGRAL_m.prototype.details = function INTEGRAL_m() { -} -INTEGRAL_m.prototype.get = function INTEGRAL_m() { -} -INTEGRAL_m.prototype.set = function INTEGRAL_m() { + } + INTEGRAL_m.prototype.details = function INTEGRAL_m() { + } + INTEGRAL_m.prototype.get = function INTEGRAL_m() { + } + INTEGRAL_m.prototype.set = function INTEGRAL_m() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -119,5 +119,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/PID.js b/js/Linear/PID.js index 34d08bd4..4bba0cfd 100644 --- a/js/Linear/PID.js +++ b/js/Linear/PID.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/PID.sci" */ function PID() { -PID.prototype.define = function PID() { + PID.prototype.define = function PID() { scs_m=scicos_diagram(version="scicos4.2",props=scicos_params(wpar=[600,450,0,0,600,450],Title=["PID"],tol=[0.0001,0.000001,1.000e-10,100001,0,0],tf=100000,context=" ",void1=[],options=tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(true,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8]),void2=[],void3=[],doc=list())); scs_m.objs[1-1]=scicos_block(gui="INTEGRAL_m",graphics=scicos_graphics(orig=[318.304,183.11733],sz=[40,40],flip=true,theta=0,exprs=[["0"],["0"],["0"],["1"],["-1"]],pin=7,pout=9,pein=[],peout=[],gr_i=[],id="1/s",in_implicit="E",out_implicit="E"),model=scicos_model(sim=list("integral_func",4),in1=1,in2=1,intyp=1,out=1,out2=1,outtyp=1,evtin=[],evtout=[],state=0,dstate=[],odstate=list(),rpar=[],ipar=[],opar=list(),blocktype="c",firing=[],dep_ut=[false,true],label="",nzcross=0,nmode=0,equations=list()),doc=list()); scs_m.objs[2-1]=scicos_block(gui="SUMMATION",graphics=scicos_graphics(orig=[387.97067,172.85067],sz=[40,60],flip=true,theta=0,exprs=[["1"],["[1;1;1]"]],pin=[[10],[9],[11]],pout=19,pein=[],peout=[],gr_i=[],id="",in_implicit=[["E"],["E"],["E"]],out_implicit="E"),model=scicos_model(sim=list("summation",4),in1=[[-1],[-1],[-1]],in2=[[-2],[-2],[-2]],intyp=[[1],[1],[1]],out=-1,out2=-2,outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=[[1],[1],[1]],opar=list(),blocktype="c",firing=[],dep_ut=[true,false],label="",nzcross=0,nmode=0,equations=list()),doc=list()); @@ -37,12 +37,12 @@ model.dep_ut=[false,false]; model.rpar=scs_m; gr_i=[]; x=standard_define([2,2],model,[],gr_i); -} -PID.prototype.details = function PID() { -} -PID.prototype.get = function PID() { -} -PID.prototype.set = function PID() { + } + PID.prototype.details = function PID() { + } + PID.prototype.get = function PID() { + } + PID.prototype.set = function PID() { ppath=list(0,0,0); for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { o=arg1.model.rpar.objs(i); @@ -112,5 +112,5 @@ needcompile=2; x=arg1; y=max(y,needcompile); typ=newpar; -} + } } diff --git a/js/Linear/REGISTER.js b/js/Linear/REGISTER.js index b716157a..ce6d6c13 100644 --- a/js/Linear/REGISTER.js +++ b/js/Linear/REGISTER.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/REGISTER.sci" */ function REGISTER() { -REGISTER.prototype.define = function REGISTER() { + REGISTER.prototype.define = function REGISTER() { z0=zeros(10,1); model=scicos_model(); model.sim=list("delay4",4); @@ -13,12 +13,12 @@ model.dep_ut=[false,false]; exprs=strcat(string(z0),";"); gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -REGISTER.prototype.details = function REGISTER() { -} -REGISTER.prototype.get = function REGISTER() { -} -REGISTER.prototype.set = function REGISTER() { + } + REGISTER.prototype.details = function REGISTER() { + } + REGISTER.prototype.get = function REGISTER() { + } + REGISTER.prototype.set = function REGISTER() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -77,5 +77,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/REGISTER_f.js b/js/Linear/REGISTER_f.js index d9a3cbdb..786d8d1a 100644 --- a/js/Linear/REGISTER_f.js +++ b/js/Linear/REGISTER_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/REGISTER_f.sci" */ function REGISTER_f() { -REGISTER_f.prototype.define = function REGISTER_f() { + REGISTER_f.prototype.define = function REGISTER_f() { z0=zeros(10,1); model=scicos_model(); model.sim="delay"; @@ -13,12 +13,12 @@ model.dep_ut=[false,false]; exprs=strcat(string(z0),";"); gr_i=[]; x=standard_define([2.5,2.5],model,exprs,gr_i); -} -REGISTER_f.prototype.details = function REGISTER_f() { -} -REGISTER_f.prototype.get = function REGISTER_f() { -} -REGISTER_f.prototype.set = function REGISTER_f() { + } + REGISTER_f.prototype.details = function REGISTER_f() { + } + REGISTER_f.prototype.get = function REGISTER_f() { + } + REGISTER_f.prototype.set = function REGISTER_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -40,5 +40,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/SAMPHOLD.js b/js/Linear/SAMPHOLD.js index ef4e4595..5c155e3b 100644 --- a/js/Linear/SAMPHOLD.js +++ b/js/Linear/SAMPHOLD.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/SAMPHOLD.sci" */ function SAMPHOLD() { -SAMPHOLD.prototype.define = function SAMPHOLD() { + SAMPHOLD.prototype.define = function SAMPHOLD() { in1=-1; model=scicos_model(); model.sim=list("samphold4",4); @@ -11,13 +11,13 @@ model.blocktype="d"; model.dep_ut=[true,false]; gr_i=[]; x=standard_define([2,2],model," ",gr_i); -} -SAMPHOLD.prototype.details = function SAMPHOLD() { -} -SAMPHOLD.prototype.get = function SAMPHOLD() { -} -SAMPHOLD.prototype.set = function SAMPHOLD() { + } + SAMPHOLD.prototype.details = function SAMPHOLD() { + } + SAMPHOLD.prototype.get = function SAMPHOLD() { + } + SAMPHOLD.prototype.set = function SAMPHOLD() { x=arg1; x.model.firing=[]; -} + } } diff --git a/js/Linear/SAMPHOLD_m.js b/js/Linear/SAMPHOLD_m.js index bcbcc7cd..3f022788 100644 --- a/js/Linear/SAMPHOLD_m.js +++ b/js/Linear/SAMPHOLD_m.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/SAMPHOLD_m.sci" */ function SAMPHOLD_m() { -SAMPHOLD_m.prototype.define = function SAMPHOLD_m() { + SAMPHOLD_m.prototype.define = function SAMPHOLD_m() { model=scicos_model(); model.sim=list("samphold4_m",4); model.in1=-1; @@ -15,12 +15,12 @@ model.dep_ut=[true,false]; label=[sci2exp(1)]; gr_i=[]; x=standard_define([2,2],model,label,gr_i); -} -SAMPHOLD_m.prototype.details = function SAMPHOLD_m() { -} -SAMPHOLD_m.prototype.get = function SAMPHOLD_m() { -} -SAMPHOLD_m.prototype.set = function SAMPHOLD_m() { + } + SAMPHOLD_m.prototype.details = function SAMPHOLD_m() { + } + SAMPHOLD_m.prototype.get = function SAMPHOLD_m() { + } + SAMPHOLD_m.prototype.set = function SAMPHOLD_m() { x=arg1; x.model.firing=[]; graphics=arg1.graphics; @@ -47,5 +47,5 @@ break; } } } -} + } } diff --git a/js/Linear/SAMPLEHOLD_f.js b/js/Linear/SAMPLEHOLD_f.js index bfc5e184..96624e37 100644 --- a/js/Linear/SAMPLEHOLD_f.js +++ b/js/Linear/SAMPLEHOLD_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/SAMPLEHOLD_f.sci" */ function SAMPLEHOLD_f() { -SAMPLEHOLD_f.prototype.define = function SAMPLEHOLD_f() { + SAMPLEHOLD_f.prototype.define = function SAMPLEHOLD_f() { in1=-1; model=scicos_model(); model.sim="samphold"; @@ -11,13 +11,13 @@ model.blocktype="d"; model.dep_ut=[true,false]; gr_i=[]; x=standard_define([2,2],model," ",gr_i); -} -SAMPLEHOLD_f.prototype.details = function SAMPLEHOLD_f() { -} -SAMPLEHOLD_f.prototype.get = function SAMPLEHOLD_f() { -} -SAMPLEHOLD_f.prototype.set = function SAMPLEHOLD_f() { + } + SAMPLEHOLD_f.prototype.details = function SAMPLEHOLD_f() { + } + SAMPLEHOLD_f.prototype.get = function SAMPLEHOLD_f() { + } + SAMPLEHOLD_f.prototype.set = function SAMPLEHOLD_f() { x=arg1; x.model.firing=[]; -} + } } diff --git a/js/Linear/SOM_f.js b/js/Linear/SOM_f.js index 2f948a32..3d201947 100644 --- a/js/Linear/SOM_f.js +++ b/js/Linear/SOM_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/SOM_f.sci" */ function SOM_f() { -SOM_f.prototype.define = function SOM_f() { + SOM_f.prototype.define = function SOM_f() { sgn=[[1],[1],[1]]; model=scicos_model(); model.sim=list("sum",2); @@ -12,12 +12,12 @@ model.dep_ut=[true,false]; exprs=[[sci2exp(1)],[sci2exp(sgn)]]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); -} -SOM_f.prototype.details = function SOM_f() { -} -SOM_f.prototype.get = function SOM_f() { -} -SOM_f.prototype.set = function SOM_f() { + } + SOM_f.prototype.details = function SOM_f() { + } + SOM_f.prototype.get = function SOM_f() { + } + SOM_f.prototype.set = function SOM_f() { x=arg1; graphics=arg1.graphics; model=arg1.model; @@ -36,5 +36,5 @@ labs=["down","right","up"]; str=[["This sum block is obsolete","parameters cannot be modified. Please replace it with new sum block"],["and gain blocks in the linear palette"," ","Input ports are located at up, side and down positions.","Current gains are:"]]; str=[[str],[(part(labs.slice(),1,7)+exprs.slice())]]; message(str); -} + } } diff --git a/js/Linear/SUMMATION.js b/js/Linear/SUMMATION.js index 4b54dda9..53da4f34 100644 --- a/js/Linear/SUMMATION.js +++ b/js/Linear/SUMMATION.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/SUMMATION.sci" */ function SUMMATION() { -SUMMATION.prototype.define = function SUMMATION() { + SUMMATION.prototype.define = function SUMMATION() { sgn=[[1],[-1]]; model=scicos_model(); model.sim=list("summation",4); @@ -14,12 +14,12 @@ model.dep_ut=[true,false]; exprs=sci2exp(sgn); gr_i=[]; x=standard_define([2,3],model,exprs,gr_i); -} -SUMMATION.prototype.details = function SUMMATION() { -} -SUMMATION.prototype.get = function SUMMATION() { -} -SUMMATION.prototype.set = function SUMMATION() { + } + SUMMATION.prototype.details = function SUMMATION() { + } + SUMMATION.prototype.get = function SUMMATION() { + } + SUMMATION.prototype.set = function SUMMATION() { x=arg1; graphics=arg1.graphics; model=arg1.model; @@ -133,5 +133,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/SUM_f.js b/js/Linear/SUM_f.js index 2fae7a87..15e8df7a 100644 --- a/js/Linear/SUM_f.js +++ b/js/Linear/SUM_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/SUM_f.sci" */ function SUM_f() { -SUM_f.prototype.define = function SUM_f() { + SUM_f.prototype.define = function SUM_f() { model=scicos_model(); model.sim=list("plusblk",2); model.in1=[[-1],[-1],[-1]]; @@ -10,12 +10,12 @@ model.dep_ut=[true,false]; gr_i=[]; exprs=[]; x=standard_define([1,1],model,exprs,gr_i); -} -SUM_f.prototype.details = function SUM_f() { -} -SUM_f.prototype.get = function SUM_f() { -} -SUM_f.prototype.set = function SUM_f() { + } + SUM_f.prototype.details = function SUM_f() { + } + SUM_f.prototype.get = function SUM_f() { + } + SUM_f.prototype.set = function SUM_f() { x=arg1; -} + } } diff --git a/js/Linear/TCLSS.js b/js/Linear/TCLSS.js index d26c9112..df49ee89 100644 --- a/js/Linear/TCLSS.js +++ b/js/Linear/TCLSS.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/TCLSS.sci" */ function TCLSS() { -TCLSS.prototype.define = function TCLSS() { + TCLSS.prototype.define = function TCLSS() { x0=0; A=0; B=1; @@ -21,12 +21,12 @@ model.dep_ut=[false,true]; exprs=[[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -TCLSS.prototype.details = function TCLSS() { -} -TCLSS.prototype.get = function TCLSS() { -} -TCLSS.prototype.set = function TCLSS() { + } + TCLSS.prototype.details = function TCLSS() { + } + TCLSS.prototype.get = function TCLSS() { + } + TCLSS.prototype.set = function TCLSS() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -80,5 +80,5 @@ break; } } } -} + } } diff --git a/js/Linear/TCLSS_f.js b/js/Linear/TCLSS_f.js index 838267e2..9da638ee 100644 --- a/js/Linear/TCLSS_f.js +++ b/js/Linear/TCLSS_f.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/TCLSS_f.sci" */ function TCLSS_f() { -TCLSS_f.prototype.define = function TCLSS_f() { + TCLSS_f.prototype.define = function TCLSS_f() { x0=0; A=0; B=1; @@ -21,12 +21,12 @@ model.dep_ut=[false,true]; exprs=[[strcat(sci2exp(A))],[strcat(sci2exp(B))],[strcat(sci2exp(C))],[strcat(sci2exp(D))],[strcat(sci2exp(x0))]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -TCLSS_f.prototype.details = function TCLSS_f() { -} -TCLSS_f.prototype.get = function TCLSS_f() { -} -TCLSS_f.prototype.set = function TCLSS_f() { + } + TCLSS_f.prototype.details = function TCLSS_f() { + } + TCLSS_f.prototype.get = function TCLSS_f() { + } + TCLSS_f.prototype.set = function TCLSS_f() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -80,5 +80,5 @@ break; } } } -} + } } diff --git a/js/Linear/TIME_DELAY.js b/js/Linear/TIME_DELAY.js index 94678dec..65dc2668 100644 --- a/js/Linear/TIME_DELAY.js +++ b/js/Linear/TIME_DELAY.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/TIME_DELAY.sci" */ function TIME_DELAY() { -TIME_DELAY.prototype.define = function TIME_DELAY() { + TIME_DELAY.prototype.define = function TIME_DELAY() { nin=1; T=1; init=0; @@ -16,12 +16,12 @@ model.dep_ut=[false,true]; exprs=[[string(T)],[string(init)],[string(N)]]; gr_i=[]; x=standard_define([3.5,2],model,exprs,gr_i); -} -TIME_DELAY.prototype.details = function TIME_DELAY() { -} -TIME_DELAY.prototype.get = function TIME_DELAY() { -} -TIME_DELAY.prototype.set = function TIME_DELAY() { + } + TIME_DELAY.prototype.details = function TIME_DELAY() { + } + TIME_DELAY.prototype.get = function TIME_DELAY() { + } + TIME_DELAY.prototype.set = function TIME_DELAY() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -53,5 +53,5 @@ x.model=model; break; } } -} + } } diff --git a/js/Linear/VARIABLE_DELAY.js b/js/Linear/VARIABLE_DELAY.js index d66b25fa..e76d6a04 100644 --- a/js/Linear/VARIABLE_DELAY.js +++ b/js/Linear/VARIABLE_DELAY.js @@ -1,6 +1,6 @@ /* autogenerated from "macros/Linear/VARIABLE_DELAY.sci" */ function VARIABLE_DELAY() { -VARIABLE_DELAY.prototype.define = function VARIABLE_DELAY() { + VARIABLE_DELAY.prototype.define = function VARIABLE_DELAY() { nin=1; T=1; init=0; @@ -16,12 +16,12 @@ model.dep_ut=[false,false]; exprs=[[string(T)],[string(init)],[string(N)]]; gr_i=[]; x=standard_define([3,2],model,exprs,gr_i); -} -VARIABLE_DELAY.prototype.details = function VARIABLE_DELAY() { -} -VARIABLE_DELAY.prototype.get = function VARIABLE_DELAY() { -} -VARIABLE_DELAY.prototype.set = function VARIABLE_DELAY() { + } + VARIABLE_DELAY.prototype.details = function VARIABLE_DELAY() { + } + VARIABLE_DELAY.prototype.get = function VARIABLE_DELAY() { + } + VARIABLE_DELAY.prototype.set = function VARIABLE_DELAY() { x=arg1; graphics=arg1.graphics; exprs=graphics.exprs; @@ -52,5 +52,5 @@ x.model=model; break; } } -} + } } |