Eclipse SUMO - Simulation of Urban MObility
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GNEPlanParents.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-2025 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/****************************************************************************/
18// Builds demand objects for netedit
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
32
33// ===========================================================================
34// class declarations
35// ===========================================================================
36
37class GNEViewNet;
38class GNEEdge;
39class GNETAZ;
41class GNEVehicle;
42class GNEPerson;
43class GNEContainer;
44class GNEUndoList;
45
46// ===========================================================================
47// class definitions
48// ===========================================================================
49
52
53public:
56
60
62 bool checkIntegrity(SumoXMLTag planTag, const GNEDemandElement* parent,
63 const CommonXMLStructure::PlanParameters& planParameters) const;
64
67
69 void clear();
70
74 bool getFromBusStop() const;
75
77 bool getToBusStop() const;
78
80 bool getFromTrainStop() const;
81
83 bool getToTrainStop() const;
84
86 bool getFromContainerStop() const;
87
89 bool getToContainerStop() const;
90
92 bool getFromChargingStation() const;
93
95 bool getToChargingStation() const;
96
98 bool getFromParkingArea() const;
99
101 bool getToParkingArea() const;
102
104
106 std::vector<GNEJunction*> getJunctions() const;
107
109 std::vector<GNEEdge*> getEdges() const;
110
112 std::vector<GNEAdditional*> getAdditionalElements() const;
113
115 std::vector<GNEDemandElement*> getDemandElements(GNEDemandElement* parent) const;
116
118 GNEEdge* fromEdge = nullptr;
119
121 GNEEdge* toEdge = nullptr;
122
124 std::vector<GNEEdge*> consecutiveEdges;
125
128
131
134
137
140
143
146
149};
SumoXMLTag
Numbers representing SUMO-XML - element names.
plan parameters (used for group all from-to parameters related with plans)
A road/street connecting two junctions (netedit-version)
Definition GNEEdge.h:53
struct used for saving all attribute carriers of net, in different formats
GNEPlanParents (used for group all plan parents)
std::vector< GNEDemandElement * > getDemandElements(GNEDemandElement *parent) const
get demand elements (used in plan constructors)
bool checkIntegrity(SumoXMLTag planTag, const GNEDemandElement *parent, const CommonXMLStructure::PlanParameters &planParameters) const
check integrity between planParameters and GNE elements
bool getFromContainerStop() const
get from containerStop
std::vector< GNEEdge * > consecutiveEdges
edges
bool getFromParkingArea() const
get from parkingArea
GNEAdditional * fromTAZ
from TAZ
void clear()
clear elements
GNEJunction * toJunction
to junction
std::vector< GNEAdditional * > getAdditionalElements() const
get additionalElements (used in plan constructors)
GNEEdge * toEdge
to edge
GNEDemandElement * fromRoute
from route (currently only used by walks)
GNEAdditional * toStoppingPlace
to stoppingPlace
GNEEdge * fromEdge
from edge
bool getToParkingArea() const
get to parkingArea
std::vector< GNEEdge * > getEdges() const
get edges (used in plan constructors)
bool getFromTrainStop() const
get from trainStop
bool getFromChargingStation() const
get from chargingStation
bool getToChargingStation() const
get to chargingStation
GNEJunction * fromJunction
from junction
bool getFromBusStop() const
bool getToContainerStop() const
get to containerStop
std::vector< GNEJunction * > getJunctions() const
get junctions (used in plan constructors)
bool getToTrainStop() const
get to trainStop
GNEAdditional * fromStoppingPlace
from stoppingPlace
GNEPlanParents()
default constructor
GNEAdditional * toTAZ
to TAZ
bool getToBusStop() const
get to busStop
void addDemandElementChild(GNEDemandElement *element)
add the given demand element in the element as child
GNEDemandElement * toRoute
to route (currently only used by walks)