LCOV - code coverage report
Current view: top level - src/foreign/PHEMlight/cpp - Constants.cpp (source / functions) Coverage Total Hit
Test: lcov.info Lines: 100.0 % 5 5
Test Date: 2024-11-20 15:55:46 Functions: 100.0 % 2 2

            Line data    Source code
       1              : /****************************************************************************/
       2              : // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
       3              : // Copyright (C) 2016-2024 German Aerospace Center (DLR) and others.
       4              : // PHEMlight module
       5              : // Copyright (C) 2016-2017 Technische Universitaet Graz, https://www.tugraz.at/
       6              : // This program and the accompanying materials are made available under the
       7              : // terms of the Eclipse Public License 2.0 which is available at
       8              : // https://www.eclipse.org/legal/epl-2.0/
       9              : // This Source Code may also be made available under the following Secondary
      10              : // Licenses when the conditions for such availability set forth in the Eclipse
      11              : // Public License 2.0 are satisfied: GNU General Public License, version 2
      12              : // or later which is available at
      13              : // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
      14              : // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
      15              : /****************************************************************************/
      16              : /// @file    Constants.cpp
      17              : /// @author  Martin Dippold
      18              : /// @author  Michael Behrisch
      19              : /// @date    July 2016
      20              : ///
      21              : //
      22              : /****************************************************************************/
      23              : #include <config.h>
      24              : 
      25              : #include "Constants.h"
      26              : 
      27              : namespace PHEMlightdll {
      28              : 
      29              :     const double Constants::GRAVITY_CONST = 9.81;
      30              :     const double Constants::AIR_DENSITY_CONST = 1.182;
      31              :     const double Constants::NORMALIZING_SPEED = 19.444;
      32              :     const double Constants::NORMALIZING_ACCELARATION = 0.45;
      33              :     const double Constants::SPEED_DCEL_MIN = 10 / 3.6;
      34              :     const double Constants::ZERO_SPEED_ACCURACY = 0.5;
      35              :     const double Constants::DRIVE_TRAIN_EFFICIENCY_All = 0.9;
      36              :     const double Constants::DRIVE_TRAIN_EFFICIENCY_CB = 0.8;
      37              : 
      38              :     const std::string Constants::HeavyVehicle = "HV";
      39              :     const std::string Constants::strPKW = "PC";
      40              :     const std::string Constants::strLNF = "LCV";
      41              :     const std::string Constants::strLKW = "HDV_RT";
      42              :     const std::string Constants::strLSZ = "HDV_TT";
      43              :     const std::string Constants::strRB = "HDV_CO";
      44              :     const std::string Constants::strLB = "HDV_CB";
      45              :     const std::string Constants::strMR2 = "MC_2S";
      46              :     const std::string Constants::strMR4 = "MC_4S";
      47              :     const std::string Constants::strKKR = "MOP";
      48              :     const std::string Constants::strGasoline = "G";
      49              :     const std::string Constants::strDiesel = "D";
      50              :     const std::string Constants::strCNG = "CNG";
      51              :     const std::string Constants::strLPG = "LPG";
      52              :     const std::string Constants::strHybrid = "HEV";
      53              :     const std::string Constants::strBEV = "BEV";
      54              :     const std::string Constants::strEU = "EU";
      55              :     const std::string Constants::strSI = "I";
      56              :     const std::string Constants::strSII = "II";
      57              :     const std::string Constants::strSIII = "III";
      58              : 
      59              :     double Constants::myDRIVE_TRAIN_EFFICIENCY = 0;
      60              : 
      61              : 
      62      1537995 :     const double& Constants::getDRIVE_TRAIN_EFFICIENCY() {
      63      1537995 :         return myDRIVE_TRAIN_EFFICIENCY;
      64              :     }
      65              : 
      66              : 
      67          109 :     void Constants::setDRIVE_TRAIN_EFFICIENCY(const double& value) {
      68          109 :         myDRIVE_TRAIN_EFFICIENCY = value;
      69          109 :     }
      70              : }
        

Generated by: LCOV version 2.0-1