CEvolveTrafficDoc Class Reference

A class that stores data relating to the parameters of a simulation. More...

#include <EvolveTrafficDoc.h>

Collaboration diagram for CEvolveTrafficDoc:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual BOOL OnNewDocument ()
virtual void Serialize (CArchive &ar)
void clear ()
bool initSim ()
void UpdateDerivedMembers (bool setMod)
CObArray * getStatDetectors ()
CObArray * getRoadFeatures ()
WORD getFileType () const
CString getFileIn () const
CString getFileOut () const
CString getMetricsDir () const
int getNoLanesDirPos () const
int getNoLanesDirNeg () const
double getSimTimeStep () const
int getNoDirections () const
int getNoLanes () const
int getRoadLength () const
BOOL getDriveOnRight () const
int getTrafFileNoLanesDirPos () const
int getTrafFileNoLanesDirNeg () const
int getLocOutputDetectorDirPos () const
int getLocOutputDetectorDirNeg () const
BOOL getAllowLaneChanging () const
CIDMParameterSet getIDMParams_Car () const
CIDMParameterSet getIDMParams_SmallTruck () const
CIDMParameterSet getIDMParams_LargeTruck () const
CIDMParameterSet getIDMParams_Crane () const
CIDMParameterSet getIDMParams_Lowloader () const
void setDriveOnRight (bool OnRight)
void setStatDetectors (CObArray *pStatDetectors)
void setRoadFeatures (CObArray *pRoadFeatures)
void setFileType (WORD fileType)
void setFileIn (CString file)
void setFileOut (CString file)
void setMetricsDir (CString dir)
void setNoLanesDirPos (int nlpos)
void setNoLanesDirNeg (int nlneg)
void setSimTimeStep (double ts)
void setNoDirections (int nd)
void setNoLanes (int nl)
void setRoadLength (int L)
void setTrafFileNoLanesDirPos (int nl)
void setTrafFileNoLanesDirNeg (int nl)
void setLocOutputDetectorDirPos (int loc)
void setLocOutputDetectorDirNeg (int loc)
void setAllowLaneChanging (BOOL status)
void setIDMParams_Car (CIDMParameterSet theSet)
void setIDMParams_SmallTruck (CIDMParameterSet theSet)
void setIDMParams_LargeTruck (CIDMParameterSet theSet)
void setIDMParams_Crane (CIDMParameterSet theSet)
void setIDMParams_Lowloader (CIDMParameterSet theSet)
virtual ~CEvolveTrafficDoc ()

Public Attributes

Sim m_Sim

Protected Member Functions

 CEvolveTrafficDoc ()

Private Attributes

CString m_MetricsDir
CObArray m_vStatDetectors
CObArray m_vRoadFeatures
BOOL m_DriveOnRight
BOOL m_AllowLaneChanging
int m_LocOutputDetectorDirPos
int m_LocOutputDetectorDirNeg
int m_TrafFileNoLanesDirPos
int m_TrafFileNoLanesDirNeg
int m_NoVehicleClasses
CString m_FileIn
CString m_FileOut
WORD m_FileType
int m_NoLanesDirPos
int m_NoLanesDirNeg
double m_SimTimeStep
int m_NoDirections
int m_NoLanes
int m_RoadLength
CIDMParameterSet m_IDMParams_Car
CIDMParameterSet m_IDMParams_SmallTruck
CIDMParameterSet m_IDMParams_LargeTruck
CIDMParameterSet m_IDMParams_Crane
CIDMParameterSet m_IDMParams_Lowloader


Detailed Description

A class that stores data relating to the parameters of a simulation.

Definition at line 20 of file EvolveTrafficDoc.h.


Constructor & Destructor Documentation

CEvolveTrafficDoc::CEvolveTrafficDoc (  )  [protected]

CEvolveTrafficDoc::~CEvolveTrafficDoc (  )  [virtual]

Definition at line 40 of file EvolveTrafficDoc.cpp.

References clear().

00041 {
00042         clear();
00043 }

Here is the call graph for this function:


Member Function Documentation

