/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2010-2025 German Aerospace Center (DLR) and others.3// activitygen module4// Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)5// This program and the accompanying materials are made available under the6// terms of the Eclipse Public License 2.0 which is available at7// https://www.eclipse.org/legal/epl-2.0/8// This Source Code may also be made available under the following Secondary9// Licenses when the conditions for such availability set forth in the Eclipse10// Public License 2.0 are satisfied: GNU General Public License, version 211// or later which is available at12// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html13// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later14/****************************************************************************/15/// @file AGStreet.cpp16/// @author Piotr Woznica17/// @author Walter Bamberger18/// @author Daniel Krajzewicz19/// @author Michael Behrisch20/// @date July 201021///22// Represents a SUMO edge and contains people and work densities23/****************************************************************************/24#include <config.h>2526#include "AGStreet.h"27#include "router/ROEdge.h"28#include <iostream>293031// ===========================================================================32// method definitions33// ===========================================================================34AGStreet::AGStreet(const std::string& id, RONode* from, RONode* to, int index, const int priority, const std::string& type) :35ROEdge(id, from, to, index, priority, type), myPopulation(0.), myNumWorkplaces(0.) {36}373839void40AGStreet::print() const {41std::cout << "- AGStreet: Name=" << getID() << " Length=" << getLength() << " pop=" << myPopulation << " work=" << myNumWorkplaces << std::endl;42}434445double46AGStreet::getPopulation() const {47return myPopulation;48}495051void52AGStreet::setPopulation(const double population) {53myPopulation = population;54}555657double58AGStreet::getWorkplaceNumber() const {59return myNumWorkplaces;60}616263void64AGStreet::setWorkplaceNumber(const double workPositions) {65myNumWorkplaces = workPositions;66}676869bool70AGStreet::allows(const SUMOVehicleClass vclass) const {71return (getPermissions() & vclass) == vclass;72}737475/****************************************************************************/767778