diff options
Diffstat (limited to 'js/Electrical')
-rw-r--r-- | js/Electrical/CCS.js | 4 | ||||
-rw-r--r-- | js/Electrical/CVS.js | 4 | ||||
-rw-r--r-- | js/Electrical/ConstantVoltage.js | 4 | ||||
-rw-r--r-- | js/Electrical/CurrentSensor.js | 4 | ||||
-rw-r--r-- | js/Electrical/Ground.js | 4 | ||||
-rw-r--r-- | js/Electrical/Inductor.js | 4 | ||||
-rw-r--r-- | js/Electrical/MOTOR.js | 4 | ||||
-rw-r--r-- | js/Electrical/PotentialSensor.js | 4 | ||||
-rw-r--r-- | js/Electrical/Resistor.js | 4 | ||||
-rw-r--r-- | js/Electrical/VariableResistor.js | 4 | ||||
-rw-r--r-- | js/Electrical/VoltageSensor.js | 4 |
11 files changed, 11 insertions, 33 deletions
diff --git a/js/Electrical/CCS.js b/js/Electrical/CCS.js index 236ab983..bcbd2fb2 100644 --- a/js/Electrical/CCS.js +++ b/js/Electrical/CCS.js @@ -53,9 +53,7 @@ function CCS() { return this.x; } CCS.prototype.get = function CCS() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CCS.prototype.set = function CCS() { this.exprs = this.graphics.exprs; diff --git a/js/Electrical/CVS.js b/js/Electrical/CVS.js index bf5c66f3..cdac5393 100644 --- a/js/Electrical/CVS.js +++ b/js/Electrical/CVS.js @@ -53,9 +53,7 @@ function CVS() { return this.x; } CVS.prototype.get = function CVS() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CVS.prototype.set = function CVS() { this.exprs = this.graphics.exprs; diff --git a/js/Electrical/ConstantVoltage.js b/js/Electrical/ConstantVoltage.js index d8127ea2..bc403a84 100644 --- a/js/Electrical/ConstantVoltage.js +++ b/js/Electrical/ConstantVoltage.js @@ -26,9 +26,7 @@ function ConstantVoltage() { return this.x; } ConstantVoltage.prototype.get = function ConstantVoltage() { - var options = { - } - return options; + alert("parameters cannot be modified"); } ConstantVoltage.prototype.set = function ConstantVoltage() { this.exprs = this.graphics.exprs; diff --git a/js/Electrical/CurrentSensor.js b/js/Electrical/CurrentSensor.js index a3370ccd..f70e369b 100644 --- a/js/Electrical/CurrentSensor.js +++ b/js/Electrical/CurrentSensor.js @@ -23,9 +23,7 @@ function CurrentSensor() { return this.x; } CurrentSensor.prototype.get = function CurrentSensor() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CurrentSensor.prototype.set = function CurrentSensor() { return new BasicBlock(this.x); diff --git a/js/Electrical/Ground.js b/js/Electrical/Ground.js index 6e22af8e..454ea116 100644 --- a/js/Electrical/Ground.js +++ b/js/Electrical/Ground.js @@ -22,9 +22,7 @@ function Ground() { return this.x; } Ground.prototype.get = function Ground() { - var options = { - } - return options; + alert("parameters cannot be modified"); } Ground.prototype.set = function Ground() { return new GroundBlock(this.x); diff --git a/js/Electrical/Inductor.js b/js/Electrical/Inductor.js index 0e4824fc..11100964 100644 --- a/js/Electrical/Inductor.js +++ b/js/Electrical/Inductor.js @@ -26,9 +26,7 @@ function Inductor() { return this.x; } Inductor.prototype.get = function Inductor() { - var options = { - } - return options; + alert("parameters cannot be modified"); } Inductor.prototype.set = function Inductor() { this.exprs = this.graphics.exprs; diff --git a/js/Electrical/MOTOR.js b/js/Electrical/MOTOR.js index e681218e..b9dc349b 100644 --- a/js/Electrical/MOTOR.js +++ b/js/Electrical/MOTOR.js @@ -18,9 +18,7 @@ function MOTOR() { return this.x; } MOTOR.prototype.get = function MOTOR() { - var options = { - } - return options; + alert("parameters cannot be modified"); } MOTOR.prototype.set = function MOTOR() { return new BasicBlock(this.x); diff --git a/js/Electrical/PotentialSensor.js b/js/Electrical/PotentialSensor.js index ae77c13a..8f114319 100644 --- a/js/Electrical/PotentialSensor.js +++ b/js/Electrical/PotentialSensor.js @@ -23,9 +23,7 @@ function PotentialSensor() { return this.x; } PotentialSensor.prototype.get = function PotentialSensor() { - var options = { - } - return options; + alert("parameters cannot be modified"); } PotentialSensor.prototype.set = function PotentialSensor() { return new BasicBlock(this.x); diff --git a/js/Electrical/Resistor.js b/js/Electrical/Resistor.js index 9b62ccee..1840ab28 100644 --- a/js/Electrical/Resistor.js +++ b/js/Electrical/Resistor.js @@ -26,9 +26,7 @@ function Resistor() { return this.x; } Resistor.prototype.get = function Resistor() { - var options = { - } - return options; + alert("parameters cannot be modified"); } Resistor.prototype.set = function Resistor() { this.exprs = this.graphics.exprs; diff --git a/js/Electrical/VariableResistor.js b/js/Electrical/VariableResistor.js index 2c884ba0..f9ab9a83 100644 --- a/js/Electrical/VariableResistor.js +++ b/js/Electrical/VariableResistor.js @@ -23,9 +23,7 @@ function VariableResistor() { return this.x; } VariableResistor.prototype.get = function VariableResistor() { - var options = { - } - return options; + alert("parameters cannot be modified"); } VariableResistor.prototype.set = function VariableResistor() { return new BasicBlock(this.x); diff --git a/js/Electrical/VoltageSensor.js b/js/Electrical/VoltageSensor.js index 7ad9fe30..732b29e3 100644 --- a/js/Electrical/VoltageSensor.js +++ b/js/Electrical/VoltageSensor.js @@ -23,9 +23,7 @@ function VoltageSensor() { return this.x; } VoltageSensor.prototype.get = function VoltageSensor() { - var options = { - } - return options; + alert("parameters cannot be modified"); } VoltageSensor.prototype.set = function VoltageSensor() { return new VoltageSensorBlock(this.x); |