EPANET  3.0
EPANET Development Project
qualsolver.h
Go to the documentation of this file.
1 /* EPANET 3
2  *
3  * Copyright (c) 2016 Open Water Analytics
4  * Licensed under the terms of the MIT License (see the LICENSE file for details).
5  *
6  */
7 
10 
11 #ifndef QUALSOLVER_H_
12 #define QUALSOLVER_H_
13 
14 #include "Core/qualbalance.h"
15 #include <string>
16 
17 class Network;
18 class Link;
19 
22 
24 {
25  public:
26 
27  // Constructor/Destructor
28  QualSolver(Network* nw);
29  virtual ~QualSolver();
30 
31  // Factory method
32  static QualSolver* factory(const std::string model, Network* nw);
33 
34  // Public Methods
35  virtual void init() { }
36  virtual void reverseFlow(int linkIndex) { }
37  virtual int solve(int* sortedLinks, int tstep) = 0;
38 
39  protected:
40  Network* network;
41 };
42 
43 #endif
Abstract class from which a specific water quality solver is derived.
Definition: qualsolver.h:23
Describes the QualBlanace class.
Contains the data elements that describe a pipe network.
Definition: network.h:41