Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SOLUTION Class Reference

Base solution class. More...

#include <odesol.h>

Inheritance diagram for SOLUTION:

PARALL List of all members.

Public Methods

 SOLUTION ( int n )
 Constructor. More...

int GetDim () const
 Returns the value of n set in the constructor.

void SetTcur ( double t )
 Sets a current point. More...

void SetTightEncl ( const INTERVAL_VECTOR & Y )
 Sets a tight enclosure. More...

void SetInitEncl ( const INTERVAL_VECTOR & Y )
 Sets an priori enclosure. More...

double GetTcur () const
 Returns the current integration point. More...

double GetTprev () const
 Returns the previous integration point. More...

const INTERVAL_VECTOR& GetTightEncl () const
 Returns the tight enclosure. More...

const INTERVAL_VECTOR& GetInitEncl () const
 Returns the a priori enclosure. More...

SOLUTION& operator= ( const SOLUTION & S)
 Assignment operator. More...

virtual ~SOLUTION ()
 Destructor.


Detailed Description

Base solution class.

The SOLUTION class specifies the current and previous integration points, and , respectively, an enclosure of the solution at and an a priori enclosure of the solution on .

Author(s):
Ned Nedialkov
Date:
7 June 2001


Constructor & Destructor Documentation

SOLUTION::SOLUTION ( int n ) [inline]
 

Constructor.

Parameters:
n   size of the problem
Precondition:
n > 0

SOLUTION::~SOLUTION ( ) [inline, virtual]
 

Destructor.


Member Function Documentation

int SOLUTION::GetDim ( ) const [inline]
 

Returns the value of n set in the constructor.

void SOLUTION::SetTcur ( double t ) [inline]
 

Sets a current point.

This function sets the current integration point. Its previous value is saved and can be obtained by calling GetTprev().

Parameters:
t   current point.

void SOLUTION::SetTightEncl ( const INTERVAL_VECTOR & Y ) [inline]
 

Sets a tight enclosure.

This function sets an interval vector that contains a tight enclosure of the solution.

Parameters:
Y   enclosure of the solution.
Precondition:
GetDim() == Dimension(Y)

void SOLUTION::SetInitEncl ( const INTERVAL_VECTOR & Y ) [inline]
 

Sets an priori enclosure.

This functions sets an a priori enclosure of the solution over the interval formed from the previous and current integration points.

Precondition:
GetDim()==Dimension(Y)

double SOLUTION::GetTcur ( ) const [inline]
 

Returns the current integration point.

This function returns the value that is set by the most recent call to SetTcur(), or 0, if SetTcur() has not been called.

double SOLUTION::GetTprev ( ) const [inline]
 

Returns the previous integration point.

This function returns the value that is set by the second most recent call to SetTcur(), or 0, if SetTcur() has been called at most once.

const INTERVAL_VECTOR & SOLUTION::GetTightEncl ( ) const [inline]
 

Returns the tight enclosure.

This function returns the interval vector that is set by the most recent call to SetTightEncl().

const INTERVAL_VECTOR & SOLUTION::GetInitEncl ( ) const [inline]
 

Returns the a priori enclosure.

This function returns the interval vector that is set by the most recent call to SetInitEncl().

SOLUTION & SOLUTION::operator= ( const SOLUTION & S )
 

Assignment operator.

Parameters:
S   reference to a solution object
Precondition:
GetDim()==S.GetDim();

Reimplemented in PARALL.


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 12:45:41 2001 for VNODE by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000