/* autogenerated from "macros/Branching/FROM.sci" */ function FROM() { FROM.prototype.define = function FROM() { model = scicos_model(); model.sim = "from"; model.in1 = []; model.in2 = []; model.intyp = 1; model.out = -1; model.out2 = -2; model.outtyp = -1; model.ipar = []; model.opar = list("A"); model.blocktype = "c"; model.dep_ut = [false,false]; exprs = ["A"]; gr_i = []; this.x = standard_define([2,1],model,exprs,gr_i); this.x.graphics.id = "From"; return new BasicBlock(this.x); } FROM.prototype.details = function FROM() { return this.x; } FROM.prototype.get = function FROM() { } FROM.prototype.set = function FROM() { this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; model = arg1.model; while (true) { [ok,this.tag,exprs] = scicos_getvalue("Set parameters",["Tag"],list("str",-1),exprs); if (!ok) { break; } if (ok) { if (model.opar!=list(this.tag)) { needcompile = 4; y = needcompile; } graphics.exprs = exprs; model.opar = list(this.tag); this.x.model = model; this.x.graphics = graphics; break; } } needcompile=resume(needcompile) return new BasicBlock(this.x); } }