Power System Platform  2026w10a-beta
Loading...
Searching...
No Matches
Divider.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Thales Lima Oliveira <thales@ufu.br>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef DIVIDER_H
19#define DIVIDER_H
20
21#include "MathOperation.h"
22
23class ConnectionLine;
24
32class Divider : public MathOperation
33{
34 public:
35 Divider(int id);
36 ~Divider();
37
38 //virtual void DrawSymbol() const;
39 virtual void DrawDCSymbol(wxGraphicsContext* gc) const;
40 virtual bool Solve(double* input, double timeStep);
41
42 virtual rapidxml::xml_node<>* SaveElement(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementListNode);
43 virtual bool OpenElement(rapidxml::xml_node<>* elementNode);
44
45 virtual Element* GetCopy();
46};
47
48#endif // DIVIDER_H
Connection between two control elements or other connection line and an element.
Control element that divides two inputs.
Definition Divider.h:33
virtual Element * GetCopy()
Get a the element copy.
Definition Divider.cpp:95
Base class of all elements of the program. This class is responsible for manage graphical and his dat...
Definition Element.h:112
Abstract class that define the general behavior of math operation control block.