2010-03-11 15:47:40 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010 Thorsten Liebig (Thorsten.Liebig@gmx.de)
|
|
|
|
*
|
|
|
|
* 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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2010-03-01 18:35:28 +00:00
|
|
|
#include "processvoltage.h"
|
2010-04-12 07:38:24 +00:00
|
|
|
#include <iomanip>
|
2010-03-01 18:35:28 +00:00
|
|
|
|
2010-12-07 15:47:23 +00:00
|
|
|
ProcessVoltage::ProcessVoltage(Engine_Interface_Base* eng_if) : ProcessIntegral(eng_if)
|
2010-03-01 18:35:28 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
ProcessVoltage::~ProcessVoltage()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-01-18 09:34:13 +00:00
|
|
|
string ProcessVoltage::GetIntegralName(int row) const
|
|
|
|
{
|
|
|
|
if (row==0)
|
|
|
|
return "voltage";
|
|
|
|
return "unknown";
|
|
|
|
}
|
|
|
|
|
2010-08-11 10:28:09 +00:00
|
|
|
double ProcessVoltage::CalcIntegral()
|
2010-03-01 18:35:28 +00:00
|
|
|
{
|
2010-08-11 10:28:09 +00:00
|
|
|
//integrate voltages from start to stop on a line
|
2010-12-02 13:29:46 +00:00
|
|
|
return m_Eng_Interface->CalcVoltageIntegral(start,stop);
|
2010-03-01 18:35:28 +00:00
|
|
|
}
|