+
+ inline float get_output_amps() const { return output_amps; }
+ inline void set_output_amps( float val ) { output_amps = val; }
+};
+
+
+// Model an electrical switch. If the rating_amps > 0 then this
+// becomes a circuit breaker type switch that can trip
+class FGElectricalSwitch {
+
+private:
+
+ SGPropertyNode *switch_node;
+ float rating_amps;
+ bool circuit_breaker;
+
+public:
+
+ FGElectricalSwitch( SGPropertyNode *node );
+
+ ~FGElectricalSwitch() { };
+
+ inline bool get_state() const { return switch_node->getBoolValue(); }
+ void set_state( bool val ) { switch_node->setBoolValue( val ); }