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

ConcentrationObserver Class Reference

#include <ConcentrationObserver.h>

Inheritance diagram for ConcentrationObserver:

Inheritance graph
[legend]
Collaboration diagram for ConcentrationObserver:

Collaboration graph
[legend]
List of all members.

Public Methods

void ZeroConcentrations ()
 ConcentrationObserver (int numberOfChemicals, int NumberOfTimeSteps)
virtual ~ConcentrationObserver ()
void Update (Subject *theChangedSubject)
const double ** GetSummedConcentration () const

Private Attributes

int numberOfChemicals
int numberOfTimeSteps
double ** summedConcentration

Constructor & Destructor Documentation

ConcentrationObserver::ConcentrationObserver int    numberOfChemicals,
int    NumberOfTimeSteps
 

Definition at line 15 of file ConcentrationObserver.cpp.

References numberOfChemicals, numberOfTimeSteps, summedConcentration, and ZeroConcentrations.

ConcentrationObserver::~ConcentrationObserver   [virtual]
 

Definition at line 31 of file ConcentrationObserver.cpp.

References summedConcentration.


Member Function Documentation

const double** ConcentrationObserver::GetSummedConcentration   const [inline]
 

Definition at line 22 of file ConcentrationObserver.h.

References summedConcentration.

void ConcentrationObserver::Update Subject   theChangedSubject [virtual]
 

Implements Observer.

Definition at line 37 of file ConcentrationObserver.cpp.

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

void ConcentrationObserver::ZeroConcentrations  
 

Definition at line 56 of file ConcentrationObserver.cpp.

References numberOfChemicals, numberOfTimeSteps, and summedConcentration.

Referenced by ConcentrationObserver.


Member Data Documentation

int ConcentrationObserver::numberOfChemicals [private]
 

Definition at line 25 of file ConcentrationObserver.h.

Referenced by ConcentrationObserver, and ZeroConcentrations.

int ConcentrationObserver::numberOfTimeSteps [private]
 

Definition at line 26 of file ConcentrationObserver.h.

Referenced by ConcentrationObserver, Update, and ZeroConcentrations.

double** ConcentrationObserver::summedConcentration [private]
 

Definition at line 27 of file ConcentrationObserver.h.

Referenced by ConcentrationObserver, GetSummedConcentration, Update, ZeroConcentrations, and ~ConcentrationObserver.


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