Eclipse SUMO - Simulation of Urban MObility
GUITransportableControl.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3 // Copyright (C) 2012-2024 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
20 // GUI-version of the transportable control for building gui persons and containers
21 /****************************************************************************/
22 #pragma once
23 #include <config.h>
24 
25 #include <vector>
27 
28 
29 // ===========================================================================
30 // class definitions
31 // ===========================================================================
36 public:
38  GUITransportableControl(const bool isPerson);
39 
40 
42  virtual ~GUITransportableControl();
43 
44 
52  SumoRNG* rng) const;
53 
60 
65  void insertIDs(std::vector<GUIGlID>& into);
66 
67 protected:
68 
69  const bool myIsPerson;
70 };
GUI-version of the transportable control for building gui persons and containers.
virtual MSTransportable * buildContainer(const SUMOVehicleParameter *pars, MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan) const
Builds a new container.
void insertIDs(std::vector< GUIGlID > &into)
Returns the list of all known persons by gl-id.
virtual MSTransportable * buildPerson(const SUMOVehicleParameter *pars, MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan, SumoRNG *rng) const
Builds a new person.
GUITransportableControl(const bool isPerson)
constructor
virtual ~GUITransportableControl()
destructor
std::vector< MSStage * > MSTransportablePlan
the structure holding the plan of a transportable
The car-following model and parameter.
Definition: MSVehicleType.h:63
Structure representing possible vehicle parameter.