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 |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
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 |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
3990
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_DAERT_h) |
|
25 #define octave_DAERT_h 1 |
|
26 |
|
27 #include "DAE.h" |
|
28 #include "DAERTFunc.h" |
|
29 #include "base-dae.h" |
|
30 |
|
31 class |
|
32 DAERT : public base_diff_alg_eqn, public DAERTFunc |
|
33 { |
|
34 public: |
|
35 |
|
36 DAERT (void) |
|
37 : base_diff_alg_eqn (), DAERTFunc () { } |
|
38 |
4277
|
39 DAERT (const ColumnVector& xx, double tt, DAERTFunc& f) |
|
40 : base_diff_alg_eqn (xx, tt), DAERTFunc (f) { } |
3994
|
41 |
4277
|
42 DAERT (const ColumnVector& xx, const ColumnVector& xxdot, double tt, |
3990
|
43 DAERTFunc& f) |
4277
|
44 : base_diff_alg_eqn (xx, xxdot, tt), DAERTFunc (f) { } |
3990
|
45 |
|
46 DAERT (const DAERT& a) |
|
47 : base_diff_alg_eqn (a), DAERTFunc (a) { } |
|
48 |
|
49 DAERT& operator = (const DAERT& a) |
|
50 { |
|
51 if (this != &a) |
|
52 { |
|
53 base_diff_alg_eqn::operator = (a); |
|
54 DAERTFunc::operator = (a); |
|
55 |
|
56 } |
|
57 return *this; |
|
58 } |
|
59 |
|
60 ~DAERT (void) { } |
|
61 |
4277
|
62 void initialize (const ColumnVector& xx, const ColumnVector& xxdot, |
|
63 double tt) |
3990
|
64 { |
4277
|
65 base_diff_alg_eqn::initialize (xx, xxdot, tt); |
3990
|
66 } |
|
67 }; |
|
68 |
|
69 #endif |
|
70 |
|
71 /* |
|
72 ;;; Local Variables: *** |
|
73 ;;; mode: C++ *** |
|
74 ;;; End: *** |
|
75 */ |