-
Notifications
You must be signed in to change notification settings - Fork 2
/
ONPump.h
56 lines (45 loc) · 1.63 KB
/
ONPump.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
*******************************************************************
OOTEN: Object Oriented Toolkit for Epanet
ONPUMP.H - Definition of OOTEN ONPump class
VERSION: 1.00beta
DATE: 13 June 2003
AUTHOR: JE van Zyl
Rand Afrikaans University
Johannesburg
South Africa
jevz@ing.rau.ac.za
*******************************************************************
*/
//---------------------------------------------------------------------------
#ifndef ONPumpH
#define ONPumpH
//---------------------------------------------------------------------------
#include "ONLink.h"
#include "ONCurve.h"
using namespace std;
class ONPump: public ONLink
{
public:
//constructors and destructors
ONPump(void);
ONPump(int enIndex, ONSystem* parent, ONNode* startNode, ONNode* endNode);
ONPump(const ONPump &o);
virtual ONLink* clone(void);
virtual ~ONPump(void);
//methods
virtual elementTpe type(void) const;
ONCurve* headCurve(void) const;
void setHeadCurve(ONCurve* headCurve);
ONCurve* efficiencyCurve(void) const;
void setEfficiencyCurve(ONCurve* effCurve);
double initialSpeed(void) const;
void setInitialSpeed(double setting);
double speed(void) const;
void setSpeed(double setting);
double energy(void) const;
private:
ONCurve* headCurve_;
ONCurve* efficiencyCurve_;
};
#endif