BOOL CEvolveTrafficDoc::OnNewDocument (  )  [virtual]

Definition at line 57 of file EvolveTrafficDoc.cpp.

References CASTOR, m_DriveOnRight, m_FileIn, m_FileOut, m_FileType, m_LocOutputDetectorDirNeg, m_LocOutputDetectorDirPos, m_NoLanesDirNeg, m_NoLanesDirPos, m_RoadLength, m_SimTimeStep, m_vRoadFeatures, m_vStatDetectors, and UpdateDerivedMembers().

00058 {
00059         if (!CDocument::OnNewDocument())
00060                 return FALSE;
00061 
00062         m_FileIn = _T("");
00063         m_FileOut = _T("");
00064         m_RoadLength = 3000;
00065         m_NoLanesDirPos = 2;
00066         m_NoLanesDirNeg = 1;
00067         m_FileType = CASTOR;
00068         m_SimTimeStep = 0.1;
00069         m_DriveOnRight = true;
00070         m_LocOutputDetectorDirPos = 2500;
00071         m_LocOutputDetectorDirNeg = 2500;
00072 
00073         CRoadFeature* pFeat = new CRoadFeature;
00074         m_vRoadFeatures.Add(pFeat);
00075 
00076         CStatDetector* pDet = new CStatDetector;
00077         m_vStatDetectors.Add(pDet);
00078 
00079         UpdateDerivedMembers(false);    // do not call SetModFlag
00080 
00081         return TRUE;
00082 }

Here is the call graph for this function:

void CEvolveTrafficDoc::Serialize ( CArchive &  ar  )  [virtual]

Definition at line 87 of file EvolveTrafficDoc.cpp.

References m_AllowLaneChanging, m_DriveOnRight, m_FileIn, m_FileOut, m_FileType, m_IDMParams_Car, m_IDMParams_Crane, m_IDMParams_LargeTruck, m_IDMParams_Lowloader, m_IDMParams_SmallTruck, m_LocOutputDetectorDirNeg, m_LocOutputDetectorDirPos, m_MetricsDir, m_NoDirections, m_NoLanes, m_NoLanesDirNeg, m_NoLanesDirPos, m_RoadLength, m_SimTimeStep, m_TrafFileNoLanesDirNeg, m_TrafFileNoLanesDirPos, m_vRoadFeatures, m_vStatDetectors, and CIDMParameterSet::Serialize().

00088 {
00089         m_vStatDetectors                .Serialize(ar);
00090         m_vRoadFeatures                 .Serialize(ar);
00091 
00092         m_IDMParams_Car                 .Serialize(ar);
00093         m_IDMParams_SmallTruck  .Serialize(ar);
00094         m_IDMParams_LargeTruck  .Serialize(ar);
00095         m_IDMParams_Crane               .Serialize(ar);
00096         m_IDMParams_Lowloader   .Serialize(ar);
00097 
00098         if (ar.IsStoring())
00099         {
00100                 ar      << m_FileIn
00101                         << m_FileOut
00102                         << m_MetricsDir
00103                         << m_FileType
00104                         << m_TrafFileNoLanesDirPos
00105                         << m_TrafFileNoLanesDirNeg
00106                         << m_NoDirections
00107                         << m_NoLanes
00108                         << m_NoLanesDirPos
00109                         << m_NoLanesDirNeg
00110                         << m_RoadLength
00111                         << m_DriveOnRight
00112                         << m_SimTimeStep
00113                         << m_LocOutputDetectorDirPos
00114                         << m_LocOutputDetectorDirNeg
00115                         << m_AllowLaneChanging;
00116         }
00117         else
00118         {
00119                 ar      >> m_FileIn
00120                         >> m_FileOut
00121                         >> m_MetricsDir
00122                         >> m_FileType
00123                         >> m_TrafFileNoLanesDirPos
00124                         >> m_TrafFileNoLanesDirNeg
00125                         >> m_NoDirections
00126                         >> m_NoLanes
00127                         >> m_NoLanesDirPos
00128                         >> m_NoLanesDirNeg
00129                         >> m_RoadLength
00130                         >> m_DriveOnRight
00131                         >> m_SimTimeStep
00132                         >> m_LocOutputDetectorDirPos
00133                         >> m_LocOutputDetectorDirNeg
00134                         >> m_AllowLaneChanging;
00135         }
00136 }

