/****************************************************************************/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 EffortCalculator.h14/// @author Michael Behrisch15/// @date 2018-08-2116///17// The EffortCalculator is an interface for additional edge effort calculators18/****************************************************************************/19#pragma once20#include <config.h>2122#include <utils/common/Parameterised.h>232425// ===========================================================================26// class definitions27// ===========================================================================28/// @brief the effort calculator interface29class EffortCalculator {30public:31/// @brief empty destructor32virtual ~EffortCalculator() {}3334/** Pass the set of all edges in the routing query to the effortCalculator **/35virtual void init(const std::vector<std::string>& edges) = 0;3637/** Add information about stops **/38virtual void addStop(const int stopEdge, const Parameterised& params) = 0;3940/** Return the effort of a given edge **/41virtual double getEffort(const int numericalID) const = 0;4243/** Update the effort of the edge **/44virtual void update(const int edge, const int prev, const double length) = 0;4546/** Set the effort of the first edge in the query to zero **/47virtual void setInitialState(const int edge) = 0;4849/** basic output facility to inform about effort at this edge **/50virtual std::string output(const int edge) const = 0;5152};535455