LCOV - code coverage report
Current view: top level - src/activitygen/city - AGBus.cpp (source / functions) Coverage Total Hit
Test: lcov.info Lines: 70.0 % 10 7
Test Date: 2024-11-22 15:46:21 Functions: 75.0 % 4 3

            Line data    Source code
       1              : /****************************************************************************/
       2              : // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
       3              : // Copyright (C) 2001-2024 German Aerospace Center (DLR) and others.
       4              : // activitygen module
       5              : // Copyright 2010 TUM (Technische Universitaet Muenchen, http://www.tum.de/)
       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    AGBus.cpp
      17              : /// @author  Piotr Woznica
      18              : /// @author  Daniel Krajzewicz
      19              : /// @author  Walter Bamberger
      20              : /// @date    July 2010
      21              : ///
      22              : // A bus driving in the city
      23              : /****************************************************************************/
      24              : #include <config.h>
      25              : 
      26              : #include <iostream>
      27              : #include <string>
      28              : #include "AGBus.h"
      29              : 
      30              : 
      31              : // ===========================================================================
      32              : // method definitions
      33              : // ===========================================================================
      34         1010 : void AGBus::setName(std::string name) {
      35         1010 :     myName = name;
      36         1010 : }
      37              : 
      38              : int
      39         5060 : AGBus::getDeparture() {
      40         5060 :     return myDepartureTime;
      41              : }
      42              : 
      43              : std::string
      44         2009 : AGBus::getName() {
      45         2009 :     return myName;
      46              : }
      47              : 
      48              : void
      49            0 : AGBus::print() const {
      50            0 :     std::cout << "- Bus:" << " name=" << myName << " depTime=" << myDepartureTime << std::endl;
      51            0 : }
      52              : 
      53              : 
      54              : /****************************************************************************/
        

Generated by: LCOV version 2.0-1