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-2018 German Aerospace Center (DLR) and others.
4 // activitygen module
5 // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 // SPDX-License-Identifier: EPL-2.0
11 /****************************************************************************/
20 // Main class that handles City, Activities and Trips
21 /****************************************************************************/
22 #ifndef AGACTIVITYGEN_H
23 #define AGACTIVITYGEN_H
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #include <config.h>
30 
31 #include "city/AGCity.h"
32 
33 
34 // ===========================================================================
35 // class declarations
36 // ===========================================================================
37 class OutputDevice;
38 class RONet;
39 class AGTrip;
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 
107  bool timeTripValidation(const AGTrip& trip) const;
113  void generateOutputFile(std::list<AGTrip>& trips);
119  void varDepTime(AGTrip& trip) const;
120 
121 private:
124 };
125 
126 #endif
127 
128 /****************************************************************************/
129 
void varDepTime(AGTrip &trip) const
OutputDevice & outputFile
The generated routes.
Definition: AGActivityGen.h:90
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:53
bool timeTripValidation(const AGTrip &trip) const
validation: compatibility of the given trip
The router&#39;s network representation.
Definition: RONet.h:68
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:64
Definition: AGTrip.h:41