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 /****************************************************************************/
9 // Main class that handles City, Activities and Trips
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
13 // activitygen module
14 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
15 /****************************************************************************/
16 //
17 // This file is part of SUMO.
18 // SUMO is free software: you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation, either version 3 of the License, or
21 // (at your option) any later version.
22 //
23 /****************************************************************************/
24 #ifndef AGACTIVITYGEN_H
25 #define AGACTIVITYGEN_H
26 
27 
28 // ===========================================================================
29 // included modules
30 // ===========================================================================
31 #include <iostream>
32 #include <list>
33 #include <string>
34 #include <router/RONet.h>
35 #include "city/AGCity.h"
36 #include "activities/AGTrip.h"
38 #include "city/AGStreet.h"
39 #include "city/AGPosition.h"
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
50 public:
51  //AGActivityGen() {};
58  AGActivityGen(std::string input, std::string output, RONet* net) :
59  inputFile(input),
60  outputFile(output),
61  net(net),
62  //activities(),
63  city(net) {};
69  void importInfoCity();
70 
84  void makeActivityTrips(int days = 1, int beginTime = 0, int endTime = 0);
85 
86 protected:
87  // @brief xml files: statistics on the city and generated routes
88  std::string inputFile, outputFile;
89  // @brief network of the city
91  //Activities activities;
92  // @brief city object containing all households and vehicles
94  // @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)
96 
111  void generateOutputFile(std::list<AGTrip>& trips);
117  void varDepTime(AGTrip& trip);
118 
119 private:
122 };
123 
124 #endif
125 
126 /****************************************************************************/
127