Here is the call graph for this function:

void CEvolveTrafficDoc::clear (  ) 

Definition at line 45 of file EvolveTrafficDoc.cpp.

References m_vRoadFeatures, and m_vStatDetectors.

Referenced by ~CEvolveTrafficDoc().

00046 {
00047         for(int i = 0; i < m_vRoadFeatures.GetSize(); i++)
00048                 delete m_vRoadFeatures.GetAt(i);
00049         m_vRoadFeatures.RemoveAll();
00050 
00051         for(i = 0; i < m_vStatDetectors.GetSize(); i++)
00052                 delete m_vStatDetectors.GetAt(i);
00053         m_vStatDetectors.RemoveAll();
00054 
00055 }

bool CEvolveTrafficDoc::initSim (  ) 

Definition at line 165 of file EvolveTrafficDoc.cpp.

References Sim::getRoad(), Sim::init(), m_AllowLaneChanging, m_DriveOnRight, m_FileIn, m_FileOut, m_FileType, m_IDMParams_Car, m_IDMParams_Crane, m_IDMParams_LargeTruck, m_IDMParams_Lowloader, m_IDMParams_SmallTruck, m_LocOutputDetectorDirNeg, m_LocOutputDetectorDirPos, m_MetricsDir, m_NoDirections, m_NoLanes, m_NoLanesDirNeg, m_NoLanesDirPos, m_RoadLength, m_Sim, m_SimTimeStep, m_TrafFileNoLanesDirNeg, m_TrafFileNoLanesDirPos, m_vRoadFeatures, m_vStatDetectors, Road::setAllowLaneChanging(), Road::setDriveOnRight(), Sim::setFileIn(), Sim::setFileOut(), Sim::setFileType(), Road::setIDMParams_Car(), Road::setIDMParams_Crane(), Road::setIDMParams_LargeTruck(), Road::setIDMParams_Lowloader(), Road::setIDMParams_SmallTruck(), Road::setLocOuputDetectorDirNeg(), Road::setLocOuputDetectorDirPos(), Road::SetMetricDetFromStatDet(), CStatDetector::setMetricsDir(), Sim::setNoDirections(), Sim::setNoLanes(), Sim::setNoLanesDirNeg(), Sim::setNoLanesDirPos(), Sim::setRoadLength(), Road::SetSegmentFromFeature(), Sim::setSimTimeStep(), Road::setTrafFileNoLanesDirNeg(), and Road::setTrafFileNoLanesDirPos().

Referenced by CEvolveTrafficView::doSimStart().

