Power System Platform
2026w10a-beta
Loading...
Searching...
No Matches
Multiplier.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 MULTIPLIER_H
19
#define MULTIPLIER_H
20
21
#include "
MathOperation.h
"
22
23
class
ConnectionLine
;
24
32
class
Multiplier
:
public
MathOperation
33
{
34
public
:
35
Multiplier
(
int
id
);
36
~Multiplier
();
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
// MULTIPLIER_H
MathOperation.h
ConnectionLine
Connection between two control elements or other connection line and an element.
Definition
ConnectionLine.h:31
Element
Base class of all elements of the program. This class is responsible for manage graphical and his dat...
Definition
Element.h:112
MathOperation
Abstract class that define the general behavior of math operation control block.
Definition
MathOperation.h:33
Multiplier
Multiplies two inputs.
Definition
Multiplier.h:33
Multiplier::GetCopy
virtual Element * GetCopy()
Get a the element copy.
Definition
Multiplier.cpp:88
Project
elements
controlElement
Multiplier.h
Generated by
1.9.8