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

RunDirector.cpp

Go to the documentation of this file.
00001 // RunDirector.cpp: implementation of the CRunDirector class.
00002 //
00004 
00005 #include "RunDirector.h"
00006 
00008 // Construction/Destruction
00010 
00011 CRunDirector::CRunDirector()
00012 {
00013 
00014 }
00015 
00016 CRunDirector::~CRunDirector()
00017 {
00018         // delete the runnables
00019         for(int i = 0; i < m_vpRunnables.size(); i++)
00020         {
00021                 delete m_vpRunnables[i];
00022         }
00023         // delete the movers
00024         for(int i = 0; i < m_vpRxnMovers.size(); i++)
00025         {
00026                 delete m_vpRxnMovers[i];
00027         }
00028         // delete the cell observers
00029         for(int i = 0; i < m_vpCellObservers.size(); i++)
00030         {
00031                 delete m_vpCellObservers[i];
00032         }
00033         // delete the networks
00034         for(int i = 0; i < m_vpRxnNetworks.size(); i++)
00035         {
00036                 delete m_vpRxnNetworks[i];
00037         }
00038 }
00039 
00040 void CRunDirector::Execute()
00041 {
00042         // run all the runnables
00043         for(int i = 0; i < m_vpRunnables.size(); i++)
00044         {
00045                 m_vpRunnables[i]->Run();
00046         }
00047 }

Generated on Mon Nov 3 09:38:13 2003 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002