view liboctave/DAERT.h @ 3994:a41827ec5677

[project @ 2002-07-16 23:57:09 by jwe]
author jwe
date Tue, 16 Jul 2002 23:57:09 +0000
parents 46388d6a4e44
children 5ab4ac522fec
line wrap: on
line source

/*

Copyright (C) 2002 John W. Eaton

This file is part of Octave.

Octave is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.

Octave is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with Octave; see the file COPYING.  If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/

#if !defined (octave_DAERT_h)
#define octave_DAERT_h 1

#include "DAE.h"
#include "DAERTFunc.h"
#include "base-dae.h"

class
DAERT : public base_diff_alg_eqn, public DAERTFunc
{
public:

  DAERT (void)
    : base_diff_alg_eqn (), DAERTFunc () { }

  DAERT (const ColumnVector& x, double t, DAERTFunc& f)
    : base_diff_alg_eqn (x, t), DAERTFunc (f) { }

  DAERT (const ColumnVector& x, const ColumnVector& xdot, double t,
	DAERTFunc& f)
    : base_diff_alg_eqn (x, xdot, t), DAERTFunc (f) { }

  DAERT (const DAERT& a)
    : base_diff_alg_eqn (a), DAERTFunc (a) { }

  DAERT& operator = (const DAERT& a)
    {
      if (this != &a)
	{
	  base_diff_alg_eqn::operator = (a);
	  DAERTFunc::operator = (a);

	}
      return *this;
    }

  ~DAERT (void) { }

  void initialize (const ColumnVector& x, const ColumnVector& xdot, double t)
    {
      base_diff_alg_eqn::initialize (x, xdot, t);
    }
};

#endif

/*
;;; Local Variables: ***
;;; mode: C++ ***
;;; End: ***
*/