00001 // ConcentrationObserver.h: interface for the ConcentrationObserver class. 00002 // 00004 00005 #if !defined(AFX_CONCENTRATIONOBSERVER_H__B9E5989D_1D15_11D4_8691_00C04F608A48__INCLUDED_) 00006 #define AFX_CONCENTRATIONOBSERVER_H__B9E5989D_1D15_11D4_8691_00C04F608A48__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 #include "SubjectObserver.h" 00013 00014 class ConcentrationObserver : public Observer 00015 { 00016 public: 00017 void ZeroConcentrations(); 00018 ConcentrationObserver(int numberOfChemicals, int NumberOfTimeSteps); 00019 virtual ~ConcentrationObserver(); 00020 void Update(Subject *theChangedSubject); 00021 00022 const double **GetSummedConcentration() const {return (const double **)summedConcentration;} 00023 00024 private: 00025 int numberOfChemicals; 00026 int numberOfTimeSteps; 00027 double **summedConcentration; 00028 }; 00029 00030 #endif // !defined(AFX_CONCENTRATIONOBSERVER_H__B9E5989D_1D15_11D4_8691_00C04F608A48__INCLUDED_)