SUMO - Simulation of Urban MObility
AGActivityGen.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2010-2017 German Aerospace Center (DLR) and others.
4 // activitygen module
5 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
6 /****************************************************************************/
7 //
8 // This program and the accompanying materials
9 // are made available under the terms of the Eclipse Public License v2.0
10 // which accompanies this distribution, and is available at
11 // http://www.eclipse.org/legal/epl-v20.html
12 //
13 /****************************************************************************/
22 // Main class that handles City, Activities and Trips
23 /****************************************************************************/
24 #ifndef AGACTIVITYGEN_H
25 #define AGACTIVITYGEN_H
26 
27 
28 // ===========================================================================
29 // included modules
30 // ===========================================================================
31 #ifdef _MSC_VER
32 #include <windows_config.h>
33 #else
34 #include <config.h>
35 #endif
36 
37 #include "city/AGCity.h"
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class OutputDevice;
44 class RONet;
45 class AGTrip;
46 
47 
48 // ===========================================================================
49 // class definitions
50 // ===========================================================================
56 public:
57  //AGActivityGen() {};
64  AGActivityGen(std::string input, OutputDevice& output, RONet* net) :
65  inputFile(input),
66  outputFile(output),
67  net(net),
68  //activities(),
69  city(net) {};
75  void importInfoCity();
76 
90  void makeActivityTrips(int days = 1, int beginTime = 0, int endTime = 0);
91 
92 protected:
93  // @brief xml file statistics on the city and generated routes
94  std::string inputFile;
97  // @brief network of the city
99  //Activities activities;
100  // @brief city object containing all households and vehicles
102  // @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)
104 
113  bool timeTripValidation(const AGTrip& trip) const;
119  void generateOutputFile(std::list<AGTrip>& trips);
125  void varDepTime(AGTrip& trip) const;
126 
127 private:
130 };
131 
132 #endif
133 
134 /****************************************************************************/
135 
void varDepTime(AGTrip &trip) const
OutputDevice & outputFile
The generated routes.
Definition: AGActivityGen.h:96
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:55
AGActivityGen & operator=(const AGActivityGen &)
invalidated assignment operator
Definition: AGCity.h:59
bool timeTripValidation(const AGTrip &trip) const
validation: compatibility of the given trip
The router&#39;s network representation.
Definition: RONet.h:74
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:94
AGActivityGen(std::string input, OutputDevice &output, RONet *net)
Constructor.
Definition: AGActivityGen.h:64
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:70
Definition: AGTrip.h:47