summaryrefslogtreecommitdiffstats
path: root/src/electronics/simulation/voltagepoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/electronics/simulation/voltagepoint.h')
-rw-r--r--src/electronics/simulation/voltagepoint.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/electronics/simulation/voltagepoint.h b/src/electronics/simulation/voltagepoint.h
new file mode 100644
index 0000000..924b0af
--- /dev/null
+++ b/src/electronics/simulation/voltagepoint.h
@@ -0,0 +1,39 @@
+/***************************************************************************
+ * Copyright (C) 2003-2004 by David Saxton *
+ * david@bluehaze.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ ***************************************************************************/
+
+#ifndef VOLTAGEPOINT_H
+#define VOLTAGEPOINT_H
+
+#include "element.h"
+
+/**
+@short VoltagePoint
+@author David saxton
+*/
+class VoltagePoint : public Element
+{
+public:
+ VoltagePoint( const double voltage );
+ virtual ~VoltagePoint();
+
+ virtual Type type() const { return Element_VoltagePoint; }
+ void setVoltage( const double voltage );
+ double voltage() { return m_voltage; }
+ virtual void add_map();
+
+protected:
+ virtual void updateCurrents();
+ virtual void add_initial_dc();
+
+private:
+ double m_voltage; // Conductance
+};
+
+#endif