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

CellAverageObserver Class Reference

#include <CellAverageObserver.h>

Inheritance diagram for CellAverageObserver:

Inheritance graph
[legend]
Collaboration diagram for CellAverageObserver:

Collaboration graph
[legend]
List of all members.

Public Methods

void ZeroConcentrations ()
 CellAverageObserver (int numberOfChemicals, int numberOfTimeSteps, int numberOfCells)
virtual ~CellAverageObserver ()
void Update (Subject *theChangedSubject)
const double ** GetAverageConcentration () const
const int GetNumberOfTimeSteps () const
const int GetNumberOfCells () const

Private Attributes

int numberOfChemicals
int numberOfTimeSteps
int numberOfCells
double ** averageConcentration

Constructor & Destructor Documentation

CellAverageObserver::CellAverageObserver int    numberOfChemicals,
int    numberOfTimeSteps,
int    numberOfCells
 

Definition at line 11 of file CellAverageObserver.cpp.

References averageConcentration, numberOfCells, numberOfChemicals, numberOfTimeSteps, and ZeroConcentrations.

CellAverageObserver::~CellAverageObserver   [virtual]
 

Definition at line 28 of file CellAverageObserver.cpp.

References averageConcentration.


Member Function Documentation

const double** CellAverageObserver::GetAverageConcentration   const [inline]
 

Definition at line 25 of file CellAverageObserver.h.

References averageConcentration.

Referenced by SingleNetworkMinimizable::ComputeResiduals, GnuPlotterTrajectoryObserver::Update, GnuPlotterTimeSeriesSharedBFactorObserver::Update, GnuPlotterTimeSeriesObserver::Update, and GnuPlotterRunnableObserver::Update.

const int CellAverageObserver::GetNumberOfCells   const [inline]
 

Definition at line 27 of file CellAverageObserver.h.

References numberOfCells.

Referenced by CRunnable::Run.

const int CellAverageObserver::GetNumberOfTimeSteps   const [inline]
 

Definition at line 26 of file CellAverageObserver.h.

References numberOfTimeSteps.

Referenced by CRunnable::Run, GnuPlotterTrajectoryObserver::Update, GnuPlotterTimeSeriesSharedBFactorObserver::Update, GnuPlotterTimeSeriesObserver::Update, GnuPlotterRunnableObserver::Update, GnuPlotterEnsembleRunDirectorObserver::Update, and GnuPlotterEnsembleDataDirectorObserver::Update.

void CellAverageObserver::Update Subject   theChangedSubject [virtual]
 

Implements Observer.

Definition at line 34 of file CellAverageObserver.cpp.

References averageConcentration, Chemical::GetAmount, ReactionNetwork::GetChemical, ReactionNetwork::GetNumberOfChemicals, CReactionMover::GetReactionNetwork, CReactionMover::GetTimeCount, numberOfCells, and numberOfTimeSteps.

void CellAverageObserver::ZeroConcentrations  
 

Definition at line 55 of file CellAverageObserver.cpp.

References averageConcentration, numberOfChemicals, and numberOfTimeSteps.

Referenced by CellAverageObserver, SingleNetworkMinimizable::ComputeResiduals, and CRunnable::Run.


Member Data Documentation

double** CellAverageObserver::averageConcentration [private]
 

Definition at line 32 of file CellAverageObserver.h.

Referenced by CellAverageObserver, GetAverageConcentration, Update, ZeroConcentrations, and ~CellAverageObserver.

int CellAverageObserver::numberOfCells [private]
 

Definition at line 31 of file CellAverageObserver.h.

Referenced by CellAverageObserver, GetNumberOfCells, and Update.

int CellAverageObserver::numberOfChemicals [private]
 

Definition at line 29 of file CellAverageObserver.h.

Referenced by CellAverageObserver, and ZeroConcentrations.

int CellAverageObserver::numberOfTimeSteps [private]
 

Definition at line 30 of file CellAverageObserver.h.

Referenced by CellAverageObserver, GetNumberOfTimeSteps, Update, and ZeroConcentrations.


The documentation for this class was generated from the following files:
Generated on Mon Nov 3 10:02:28 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002