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-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 
void varDepTime(AGTrip &trip)
OutputDevice & outputFile
The generated routes.
Definition: AGActivityGen.h:91
bool timeTripValidation(AGTrip)
validation: compatibility of the given trip
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:50
AGActivityGen & operator=(const AGActivityGen &)
invalidated assignment operator
Definition: AGCity.h:60
The router's network representation.
Definition: RONet.h:67
void generateOutputFile(std::list< AGTrip > &trips)
generate the output file (trips or routes) using a trip list
void importInfoCity()
build the internal city
std::string inputFile
Definition: AGActivityGen.h:89
AGActivityGen(std::string input, OutputDevice &output, RONet *net)
Constructor.
Definition: AGActivityGen.h:59
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:71
Definition: AGTrip.h:48