00166 {
00167         CFile FileIn; CFileStatus status;
00168         bool bFileExists = FileIn.GetStatus((LPCTSTR)m_FileIn,status);
00169         if(!bFileExists)
00170         {
00171                 MessageBox(NULL, "The input traffic file does not exist","EvolveTraffic",MB_OK|MB_ICONWARNING);
00172                 return false;
00173         }
00174         
00175         m_Sim.setFileIn( (LPCTSTR)m_FileIn );
00176         m_Sim.setFileOut( (LPCTSTR)m_FileOut );
00177         m_Sim.setFileType(m_FileType);
00178         m_Sim.setNoDirections(m_NoDirections);
00179         m_Sim.setNoLanes(m_NoLanes);
00180         m_Sim.setNoLanesDirPos(m_NoLanesDirPos);
00181         m_Sim.setNoLanesDirNeg(m_NoLanesDirNeg);
00182         m_Sim.setRoadLength(m_RoadLength);
00183         m_Sim.setSimTimeStep(m_SimTimeStep);
00184         
00185         m_Sim.getRoad()->setIDMParams_Car               (&m_IDMParams_Car);
00186         m_Sim.getRoad()->setIDMParams_SmallTruck(&m_IDMParams_SmallTruck);
00187         m_Sim.getRoad()->setIDMParams_LargeTruck(&m_IDMParams_LargeTruck);
00188         m_Sim.getRoad()->setIDMParams_Crane             (&m_IDMParams_Crane);
00189         m_Sim.getRoad()->setIDMParams_Lowloader (&m_IDMParams_Lowloader);
00190 
00191         for(int i = 0; i < m_vRoadFeatures.GetSize(); i++)
00192                 m_Sim.getRoad()->SetSegmentFromFeature( reinterpret_cast<CRoadFeature*>(m_vRoadFeatures.GetAt(i)) );
00193         
00194         for(i = 0; i < m_vStatDetectors.GetSize(); i++)
00195         {
00196                 CStatDetector* pSD = reinterpret_cast<CStatDetector*>(m_vStatDetectors.GetAt(i));
00197                 pSD->setMetricsDir(m_MetricsDir);
00198                 m_Sim.getRoad()->SetMetricDetFromStatDet( pSD, m_NoLanesDirPos, m_NoLanesDirNeg);
00199         }
00200         
00201         m_Sim.getRoad()->setTrafFileNoLanesDirPos(m_TrafFileNoLanesDirPos);
00202         m_Sim.getRoad()->setTrafFileNoLanesDirNeg(m_TrafFileNoLanesDirNeg);
00203         m_Sim.getRoad()->setLocOuputDetectorDirPos(m_LocOutputDetectorDirPos);
00204         m_Sim.getRoad()->setLocOuputDetectorDirNeg(m_LocOutputDetectorDirNeg);
00205         m_Sim.getRoad()->setAllowLaneChanging(m_AllowLaneChanging);
00206         m_Sim.getRoad()->setDriveOnRight(m_DriveOnRight);
00207         
00208         m_Sim.init();   // must be called last when all other params are set
00209 
00210         return true;
00211 }

Here is the call graph for this function:

void CEvolveTrafficDoc::UpdateDerivedMembers ( bool  setMod  ) 

Definition at line 156 of file EvolveTrafficDoc.cpp.

References m_NoDirections, m_NoLanes, m_NoLanesDirNeg, and m_NoLanesDirPos.

Referenced by CEvolveTrafficView::OnConfigSim(), and OnNewDocument().

00157 {
00158         m_NoLanes = m_NoLanesDirPos + m_NoLanesDirNeg;
00159         m_NoDirections = (m_NoLanesDirPos > 0 && m_NoLanesDirNeg > 0) ? 2 : 1;
00160 
00161         if(setMod)
00162                 SetModifiedFlag();      // To implement Save Changes prompts
00163 }

CObArray* CEvolveTrafficDoc::getStatDetectors (  )  [inline]

Definition at line 48 of file EvolveTrafficDoc.h.

References m_vStatDetectors.

Referenced by CEvolveTrafficView::DrawDetectors(), and CEvolveTrafficView::OnConfigMetrics().

00048 {return &m_vStatDetectors;};

CObArray* CEvolveTrafficDoc::getRoadFeatures (  )  [inline]

Definition at line 49 of file EvolveTrafficDoc.h.

References m_vRoadFeatures.

Referenced by CEvolveTrafficView::DrawRoadSegments(), and CEvolveTrafficView::OnConfigFeatures().

00049 {return &m_vRoadFeatures;};

WORD CEvolveTrafficDoc::getFileType (  )  const [inline]

Definition at line 50 of file EvolveTrafficDoc.h.

References m_FileType.

Referenced by CEvolveTrafficView::OnConfigSim().

00050 {return m_FileType;};

CString CEvolveTrafficDoc::getFileIn (  )  const [inline]

Definition at line 51 of file EvolveTrafficDoc.h.

References m_FileIn.

Referenced by CEvolveTrafficView::OnConfigSim().

00051 {return m_FileIn;};

CString CEvolveTrafficDoc::getFileOut (  )  const [inline]

Definition at line 52 of file EvolveTrafficDoc.h.

References m_FileOut.

Referenced by CEvolveTrafficView::OnConfigSim().

