SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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-sim.org/
13 // Copyright (C) 2010-2014 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 #include <iostream>
33 #include <list>
34 #include <string>
35 #include <router/RONet.h>
36 #include "city/AGCity.h"
37 #include "activities/AGTrip.h"
39 #include "city/AGStreet.h"
40 #include "city/AGPosition.h"
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
51 public:
52  //AGActivityGen() {};
59  AGActivityGen(std::string input, OutputDevice& output, RONet* net) :
60  inputFile(input),
61  outputFile(output),
62  net(net),
63  //activities(),
64  city(net) {};
70  void importInfoCity();
71 
85  void makeActivityTrips(int days = 1, int beginTime = 0, int endTime = 0);
86 
87 protected:
88  // @brief xml file statistics on the city and generated routes
89  std::string inputFile;
92  // @brief network of the city
94  //Activities activities;
95  // @brief city object containing all households and vehicles
97  // @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)
99 
114  void generateOutputFile(std::list<AGTrip>& trips);
120  void varDepTime(AGTrip& trip);
121 
122 private:
125 };
126 
127 #endif
128 
129 /****************************************************************************/
130