SUMO - Simulation of Urban MObility
NBVehicle.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2002-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 /****************************************************************************/
17 // A vehicle as used by router
18 /****************************************************************************/
19 #ifndef NBVehicle_h
20 #define NBVehicle_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
29 #include <iostream>
30 
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
44 class NBVehicle {
45 public:
52  NBVehicle(const std::string& id, SUMOVehicleClass vClass):
53  myID(id), myVClass(vClass) {}
54 
55  const std::string& getID() const {
56  return myID;
57  }
58 
60  return myVClass;
61  }
62 
63 
65  virtual ~NBVehicle() {}
66 
67 
68 private:
70  std::string myID;
71 
74 
75 
76 private:
78  NBVehicle(const NBVehicle& src);
79 
81  NBVehicle& operator=(const NBVehicle& src);
82 
83 };
84 
85 
86 #endif
87 
88 /****************************************************************************/
SUMOVehicleClass getVClass() const
Definition: NBVehicle.h:59
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
std::string myID
vehicle ID for error reporting
Definition: NBVehicle.h:70
SUMOVehicleClass myVClass
The vehicle class of the.
Definition: NBVehicle.h:73
NBVehicle & operator=(const NBVehicle &src)
Invalidated assignment operator.
virtual ~NBVehicle()
Destructor.
Definition: NBVehicle.h:65
const std::string & getID() const
Definition: NBVehicle.h:55
A vehicle as used by router.
Definition: NBVehicle.h:44
NBVehicle(const std::string &id, SUMOVehicleClass vClass)
Constructor.
Definition: NBVehicle.h:52