00052 {return m_FileOut;};

CString CEvolveTrafficDoc::getMetricsDir (  )  const [inline]

Definition at line 53 of file EvolveTrafficDoc.h.

References m_MetricsDir.

Referenced by CEvolveTrafficView::OnConfigSim().

00053 {return m_MetricsDir;};

int CEvolveTrafficDoc::getNoLanesDirPos (  )  const [inline]

Definition at line 54 of file EvolveTrafficDoc.h.

References m_NoLanesDirPos.

Referenced by CEvolveTrafficView::initRoad(), and CEvolveTrafficView::OnConfigSim().

00054 {return m_NoLanesDirPos;};

int CEvolveTrafficDoc::getNoLanesDirNeg (  )  const [inline]

Definition at line 55 of file EvolveTrafficDoc.h.

References m_NoLanesDirNeg.

Referenced by CEvolveTrafficView::initRoad(), and CEvolveTrafficView::OnConfigSim().

00055 {return m_NoLanesDirNeg;};

double CEvolveTrafficDoc::getSimTimeStep (  )  const [inline]

Definition at line 56 of file EvolveTrafficDoc.h.

References m_SimTimeStep.

Referenced by CEvolveTrafficView::initRoad(), and CEvolveTrafficView::OnConfigSim().

00056 {return m_SimTimeStep;};

int CEvolveTrafficDoc::getNoDirections (  )  const [inline]

Definition at line 57 of file EvolveTrafficDoc.h.

References m_NoDirections.

Referenced by CEvolveTrafficView::initRoad().

00057 {return m_NoDirections;};

int CEvolveTrafficDoc::getNoLanes (  )  const [inline]

Definition at line 58 of file EvolveTrafficDoc.h.

References m_NoLanes.

Referenced by CEvolveTrafficView::initRoad().

00058 {return m_NoLanes;};

int CEvolveTrafficDoc::getRoadLength (  )  const [inline]

Definition at line 59 of file EvolveTrafficDoc.h.

References m_RoadLength.

Referenced by CEvolveTrafficView::initRoad(), and CEvolveTrafficView::OnConfigSim().

00059 {return m_RoadLength;};

BOOL CEvolveTrafficDoc::getDriveOnRight (  )  const [inline]

Definition at line 60 of file EvolveTrafficDoc.h.

References m_DriveOnRight.

Referenced by CEvolveTrafficView::initRoad(), and CEvolveTrafficView::OnConfigSim().

00060 {return m_DriveOnRight;};

int CEvolveTrafficDoc::getTrafFileNoLanesDirPos (  )  const [inline]

Definition at line 61 of file EvolveTrafficDoc.h.

References m_TrafFileNoLanesDirPos.

Referenced by CEvolveTrafficView::OnConfigSim().

00061 {return m_TrafFileNoLanesDirPos;};

int CEvolveTrafficDoc::getTrafFileNoLanesDirNeg (  )  const [inline]

Definition at line 62 of file EvolveTrafficDoc.h.

References m_TrafFileNoLanesDirNeg.

Referenced by CEvolveTrafficView::OnConfigSim().

00062 {return m_TrafFileNoLanesDirNeg;};

int CEvolveTrafficDoc::getLocOutputDetectorDirPos (  )  const [inline]

int CEvolveTrafficDoc::getLocOutputDetectorDirNeg (  )  const [inline]

BOOL CEvolveTrafficDoc::getAllowLaneChanging (  )  const [inline]

Definition at line 65 of file EvolveTrafficDoc.h.

References m_AllowLaneChanging.

Referenced by CEvolveTrafficView::OnConfigSim().

00065 {return m_AllowLaneChanging;};

CIDMParameterSet CEvolveTrafficDoc::getIDMParams_Car (  )  const [inline]

Definition at line 67 of file EvolveTrafficDoc.h.

References m_IDMParams_Car.

Referenced by CEvolveTrafficView::OnConfigTraf().

00067 {return m_IDMParams_Car;};

CIDMParameterSet CEvolveTrafficDoc::getIDMParams_SmallTruck (  )  const [inline]

