summaryrefslogtreecommitdiff
path: root/js/Electrical
diff options
context:
space:
mode:
authorSunil Shetye2018-06-26 12:08:19 +0530
committerSunil Shetye2018-06-26 12:08:19 +0530
commitafed64f1a0eab0b2d742088186d7bc340a2c895b (patch)
tree7270fd2e6c53e6df90c71e2fcbccd8149c3553a5 /js/Electrical
parent7465daea85285ba7f291b6bf6ddc45caa9e7ad65 (diff)
downloadsci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.tar.gz
sci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.tar.bz2
sci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.zip
return block type in define and set
Diffstat (limited to 'js/Electrical')
-rw-r--r--js/Electrical/CCS.js2
-rw-r--r--js/Electrical/CVS.js2
-rw-r--r--js/Electrical/Capacitor.js2
-rw-r--r--js/Electrical/ConstantVoltage.js2
-rw-r--r--js/Electrical/CurrentSensor.js2
-rw-r--r--js/Electrical/Diode.js2
-rw-r--r--js/Electrical/Ground.js2
-rw-r--r--js/Electrical/Gyrator.js2
-rw-r--r--js/Electrical/IdealTransformer.js2
-rw-r--r--js/Electrical/Inductor.js2
-rw-r--r--js/Electrical/MOTOR.js2
-rw-r--r--js/Electrical/NMOS.js2
-rw-r--r--js/Electrical/NPN.js2
-rw-r--r--js/Electrical/OpAmp.js2
-rw-r--r--js/Electrical/PMOS.js2
-rw-r--r--js/Electrical/PNP.js2
-rw-r--r--js/Electrical/PotentialSensor.js2
-rw-r--r--js/Electrical/Resistor.js2
-rw-r--r--js/Electrical/SineVoltage.js2
-rw-r--r--js/Electrical/Switch.js2
-rw-r--r--js/Electrical/VVsourceAC.js2
-rw-r--r--js/Electrical/VariableResistor.js2
-rw-r--r--js/Electrical/VoltageSensor.js2
-rw-r--r--js/Electrical/VsourceAC.js2
24 files changed, 48 insertions, 0 deletions
diff --git a/js/Electrical/CCS.js b/js/Electrical/CCS.js
index 37468aff..7617d008 100644
--- a/js/Electrical/CCS.js
+++ b/js/Electrical/CCS.js
@@ -47,6 +47,7 @@ function CCS() {
this.x = standard_define([2.1,3],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = Typein;
this.x.graphics.out_implicit = Typeout;
+ return new BasicBlock(this.x);
}
CCS.prototype.details = function CCS() {
return this.x;
@@ -59,5 +60,6 @@ function CCS() {
exprs = graphics.exprs;
model = arg1.model;
this.x = arg1;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/CVS.js b/js/Electrical/CVS.js
index 14967c72..c78c81f5 100644
--- a/js/Electrical/CVS.js
+++ b/js/Electrical/CVS.js
@@ -47,6 +47,7 @@ function CVS() {
this.x = standard_define([2.1,3],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = Typein;
this.x.graphics.out_implicit = Typeout;
+ return new BasicBlock(this.x);
}
CVS.prototype.details = function CVS() {
return this.x;
@@ -59,5 +60,6 @@ function CVS() {
exprs = graphics.exprs;
model = arg1.model;
this.x = arg1;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/Capacitor.js b/js/Electrical/Capacitor.js
index ea76cb96..6d2dd4ab 100644
--- a/js/Electrical/Capacitor.js
+++ b/js/Electrical/Capacitor.js
@@ -21,6 +21,7 @@ function Capacitor() {
this.x = standard_define([2,1.1],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
Capacitor.prototype.details = function Capacitor() {
return this.x;
@@ -44,5 +45,6 @@ function Capacitor() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/ConstantVoltage.js b/js/Electrical/ConstantVoltage.js
index b01c4f44..43a2c0b6 100644
--- a/js/Electrical/ConstantVoltage.js
+++ b/js/Electrical/ConstantVoltage.js
@@ -20,6 +20,7 @@ function ConstantVoltage() {
this.x = standard_define([1.5,1.1],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
ConstantVoltage.prototype.details = function ConstantVoltage() {
return this.x;
@@ -43,5 +44,6 @@ function ConstantVoltage() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/CurrentSensor.js b/js/Electrical/CurrentSensor.js
index 1cf2a40c..3e14a6ee 100644
--- a/js/Electrical/CurrentSensor.js
+++ b/js/Electrical/CurrentSensor.js
@@ -17,6 +17,7 @@ function CurrentSensor() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = [["I"],["E"]];
+ return new BasicBlock(this.x);
}
CurrentSensor.prototype.details = function CurrentSensor() {
return this.x;
@@ -25,5 +26,6 @@ function CurrentSensor() {
}
CurrentSensor.prototype.set = function CurrentSensor() {
this.x = arg1;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js
index 846dbafc..6e0c8417 100644
--- a/js/Electrical/Diode.js
+++ b/js/Electrical/Diode.js
@@ -23,6 +23,7 @@ function Diode() {
this.x = standard_define([2,1],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
Diode.prototype.details = function Diode() {
return this.x;
@@ -46,5 +47,6 @@ function Diode() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/Ground.js b/js/Electrical/Ground.js
index 789de6c8..69ab7bc0 100644
--- a/js/Electrical/Ground.js
+++ b/js/Electrical/Ground.js
@@ -16,6 +16,7 @@ function Ground() {
this.x = standard_define([1,1],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
Ground.prototype.details = function Ground() {
return this.x;
@@ -24,5 +25,6 @@ function Ground() {
}
Ground.prototype.set = function Ground() {
this.x = arg1;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/Gyrator.js b/js/Electrical/Gyrator.js
index 5c6371fb..c1da0455 100644
--- a/js/Electrical/Gyrator.js
+++ b/js/Electrical/Gyrator.js
@@ -47,6 +47,7 @@ function Gyrator() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = Typein;
this.x.graphics.out_implicit = Typeout;
+ return new BasicBlock(this.x);
}
Gyrator.prototype.details = function Gyrator() {
return this.x;
@@ -69,5 +70,6 @@ function Gyrator() {
this.x.graphics.exprs = exprs;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/IdealTransformer.js b/js/Electrical/IdealTransformer.js
index b24da82d..35559b0a 100644
--- a/js/Electrical/IdealTransformer.js
+++ b/js/Electrical/IdealTransformer.js
@@ -47,6 +47,7 @@ function IdealTransformer() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = Typein;
this.x.graphics.out_implicit = Typeout;
+ return new BasicBlock(this.x);
}
IdealTransformer.prototype.details = function IdealTransformer() {
return this.x;
@@ -69,5 +70,6 @@ function IdealTransformer() {
this.x.graphics.exprs = exprs;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/Inductor.js b/js/Electrical/Inductor.js
index 915a8d35..24523d52 100644
--- a/js/Electrical/Inductor.js
+++ b/js/Electrical/Inductor.js
@@ -20,6 +20,7 @@ function Inductor() {
this.x = standard_define([2,0.9],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
Inductor.prototype.details = function Inductor() {
return this.x;
@@ -43,5 +44,6 @@ function Inductor() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/MOTOR.js b/js/Electrical/MOTOR.js
index f6612689..a8c1d4c2 100644
--- a/js/Electrical/MOTOR.js
+++ b/js/Electrical/MOTOR.js
@@ -12,6 +12,7 @@ function MOTOR() {
this.x = standard_define([2,2],model,exprs,gr_i);
this.x.graphics.out_implicit = [["I"],["I"]];
this.x.graphics.in_implicit = ["I"];
+ return new BasicBlock(this.x);
}
MOTOR.prototype.details = function MOTOR() {
return this.x;
@@ -20,5 +21,6 @@ function MOTOR() {
}
MOTOR.prototype.set = function MOTOR() {
this.x = arg1;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/NMOS.js b/js/Electrical/NMOS.js
index 932f4ac4..0a8d1738 100644
--- a/js/Electrical/NMOS.js
+++ b/js/Electrical/NMOS.js
@@ -27,6 +27,7 @@ function NMOS() {
this.x = standard_define([2,2],model,exprs,gr_i);
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = [["I"],["I"],["I"]];
+ return new BasicBlock(this.x);
}
NMOS.prototype.details = function NMOS() {
return this.x;
@@ -49,5 +50,6 @@ function NMOS() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/NPN.js b/js/Electrical/NPN.js
index 93484238..c82ac606 100644
--- a/js/Electrical/NPN.js
+++ b/js/Electrical/NPN.js
@@ -47,6 +47,7 @@ function NPN() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = Typein;
this.x.graphics.out_implicit = Typeout;
+ return new BasicBlock(this.x);
}
NPN.prototype.details = function NPN() {
return this.x;
@@ -69,5 +70,6 @@ function NPN() {
this.x.graphics.exprs = exprs;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/OpAmp.js b/js/Electrical/OpAmp.js
index ceaa3228..4123f4f8 100644
--- a/js/Electrical/OpAmp.js
+++ b/js/Electrical/OpAmp.js
@@ -21,6 +21,7 @@ function OpAmp() {
this.x = standard_define([3,5],model,exprs,gr_i);
this.x.graphics.in_implicit = [["I"],["I"]];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
OpAmp.prototype.details = function OpAmp() {
return this.x;
@@ -43,5 +44,6 @@ function OpAmp() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/PMOS.js b/js/Electrical/PMOS.js
index 4a314521..cd2ba37e 100644
--- a/js/Electrical/PMOS.js
+++ b/js/Electrical/PMOS.js
@@ -27,6 +27,7 @@ function PMOS() {
this.x = standard_define([2,2],model,exprs,gr_i);
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = [["I"],["I"],["I"]];
+ return new BasicBlock(this.x);
}
PMOS.prototype.details = function PMOS() {
return this.x;
@@ -49,5 +50,6 @@ function PMOS() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/PNP.js b/js/Electrical/PNP.js
index bd3fcad3..418bbf9c 100644
--- a/js/Electrical/PNP.js
+++ b/js/Electrical/PNP.js
@@ -47,6 +47,7 @@ function PNP() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = Typein;
this.x.graphics.out_implicit = Typeout;
+ return new BasicBlock(this.x);
}
PNP.prototype.details = function PNP() {
return this.x;
@@ -69,5 +70,6 @@ function PNP() {
this.x.graphics.exprs = exprs;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/PotentialSensor.js b/js/Electrical/PotentialSensor.js
index 036090ad..b2a6dc22 100644
--- a/js/Electrical/PotentialSensor.js
+++ b/js/Electrical/PotentialSensor.js
@@ -17,6 +17,7 @@ function PotentialSensor() {
this.x = standard_define([2,2],model,"",list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["E"];
+ return new BasicBlock(this.x);
}
PotentialSensor.prototype.details = function PotentialSensor() {
return this.x;
@@ -25,5 +26,6 @@ function PotentialSensor() {
}
PotentialSensor.prototype.set = function PotentialSensor() {
this.x = arg1;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/Resistor.js b/js/Electrical/Resistor.js
index c7d1de80..fdc0f662 100644
--- a/js/Electrical/Resistor.js
+++ b/js/Electrical/Resistor.js
@@ -20,6 +20,7 @@ function Resistor() {
this.x = standard_define([2,1],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
Resistor.prototype.details = function Resistor() {
return this.x;
@@ -43,5 +44,6 @@ function Resistor() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js
index 3cab0ebd..0d7a554a 100644
--- a/js/Electrical/SineVoltage.js
+++ b/js/Electrical/SineVoltage.js
@@ -24,6 +24,7 @@ function SineVoltage() {
this.x = standard_define([2,2],model,exprs,gr_i);
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
SineVoltage.prototype.details = function SineVoltage() {
return this.x;
@@ -47,5 +48,6 @@ function SineVoltage() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js
index 0fce8536..d3c8d95b 100644
--- a/js/Electrical/Switch.js
+++ b/js/Electrical/Switch.js
@@ -23,6 +23,7 @@ function Switch() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = [["I"],["E"]];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
Switch.prototype.details = function Switch() {
return this.x;
@@ -45,5 +46,6 @@ function Switch() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/VVsourceAC.js b/js/Electrical/VVsourceAC.js
index 4b707ec4..e87ac43d 100644
--- a/js/Electrical/VVsourceAC.js
+++ b/js/Electrical/VVsourceAC.js
@@ -21,6 +21,7 @@ function VVsourceAC() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I","E"];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
VVsourceAC.prototype.details = function VVsourceAC() {
return this.x;
@@ -44,5 +45,6 @@ function VVsourceAC() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/VariableResistor.js b/js/Electrical/VariableResistor.js
index 0eb5c9ce..f9011e10 100644
--- a/js/Electrical/VariableResistor.js
+++ b/js/Electrical/VariableResistor.js
@@ -17,6 +17,7 @@ function VariableResistor() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I","E"];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
VariableResistor.prototype.details = function VariableResistor() {
return this.x;
@@ -25,5 +26,6 @@ function VariableResistor() {
}
VariableResistor.prototype.set = function VariableResistor() {
this.x = arg1;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/VoltageSensor.js b/js/Electrical/VoltageSensor.js
index ea912b49..e3369b94 100644
--- a/js/Electrical/VoltageSensor.js
+++ b/js/Electrical/VoltageSensor.js
@@ -17,6 +17,7 @@ function VoltageSensor() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = [["I"],["E"]];
+ return new BasicBlock(this.x);
}
VoltageSensor.prototype.details = function VoltageSensor() {
return this.x;
@@ -25,5 +26,6 @@ function VoltageSensor() {
}
VoltageSensor.prototype.set = function VoltageSensor() {
this.x = arg1;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/Electrical/VsourceAC.js b/js/Electrical/VsourceAC.js
index 5b1dd0fe..8a2464c5 100644
--- a/js/Electrical/VsourceAC.js
+++ b/js/Electrical/VsourceAC.js
@@ -21,6 +21,7 @@ function VsourceAC() {
this.x = standard_define([2,2],model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["I"];
+ return new BasicBlock(this.x);
}
VsourceAC.prototype.details = function VsourceAC() {
return this.x;
@@ -44,5 +45,6 @@ function VsourceAC() {
this.x.model = model;
break;
}
+ return new BasicBlock(this.x);
}
}