Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
AGActivities.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2024 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 are made available under the
7// terms of the Eclipse Public License 2.0 which is available at
8// https://www.eclipse.org/legal/epl-2.0/
9// This Source Code may also be made available under the following Secondary
10// Licenses when the conditions for such availability set forth in the Eclipse
11// Public License 2.0 are satisfied: GNU General Public License, version 2
12// or later which is available at
13// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
14// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
15/****************************************************************************/
22// Main class that manages activities taken in account and generates the
23// inhabitants' trip list.
24/****************************************************************************/
25#pragma once
26#include <config.h>
27
28#include <list>
29#include "AGTrip.h"
33
34
35// ===========================================================================
36// class definitions
37// ===========================================================================
39public:
40 AGActivities(AGCity* city, int days) :
41 myCity(city),
42 nbrDays(days) {};
43 void addTrip(AGTrip t, std::list<AGTrip>* tripSet);
44 void addTrips(std::list<AGTrip> t, std::list<AGTrip>* tripSet);
46
53 std::list<AGTrip> trips;
54
55private:
56 bool generateTrips(AGHousehold& hh);
60
64 std::string generateName(int i, std::string prefix);
65
67
69
70};
std::list< AGTrip > trips
bool generateTrips(AGHousehold &hh)
bool generateBusTraffic(AGBusLine bl)
AGCity * myCity
bool generateRandomTraffic()
void addTrips(std::list< AGTrip > t, std::list< AGTrip > *tripSet)
std::string generateName(int i, std::string prefix)
void generateActivityTrips()
void addTrip(AGTrip t, std::list< AGTrip > *tripSet)
bool generateInOutTraffic()
AGActivities(AGCity *city, int days)