Eclipse SUMO - Simulation of Urban MObility
MSTransportableDevice_FCD.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2013-2019 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 /****************************************************************************/
16 // A device which records floating car data
17 /****************************************************************************/
18 #ifndef MSTransportableDevice_FCD_h
19 #define MSTransportableDevice_FCD_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include "MSTransportableDevice.h"
28 #include <utils/common/SUMOTime.h>
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class MSTransportable;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
49 public:
53  static void insertOptions(OptionsCont& oc);
54 
55 
66  static void buildDevices(MSTransportable& t, std::vector<MSTransportableDevice*>& into);
67 
68 public:
71 
72  bool notifyEnter(SUMOTrafficObject& /*veh*/, MSMoveReminder::Notification /*reason*/, const MSLane* /*enteredLane*/) {
73  return false;
74  }
75 
76  void saveState(OutputDevice& /* out */) const {
77  }
78 
80  const std::string deviceName() const {
81  return "fcd";
82  }
83 
85  static void cleanup();
86 
87 private:
93  MSTransportableDevice_FCD(MSTransportable& holder, const std::string& id);
94 
95 private:
98 
101 
102 
103 };
104 
105 
106 #endif
107 
108 /****************************************************************************/
109 
static void cleanup()
resets the edge filter
Notification
Definition of a vehicle state.
bool notifyEnter(SUMOTrafficObject &, MSMoveReminder::Notification, const MSLane *)
void saveState(OutputDevice &) const
Saves the state of the device.
A device which collects info on the vehicle trip (mainly on departure and arrival) ...
Abstract in-person device.
MSTransportableDevice_FCD & operator=(const MSTransportableDevice_FCD &)
Invalidated assignment operator.
const std::string deviceName() const
return the name for this type of device
Representation of a vehicle or person.
static void insertOptions(OptionsCont &oc)
Inserts MSTransportableDevice_FCD-options.
A storage for options typed value containers)
Definition: OptionsCont.h:90
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:64
MSTransportableDevice_FCD(MSTransportable &holder, const std::string &id)
Constructor.
Representation of a lane in the micro simulation.
Definition: MSLane.h:83
static void buildDevices(MSTransportable &t, std::vector< MSTransportableDevice *> &into)
Build devices for the given vehicle, if needed.