Definition at line 68 of file EvolveTrafficDoc.h.

References m_IDMParams_SmallTruck.

Referenced by CEvolveTrafficView::OnConfigTraf().

00068 {return m_IDMParams_SmallTruck;};

CIDMParameterSet CEvolveTrafficDoc::getIDMParams_LargeTruck (  )  const [inline]

Definition at line 69 of file EvolveTrafficDoc.h.

References m_IDMParams_LargeTruck.

Referenced by CEvolveTrafficView::OnConfigTraf().

00069 {return m_IDMParams_LargeTruck;};

CIDMParameterSet CEvolveTrafficDoc::getIDMParams_Crane (  )  const [inline]

Definition at line 70 of file EvolveTrafficDoc.h.

References m_IDMParams_Crane.

Referenced by CEvolveTrafficView::OnConfigTraf().

00070 {return m_IDMParams_Crane;};

CIDMParameterSet CEvolveTrafficDoc::getIDMParams_Lowloader (  )  const [inline]

Definition at line 71 of file EvolveTrafficDoc.h.

References m_IDMParams_Lowloader.

Referenced by CEvolveTrafficView::OnConfigTraf().

00071 {return m_IDMParams_Lowloader;};

void CEvolveTrafficDoc::setDriveOnRight ( bool  OnRight  ) 

Definition at line 346 of file EvolveTrafficDoc.cpp.

References m_DriveOnRight.

Referenced by CEvolveTrafficView::OnConfigSim().

00347 {
00348         m_DriveOnRight = OnRight;
00349 }

void CEvolveTrafficDoc::setStatDetectors ( CObArray *  pStatDetectors  ) 

Definition at line 340 of file EvolveTrafficDoc.cpp.

References m_vStatDetectors.

Referenced by CEvolveTrafficView::OnConfigMetrics().

00341 {
00342         m_vStatDetectors.Copy( *pStatDetectors );
00343         SetModifiedFlag();
00344 }

void CEvolveTrafficDoc::setRoadFeatures ( CObArray *  pRoadFeatures  ) 

Definition at line 334 of file EvolveTrafficDoc.cpp.

References m_vRoadFeatures.

Referenced by CEvolveTrafficView::OnConfigFeatures().

00335 {
00336         m_vRoadFeatures.Copy( *pRoadFeatures );
00337         SetModifiedFlag();
00338 }

void CEvolveTrafficDoc::setFileType ( WORD  fileType  ) 

Definition at line 268 of file EvolveTrafficDoc.cpp.

References m_FileType.

Referenced by CEvolveTrafficView::OnConfigSim().

00269 {
00270         m_FileType = fileType;
00271         SetModifiedFlag();      // To implement Save Changes prompts
00272 }

void CEvolveTrafficDoc::setFileIn ( CString  file  ) 

Definition at line 250 of file EvolveTrafficDoc.cpp.

References m_FileIn.

Referenced by CEvolveTrafficView::OnConfigSim().

00251 {
00252         m_FileIn = file;
00253         SetModifiedFlag();      // To implement Save Changes prompts
00254 }

void CEvolveTrafficDoc::setFileOut ( CString  file  ) 

Definition at line 256 of file EvolveTrafficDoc.cpp.

References m_FileOut.

Referenced by CEvolveTrafficView::OnConfigSim().

00257 {
00258         m_FileOut = file;
00259         SetModifiedFlag();      // To implement Save Changes prompts
00260 }

void CEvolveTrafficDoc::setMetricsDir ( CString  dir  ) 

Definition at line 262 of file EvolveTrafficDoc.cpp.

References m_MetricsDir.

Referenced by CEvolveTrafficView::OnConfigSim().

00263 {
00264         m_MetricsDir = dir;
00265         SetModifiedFlag();      // To implement Save Changes prompts
00266 }

void CEvolveTrafficDoc::setNoLanesDirPos ( int  nlpos  ) 

Definition at line 238 of file EvolveTrafficDoc.cpp.

References m_NoLanesDirPos.

