/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file GNEPathElement.cpp14/// @author Pablo Alvarez Lopez15/// @date Nov 202416///17// Class used for path elements (routes, trips, flows...)18/****************************************************************************/1920#include "GNEPathElement.h"2122// ===========================================================================23// member method definitions24// ===========================================================================2526GNEPathElement::GNEPathElement(const GNEPathElement::Options options) :27myOptions(options) {28}293031GNEPathElement::~GNEPathElement() {}323334GNEPathElement::Options35GNEPathElement::getPathElementOptions() const {36return myOptions;37}383940bool41GNEPathElement::isNetworkElement() const {42return (myOptions & GNEPathElement::Options::NETWORK_ELEMENT) != 0;43}444546bool47GNEPathElement::isAdditionalElement() const {48return (myOptions & GNEPathElement::Options::ADDITIONAL_ELEMENT) != 0;49}505152bool53GNEPathElement::isDemandElement() const {54return (myOptions & GNEPathElement::Options::DEMAND_ELEMENT) != 0;55}565758bool59GNEPathElement::isDataElement() const {60return (myOptions & GNEPathElement::Options::DATA_ELEMENT) != 0;61}626364bool65GNEPathElement::isRoute() const {66return (myOptions & GNEPathElement::Options::ROUTE) != 0;67}6869/****************************************************************************/707172