86 myAdditionalElement(nullptr),
87 myDemandElement(demandElement),
88 myGenericData(nullptr) {
93 myAdditionalElement(nullptr),
94 myDemandElement(nullptr),
95 myGenericData(genericData) {
102 const std::vector<GNEPathElements::PathElement>&
113 if (pathElement.getLane() == lane) {
121 if (pathElement.getLane() == lane) {
129 if (pathElement.getLane() == lane) {
142 if (pathElement.getJunction() == junction) {
150 if (pathElement.getJunction() == junction) {
158 if (pathElement.getJunction() == junction) {
172 if (fromLane && toLane) {
182 if (path.size() > 0) {
183 for (
int i = 0; i < (int)path.size(); i++) {
186 }
else if (i == (
int)path.size()) {
188 }
else if (allowedVClass) {
189 myPathElements.push_back(path.at(i)->getLaneByAllowedVClass(vClass));
191 myPathElements.push_back(path.at(i)->getLaneByDisallowedVClass(vClass));
212 for (
const auto& edge : edges) {
216 myPathElements.push_back(edge->getLaneByDisallowedVClass(vClass));
233 for (
const auto& lane : lanes) {
246 if (fromLane && toLane) {
254 if (edges.size() > 0) {
255 for (
int i = 0; i < (int)edges.size(); i++) {
258 }
else if (i == (
int)edges.size()) {
260 }
else if (allowedVClass) {
261 myPathElements.push_back(edges.at(i)->getLaneByAllowedVClass(vClass));
263 myPathElements.push_back(edges.at(i)->getLaneByDisallowedVClass(vClass));
286 for (
const auto& edge : edges) {
287 for (
const auto& lane : edge->getLanes()) {
306 if (pathElement.getJunction()) {
316 if (pathElement.getJunction()) {
326 if (pathElement.getJunction()) {
327 pathElement.getJunction()->addPathGenericData(
myGenericData);
341 if (pathElement.getJunction()) {
351 if (pathElement.getJunction()) {
361 if (pathElement.getJunction()) {
362 pathElement.getJunction()->removePathGenericData(
myGenericData);
373 i->updateNextLane((i + 1)->getLane());
378 const std::vector<GNEEdge*>
381 std::vector<GNEEdge*> edges;
384 for (
const auto& edge : viaEdges) {
385 edges.push_back(edge);
389 edges.erase(std::unique(edges.begin(), edges.end()), edges.end());
396 myAdditionalElement(nullptr),
397 myDemandElement(nullptr),
398 myGenericData(nullptr) {