Referenced by CEvolveTrafficView::OnConfigSim().

00239 {
00240         m_NoLanesDirPos = nlpos;
00241         SetModifiedFlag();      // To implement Save Changes prompts
00242 }

void CEvolveTrafficDoc::setNoLanesDirNeg ( int  nlneg  ) 

Definition at line 244 of file EvolveTrafficDoc.cpp.

References m_NoLanesDirNeg.

Referenced by CEvolveTrafficView::OnConfigSim().

00245 {
00246         m_NoLanesDirNeg = nlneg;
00247         SetModifiedFlag();      // To implement Save Changes prompts
00248 }

void CEvolveTrafficDoc::setSimTimeStep ( double  ts  ) 

Definition at line 232 of file EvolveTrafficDoc.cpp.

References m_SimTimeStep.

Referenced by CEvolveTrafficView::OnConfigSim().

00233 {
00234         m_SimTimeStep = ts;
00235         SetModifiedFlag();      // To implement Save Changes prompts
00236 }

void CEvolveTrafficDoc::setNoDirections ( int  nd  ) 

Definition at line 226 of file EvolveTrafficDoc.cpp.

References m_NoDirections.

00227 {
00228         m_NoDirections = nd;
00229         SetModifiedFlag();      // To implement Save Changes prompts
00230 }

void CEvolveTrafficDoc::setNoLanes ( int  nl  ) 

Definition at line 220 of file EvolveTrafficDoc.cpp.

References m_NoLanes.

00221 {
00222         m_NoLanes = nl;
00223         SetModifiedFlag();      // To implement Save Changes prompts
00224 }

void CEvolveTrafficDoc::setRoadLength ( int  L  ) 

Definition at line 214 of file EvolveTrafficDoc.cpp.

References m_RoadLength.

Referenced by CEvolveTrafficView::OnConfigSim().

00215 {
00216         m_RoadLength = L;
00217         SetModifiedFlag();      // To implement Save Changes prompts
00218 }

void CEvolveTrafficDoc::setTrafFileNoLanesDirPos ( int  nl  ) 

Definition at line 304 of file EvolveTrafficDoc.cpp.

References m_TrafFileNoLanesDirPos.

Referenced by CEvolveTrafficView::OnConfigSim().

00305 {
00306         m_TrafFileNoLanesDirPos = nl;
00307         SetModifiedFlag();
00308 }

void CEvolveTrafficDoc::setTrafFileNoLanesDirNeg ( int  nl  ) 

Definition at line 310 of file EvolveTrafficDoc.cpp.

References m_TrafFileNoLanesDirNeg.

Referenced by CEvolveTrafficView::OnConfigSim().

00311 {
00312         m_TrafFileNoLanesDirNeg = nl;
00313         SetModifiedFlag();
00314 }

void CEvolveTrafficDoc::setLocOutputDetectorDirPos ( int  loc  ) 

Definition at line 316 of file EvolveTrafficDoc.cpp.

References m_LocOutputDetectorDirPos.

Referenced by CEvolveTrafficView::OnConfigSim().

00317 {
00318         m_LocOutputDetectorDirPos = loc;
00319         SetModifiedFlag();
00320 }

void CEvolveTrafficDoc::setLocOutputDetectorDirNeg ( int  loc  ) 

Definition at line 322 of file EvolveTrafficDoc.cpp.

References m_LocOutputDetectorDirNeg.

Referenced by CEvolveTrafficView::OnConfigSim().

00323 {
00324         m_LocOutputDetectorDirNeg = loc;
00325         SetModifiedFlag();
00326 }

void CEvolveTrafficDoc::setAllowLaneChanging ( BOOL  status  ) 

Definition at line 328 of file EvolveTrafficDoc.cpp.

References m_AllowLaneChanging.

Referenced by CEvolveTrafficView::OnConfigSim().

00329 {
00330         m_AllowLaneChanging = status;
00331         SetModifiedFlag();
00332 }

void CEvolveTrafficDoc::setIDMParams_Car ( CIDMParameterSet  theSet  ) 

