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-sim.org/
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, OutputDevice& 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 file statistics on the city and generated routes
88  std::string inputFile;
91  // @brief network of the city
93  //Activities activities;
94  // @brief city object containing all households and vehicles
96  // @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)
98 
113  void generateOutputFile(std::list<AGTrip>& trips);
119  void varDepTime(AGTrip& trip);
120 
121 private:
124 };
125 
126 #endif
127 
128 /****************************************************************************/
129 
void varDepTime(AGTrip &trip)
OutputDevice & outputFile
The generated routes.
Definition: AGActivityGen.h:90
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:49
AGActivityGen & operator=(const AGActivityGen &)
invalidated assignment operator
Definition: AGCity.h:59
The router&#39;s network representation.
Definition: RONet.h:65
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:88
AGActivityGen(std::string input, OutputDevice &output, RONet *net)
Constructor.
Definition: AGActivityGen.h:58
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:70
Definition: AGTrip.h:46