3990
|
1 /* |
|
2 |
|
3 Copyright (C) 2002 John W. Eaton |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
7016
|
9 Free Software Foundation; either version 3 of the License, or (at your |
|
10 option) any later version. |
3990
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
7016
|
18 along with Octave; see the file COPYING. If not, see |
|
19 <http://www.gnu.org/licenses/>. |
3990
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_DAERT_h) |
|
24 #define octave_DAERT_h 1 |
|
25 |
|
26 #include "DAE.h" |
|
27 #include "DAERTFunc.h" |
|
28 #include "base-dae.h" |
|
29 |
|
30 class |
|
31 DAERT : public base_diff_alg_eqn, public DAERTFunc |
|
32 { |
|
33 public: |
|
34 |
|
35 DAERT (void) |
|
36 : base_diff_alg_eqn (), DAERTFunc () { } |
|
37 |
4277
|
38 DAERT (const ColumnVector& xx, double tt, DAERTFunc& f) |
|
39 : base_diff_alg_eqn (xx, tt), DAERTFunc (f) { } |
3994
|
40 |
4277
|
41 DAERT (const ColumnVector& xx, const ColumnVector& xxdot, double tt, |
3990
|
42 DAERTFunc& f) |
4277
|
43 : base_diff_alg_eqn (xx, xxdot, tt), DAERTFunc (f) { } |
3990
|
44 |
|
45 DAERT (const DAERT& a) |
|
46 : base_diff_alg_eqn (a), DAERTFunc (a) { } |
|
47 |
|
48 DAERT& operator = (const DAERT& a) |
|
49 { |
|
50 if (this != &a) |
|
51 { |
|
52 base_diff_alg_eqn::operator = (a); |
|
53 DAERTFunc::operator = (a); |
|
54 |
|
55 } |
|
56 return *this; |
|
57 } |
|
58 |
|
59 ~DAERT (void) { } |
|
60 |
4277
|
61 void initialize (const ColumnVector& xx, const ColumnVector& xxdot, |
|
62 double tt) |
3990
|
63 { |
4277
|
64 base_diff_alg_eqn::initialize (xx, xxdot, tt); |
3990
|
65 } |
|
66 }; |
|
67 |
|
68 #endif |
|
69 |
|
70 /* |
|
71 ;;; Local Variables: *** |
|
72 ;;; mode: C++ *** |
|
73 ;;; End: *** |
|
74 */ |