Definition at line 274 of file EvolveTrafficDoc.cpp.

References m_IDMParams_Car.

Referenced by CEvolveTrafficView::OnConfigTraf().

00275 {
00276         m_IDMParams_Car = theSet;
00277         SetModifiedFlag();      // To implement Save Changes prompts
00278 }

void CEvolveTrafficDoc::setIDMParams_SmallTruck ( CIDMParameterSet  theSet  ) 

Definition at line 280 of file EvolveTrafficDoc.cpp.

References m_IDMParams_SmallTruck.

Referenced by CEvolveTrafficView::OnConfigTraf().

00281 {
00282         m_IDMParams_SmallTruck = theSet;
00283         SetModifiedFlag();      // To implement Save Changes prompts
00284 }

void CEvolveTrafficDoc::setIDMParams_LargeTruck ( CIDMParameterSet  theSet  ) 

Definition at line 286 of file EvolveTrafficDoc.cpp.

References m_IDMParams_LargeTruck.

Referenced by CEvolveTrafficView::OnConfigTraf().

00287 {
00288         m_IDMParams_LargeTruck = theSet;
00289         SetModifiedFlag();      // To implement Save Changes prompts
00290 }

void CEvolveTrafficDoc::setIDMParams_Crane ( CIDMParameterSet  theSet  ) 

Definition at line 292 of file EvolveTrafficDoc.cpp.

References m_IDMParams_Crane.

Referenced by CEvolveTrafficView::OnConfigTraf().

00293 {
00294         m_IDMParams_Crane = theSet;
00295         SetModifiedFlag();      // To implement Save Changes prompts
00296 }

void CEvolveTrafficDoc::setIDMParams_Lowloader ( CIDMParameterSet  theSet  ) 

Definition at line 298 of file EvolveTrafficDoc.cpp.

References m_IDMParams_Lowloader.

Referenced by CEvolveTrafficView::OnConfigTraf().

00299 {
00300         m_IDMParams_Lowloader = theSet;
00301         SetModifiedFlag();      // To implement Save Changes prompts
00302 }


Member Data Documentation

Definition at line 115 of file EvolveTrafficDoc.h.

Referenced by getMetricsDir(), initSim(), Serialize(), and setMetricsDir().

Definition at line 119 of file EvolveTrafficDoc.h.

Referenced by getAllowLaneChanging(), initSim(), Serialize(), and setAllowLaneChanging().

Definition at line 124 of file EvolveTrafficDoc.h.

CString CEvolveTrafficDoc::m_FileIn [private]

Definition at line 125 of file EvolveTrafficDoc.h.

Referenced by getFileIn(), initSim(), OnNewDocument(), Serialize(), and setFileIn().

CString CEvolveTrafficDoc::m_FileOut [private]

Definition at line 126 of file EvolveTrafficDoc.h.

Referenced by getFileOut(), initSim(), OnNewDocument(), Serialize(), and setFileOut().

Definition at line 127 of file EvolveTrafficDoc.h.

Referenced by getFileType(), initSim(), OnNewDocument(), Serialize(), and setFileType().

Definition at line 130 of file EvolveTrafficDoc.h.

Referenced by getSimTimeStep(), initSim(), OnNewDocument(), Serialize(), and setSimTimeStep().

Definition at line 132 of file EvolveTrafficDoc.h.

Referenced by getNoLanes(), initSim(), Serialize(), setNoLanes(), and UpdateDerivedMembers().

Definition at line 133 of file EvolveTrafficDoc.h.

Referenced by getRoadLength(), initSim(), OnNewDocument(), Serialize(), and setRoadLength().

Definition at line 134 of file EvolveTrafficDoc.h.

Referenced by getIDMParams_Car(), initSim(), Serialize(), and setIDMParams_Car().

Definition at line 137 of file EvolveTrafficDoc.h.

Referenced by getIDMParams_Crane(), initSim(), Serialize(), and setIDMParams_Crane().


The documentation for this class was generated from the following files:

Generated on Wed Aug 20 00:48:43 2008 for EvolveTraffic by  doxygen 1.5.6