SUMO - Simulation of Urban MObility
EffortCalculator.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2018 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // The EffortCalculator is an interface for additional edge effort calculators
16 /****************************************************************************/
17 #ifndef EffortCalculator_h
18 #define EffortCalculator_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 
27 // ===========================================================================
28 // class definitions
29 // ===========================================================================
32 public:
33  virtual void init(const std::vector<std::string>& edges) = 0;
34  virtual double getEffort(const int edge) const = 0;
35  virtual void update(const int edge, const int prev, const double length) = 0;
36 };
37 
38 
39 #endif
40 
41 /****************************************************************************/
virtual void init(const std::vector< std::string > &edges)=0
the effort calculator interface
virtual void update(const int edge, const int prev, const double length)=0
virtual double getEffort(const int edge) const =0