SUMO - Simulation of Urban MObility
AGActivityGen.h
Go to the documentation of this file.
1 /****************************************************************************/
10 // Main class that handles City, Activities and Trips
11 /****************************************************************************/
12 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
13 // Copyright (C) 2010-2015 DLR (http://www.dlr.de/) and contributors
14 // activitygen module
15 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
16 /****************************************************************************/
17 //
18 // This file is part of SUMO.
19 // SUMO is free software: you can redistribute it and/or modify
20 // it under the terms of the GNU General Public License as published by
21 // the Free Software Foundation, either version 3 of the License, or
22 // (at your option) any later version.
23 //
24 /****************************************************************************/
25 #ifndef AGACTIVITYGEN_H
26 #define AGACTIVITYGEN_H
27 
28 
29 // ===========================================================================
30 // included modules
31 // ===========================================================================
32 #ifdef _MSC_VER
33 #include <windows_config.h>
34 #else
35 #include <config.h>
36 #endif
37 
38 #include "city/AGCity.h"
39 
40 
41 // ===========================================================================
42 // class declarations
43 // ===========================================================================
44 class OutputDevice;
45 class RONet;
46 class AGTrip;
47 
48 
49 // ===========================================================================
50 // class definitions
51 // ===========================================================================
57 public:
58  //AGActivityGen() {};
65  AGActivityGen(std::string input, OutputDevice& output, RONet* net) :
66  inputFile(input),
67  outputFile(output),
68  net(net),
69  //activities(),
70  city(net) {};
76  void importInfoCity();
77 
91  void makeActivityTrips(int days = 1, int beginTime = 0, int endTime = 0);
92 
93 protected:
94  // @brief xml file statistics on the city and generated routes
95  std::string inputFile;
98  // @brief network of the city
100  //Activities activities;
101  // @brief city object containing all households and vehicles
103  // @brief time of beginning and ending of the simulation and the duration of the simulation in days (min 1 day (beginning and end in the same day)
105 
114  bool timeTripValidation(const AGTrip& trip) const;
120  void generateOutputFile(std::list<AGTrip>& trips);
126  void varDepTime(AGTrip& trip) const;
127 
128 private:
131 };
132 
133 #endif
134 
135 /****************************************************************************/
136 
void varDepTime(AGTrip &trip) const
OutputDevice & outputFile
The generated routes.
Definition: AGActivityGen.h:97
void makeActivityTrips(int days=1, int beginTime=0, int endTime=0)
build activities and trips of the population and generate routes
Central object handling City, Activities and Trips.
Definition: AGActivityGen.h:56
AGActivityGen & operator=(const AGActivityGen &)
invalidated assignment operator
Definition: AGCity.h:60
The router's network representation.
Definition: RONet.h:72
void generateOutputFile(std::list< AGTrip > &trips)
generate the output file (trips or routes) using a trip list
bool timeTripValidation(const AGTrip &trip) const
validation: compatibility of the given trip
void importInfoCity()
build the internal city
std::string inputFile
Definition: AGActivityGen.h:95
AGActivityGen(std::string input, OutputDevice &output, RONet *net)
Constructor.
Definition: AGActivityGen.h:65
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:71
Definition: AGTrip.h:48