diff options
Diffstat (limited to 'js/Electrical')
-rw-r--r-- | js/Electrical/CCS.js | 1 | ||||
-rw-r--r-- | js/Electrical/CVS.js | 1 | ||||
-rw-r--r-- | js/Electrical/Capacitor.js | 7 | ||||
-rw-r--r-- | js/Electrical/ConstantVoltage.js | 6 | ||||
-rw-r--r-- | js/Electrical/CurrentSensor.js | 1 | ||||
-rw-r--r-- | js/Electrical/Diode.js | 9 | ||||
-rw-r--r-- | js/Electrical/Ground.js | 1 | ||||
-rw-r--r-- | js/Electrical/Gyrator.js | 7 | ||||
-rw-r--r-- | js/Electrical/IdealTransformer.js | 6 | ||||
-rw-r--r-- | js/Electrical/Inductor.js | 6 | ||||
-rw-r--r-- | js/Electrical/MOTOR.js | 1 | ||||
-rw-r--r-- | js/Electrical/NMOS.js | 14 | ||||
-rw-r--r-- | js/Electrical/NPN.js | 22 | ||||
-rw-r--r-- | js/Electrical/OpAmp.js | 8 | ||||
-rw-r--r-- | js/Electrical/PMOS.js | 14 | ||||
-rw-r--r-- | js/Electrical/PNP.js | 22 | ||||
-rw-r--r-- | js/Electrical/PotentialSensor.js | 1 | ||||
-rw-r--r-- | js/Electrical/Resistor.js | 6 | ||||
-rw-r--r-- | js/Electrical/SineVoltage.js | 10 | ||||
-rw-r--r-- | js/Electrical/Switch.js | 7 | ||||
-rw-r--r-- | js/Electrical/VVsourceAC.js | 6 | ||||
-rw-r--r-- | js/Electrical/VariableResistor.js | 1 | ||||
-rw-r--r-- | js/Electrical/VoltageSensor.js | 1 | ||||
-rw-r--r-- | js/Electrical/VsourceAC.js | 7 |
24 files changed, 165 insertions, 0 deletions
diff --git a/js/Electrical/CCS.js b/js/Electrical/CCS.js index 9afa75ad..1dd1dbfb 100644 --- a/js/Electrical/CCS.js +++ b/js/Electrical/CCS.js @@ -62,4 +62,5 @@ function CCS() { CCS.prototype.get_popup_title = function CCS() { return; } + CCS.prototype.getContainer = function CCS() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/CVS.js b/js/Electrical/CVS.js index 4ac0360b..046f609a 100644 --- a/js/Electrical/CVS.js +++ b/js/Electrical/CVS.js @@ -62,4 +62,5 @@ function CVS() { CVS.prototype.get_popup_title = function CVS() { return; } + CVS.prototype.getContainer = function CVS() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/Capacitor.js b/js/Electrical/Capacitor.js index 50e5ac3e..b5428523 100644 --- a/js/Electrical/Capacitor.js +++ b/js/Electrical/Capacitor.js @@ -57,4 +57,11 @@ function Capacitor() { Capacitor.prototype.get_popup_title = function Capacitor() { return this.set_param_popup_title; } + Capacitor.prototype.importset = function Capacitor() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.C = ary[0]; + this.v = ary[1]; + } + Capacitor.prototype.getContainer = function Capacitor() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/ConstantVoltage.js b/js/Electrical/ConstantVoltage.js index d1a1efb9..c37c72e6 100644 --- a/js/Electrical/ConstantVoltage.js +++ b/js/Electrical/ConstantVoltage.js @@ -54,4 +54,10 @@ function ConstantVoltage() { ConstantVoltage.prototype.get_popup_title = function ConstantVoltage() { return this.set_param_popup_title; } + ConstantVoltage.prototype.importset = function ConstantVoltage() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.V = ary[0]; + } + ConstantVoltage.prototype.getContainer = function ConstantVoltage() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/CurrentSensor.js b/js/Electrical/CurrentSensor.js index 3e80c859..b6366d58 100644 --- a/js/Electrical/CurrentSensor.js +++ b/js/Electrical/CurrentSensor.js @@ -31,4 +31,5 @@ function CurrentSensor() { CurrentSensor.prototype.get_popup_title = function CurrentSensor() { return; } + CurrentSensor.prototype.getContainer = function CurrentSensor() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js index b50e5e1c..ed1dd814 100644 --- a/js/Electrical/Diode.js +++ b/js/Electrical/Diode.js @@ -63,4 +63,13 @@ function Diode() { Diode.prototype.get_popup_title = function Diode() { return this.set_param_popup_title; } + Diode.prototype.importset = function Diode() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.Ids = ary[0]; + this.Vt = ary[1]; + this.Maxexp = ary[2]; + this.R = ary[3]; + } + Diode.prototype.getContainer = function Diode() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/Ground.js b/js/Electrical/Ground.js index da4710ca..ad9d574c 100644 --- a/js/Electrical/Ground.js +++ b/js/Electrical/Ground.js @@ -30,4 +30,5 @@ function Ground() { Ground.prototype.get_popup_title = function Ground() { return; } + Ground.prototype.getContainer = function Ground() { return new GroundBlock(this.x); } } diff --git a/js/Electrical/Gyrator.js b/js/Electrical/Gyrator.js index 71c2b2af..8519cdd0 100644 --- a/js/Electrical/Gyrator.js +++ b/js/Electrical/Gyrator.js @@ -82,4 +82,11 @@ function Gyrator() { Gyrator.prototype.get_popup_title = function Gyrator() { return this.set_param_popup_title; } + Gyrator.prototype.importset = function Gyrator() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.G1 = ary[0]; + this.G2 = ary[1]; + } + Gyrator.prototype.getContainer = function Gyrator() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/IdealTransformer.js b/js/Electrical/IdealTransformer.js index 69d389e8..584ebded 100644 --- a/js/Electrical/IdealTransformer.js +++ b/js/Electrical/IdealTransformer.js @@ -80,4 +80,10 @@ function IdealTransformer() { IdealTransformer.prototype.get_popup_title = function IdealTransformer() { return this.set_param_popup_title; } + IdealTransformer.prototype.importset = function IdealTransformer() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.N = ary[0]; + } + IdealTransformer.prototype.getContainer = function IdealTransformer() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/Inductor.js b/js/Electrical/Inductor.js index 1ae39c6e..eb7c148f 100644 --- a/js/Electrical/Inductor.js +++ b/js/Electrical/Inductor.js @@ -54,4 +54,10 @@ function Inductor() { Inductor.prototype.get_popup_title = function Inductor() { return this.set_param_popup_title; } + Inductor.prototype.importset = function Inductor() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.L = ary[0]; + } + Inductor.prototype.getContainer = function Inductor() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/MOTOR.js b/js/Electrical/MOTOR.js index 7c834816..b950bd46 100644 --- a/js/Electrical/MOTOR.js +++ b/js/Electrical/MOTOR.js @@ -26,4 +26,5 @@ function MOTOR() { MOTOR.prototype.get_popup_title = function MOTOR() { return; } + MOTOR.prototype.getContainer = function MOTOR() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/NMOS.js b/js/Electrical/NMOS.js index 79570aba..036fbadb 100644 --- a/js/Electrical/NMOS.js +++ b/js/Electrical/NMOS.js @@ -76,4 +76,18 @@ function NMOS() { NMOS.prototype.get_popup_title = function NMOS() { return this.set_param_popup_title; } + NMOS.prototype.importset = function NMOS() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.W = ary[0]; + this.L = ary[1]; + this.Beta = ary[2]; + this.Vt = ary[3]; + this.K2 = ary[4]; + this.K5 = ary[5]; + this.dW = ary[6]; + this.dL = ary[7]; + this.RDS = ary[8]; + } + NMOS.prototype.getContainer = function NMOS() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/NPN.js b/js/Electrical/NPN.js index 5d38e053..08768138 100644 --- a/js/Electrical/NPN.js +++ b/js/Electrical/NPN.js @@ -112,4 +112,26 @@ function NPN() { NPN.prototype.get_popup_title = function NPN() { return this.set_param_popup_title; } + NPN.prototype.importset = function NPN() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.Bf = ary[0]; + this.Br = ary[1]; + this.Is = ary[2]; + this.Vak = ary[3]; + this.Tauf = ary[4]; + this.Taur = ary[5]; + this.Ccs = ary[6]; + this.Cje = ary[7]; + this.Cjc = ary[8]; + this.Phie = ary[9]; + this.Me = ary[10]; + this.Phic = ary[11]; + this.Mc = ary[12]; + this.Gbc = ary[13]; + this.Gbe = ary[14]; + this.Vt = ary[15]; + this.EMinMax = ary[16]; + } + NPN.prototype.getContainer = function NPN() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/OpAmp.js b/js/Electrical/OpAmp.js index 266c2f7e..d9ee0174 100644 --- a/js/Electrical/OpAmp.js +++ b/js/Electrical/OpAmp.js @@ -58,4 +58,12 @@ function OpAmp() { OpAmp.prototype.get_popup_title = function OpAmp() { return this.set_param_popup_title; } + OpAmp.prototype.importset = function OpAmp() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.OLGain = ary[0]; + this.SatH = ary[1]; + this.SatL = ary[2]; + } + OpAmp.prototype.getContainer = function OpAmp() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/PMOS.js b/js/Electrical/PMOS.js index 11a1d8a0..7010094f 100644 --- a/js/Electrical/PMOS.js +++ b/js/Electrical/PMOS.js @@ -76,4 +76,18 @@ function PMOS() { PMOS.prototype.get_popup_title = function PMOS() { return this.set_param_popup_title; } + PMOS.prototype.importset = function PMOS() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.W = ary[0]; + this.L = ary[1]; + this.Beta = ary[2]; + this.Vt = ary[3]; + this.K2 = ary[4]; + this.K5 = ary[5]; + this.dW = ary[6]; + this.dL = ary[7]; + this.RDS = ary[8]; + } + PMOS.prototype.getContainer = function PMOS() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/PNP.js b/js/Electrical/PNP.js index 6d660004..70d145e0 100644 --- a/js/Electrical/PNP.js +++ b/js/Electrical/PNP.js @@ -112,4 +112,26 @@ function PNP() { PNP.prototype.get_popup_title = function PNP() { return this.set_param_popup_title; } + PNP.prototype.importset = function PNP() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.Bf = ary[0]; + this.Br = ary[1]; + this.Is = ary[2]; + this.Vak = ary[3]; + this.Tauf = ary[4]; + this.Taur = ary[5]; + this.Ccs = ary[6]; + this.Cje = ary[7]; + this.Cjc = ary[8]; + this.Phie = ary[9]; + this.Me = ary[10]; + this.Phic = ary[11]; + this.Mc = ary[12]; + this.Gbc = ary[13]; + this.Gbe = ary[14]; + this.Vt = ary[15]; + this.EMinMax = ary[16]; + } + PNP.prototype.getContainer = function PNP() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/PotentialSensor.js b/js/Electrical/PotentialSensor.js index 8967885a..431dbde6 100644 --- a/js/Electrical/PotentialSensor.js +++ b/js/Electrical/PotentialSensor.js @@ -31,4 +31,5 @@ function PotentialSensor() { PotentialSensor.prototype.get_popup_title = function PotentialSensor() { return; } + PotentialSensor.prototype.getContainer = function PotentialSensor() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/Resistor.js b/js/Electrical/Resistor.js index 5fb15d83..c5e7f9f2 100644 --- a/js/Electrical/Resistor.js +++ b/js/Electrical/Resistor.js @@ -54,4 +54,10 @@ function Resistor() { Resistor.prototype.get_popup_title = function Resistor() { return this.set_param_popup_title; } + Resistor.prototype.importset = function Resistor() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.R = ary[0]; + } + Resistor.prototype.getContainer = function Resistor() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js index b23ec90f..a72080d9 100644 --- a/js/Electrical/SineVoltage.js +++ b/js/Electrical/SineVoltage.js @@ -66,4 +66,14 @@ function SineVoltage() { SineVoltage.prototype.get_popup_title = function SineVoltage() { return this.set_param_popup_title; } + SineVoltage.prototype.importset = function SineVoltage() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.V = ary[0]; + this.ph = ary[1]; + this.frq = ary[2]; + this.offset = ary[3]; + this.start = ary[4]; + } + SineVoltage.prototype.getContainer = function SineVoltage() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js index 4126940c..4e9f289a 100644 --- a/js/Electrical/Switch.js +++ b/js/Electrical/Switch.js @@ -58,4 +58,11 @@ function Switch() { Switch.prototype.get_popup_title = function Switch() { return this.set_param_popup_title; } + Switch.prototype.importset = function Switch() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.Ron = ary[0]; + this.Roff = ary[1]; + } + Switch.prototype.getContainer = function Switch() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/VVsourceAC.js b/js/Electrical/VVsourceAC.js index 8ee8ea7c..a1eccb99 100644 --- a/js/Electrical/VVsourceAC.js +++ b/js/Electrical/VVsourceAC.js @@ -55,4 +55,10 @@ function VVsourceAC() { VVsourceAC.prototype.get_popup_title = function VVsourceAC() { return this.set_param_popup_title; } + VVsourceAC.prototype.importset = function VVsourceAC() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.FR = ary[0]; + } + VVsourceAC.prototype.getContainer = function VVsourceAC() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/VariableResistor.js b/js/Electrical/VariableResistor.js index 0c6315ad..715cc39c 100644 --- a/js/Electrical/VariableResistor.js +++ b/js/Electrical/VariableResistor.js @@ -31,4 +31,5 @@ function VariableResistor() { VariableResistor.prototype.get_popup_title = function VariableResistor() { return; } + VariableResistor.prototype.getContainer = function VariableResistor() { return new BasicBlock(this.x); } } diff --git a/js/Electrical/VoltageSensor.js b/js/Electrical/VoltageSensor.js index 965b5c36..a131fed8 100644 --- a/js/Electrical/VoltageSensor.js +++ b/js/Electrical/VoltageSensor.js @@ -31,4 +31,5 @@ function VoltageSensor() { VoltageSensor.prototype.get_popup_title = function VoltageSensor() { return; } + VoltageSensor.prototype.getContainer = function VoltageSensor() { return new VoltageSensorBlock(this.x); } } diff --git a/js/Electrical/VsourceAC.js b/js/Electrical/VsourceAC.js index 6afabf23..f508bdcd 100644 --- a/js/Electrical/VsourceAC.js +++ b/js/Electrical/VsourceAC.js @@ -57,4 +57,11 @@ function VsourceAC() { VsourceAC.prototype.get_popup_title = function VsourceAC() { return this.set_param_popup_title; } + VsourceAC.prototype.importset = function VsourceAC() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.VA = ary[0]; + this.FR = ary[1]; + } + VsourceAC.prototype.getContainer = function VsourceAC() { return new BasicBlock(this.x); } } |