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 /****************************************************************************/
15 // A device which records floating car data
16 /****************************************************************************/
17 #ifndef MSTransportableDevice_FCD_h
18 #define MSTransportableDevice_FCD_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include "MSTransportableDevice.h"
27 #include <utils/common/SUMOTime.h>
28 
29 
30 // ===========================================================================
31 // class declarations
32 // ===========================================================================
33 class MSTransportable;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
48 public:
52  static void insertOptions(OptionsCont& oc);
53 
54 
65  static void buildDevices(MSTransportable& t, std::vector<MSTransportableDevice*>& into);
66 
67 public:
70 
71  bool notifyEnter(SUMOTrafficObject& /*veh*/, MSMoveReminder::Notification /*reason*/, const MSLane* /*enteredLane*/) {
72  return false;
73  }
74 
75  void saveState(OutputDevice& /* out */) const {
76  }
77 
79  const std::string deviceName() const {
80  return "fcd";
81  }
82 
84  static void cleanup();
85 
86 private:
92  MSTransportableDevice_FCD(MSTransportable& holder, const std::string& id);
93 
94 private:
97 
100 
101 
102 };
103 
104 
105 #endif
106 
107 /****************************************************************************/
108 
SUMOTrafficObject
Representation of a vehicle or person.
Definition: SUMOTrafficObject.h:47
SUMOTime.h
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:63
MSTransportable
Definition: MSTransportable.h:58
MSTransportableDevice_FCD::cleanup
static void cleanup()
resets the edge filter
Definition: MSTransportableDevice_FCD.cpp:75
MSTransportableDevice.h
MSTransportableDevice_FCD::saveState
void saveState(OutputDevice &) const
Saves the state of the device.
Definition: MSTransportableDevice_FCD.h:75
MSTransportableDevice_FCD::buildDevices
static void buildDevices(MSTransportable &t, std::vector< MSTransportableDevice * > &into)
Build devices for the given vehicle, if needed.
Definition: MSTransportableDevice_FCD.cpp:53
OptionsCont
A storage for options typed value containers)
Definition: OptionsCont.h:89
MSTransportableDevice
Abstract in-person device.
Definition: MSTransportableDevice.h:52
MSTransportableDevice_FCD::insertOptions
static void insertOptions(OptionsCont &oc)
Inserts MSTransportableDevice_FCD-options.
Definition: MSTransportableDevice_FCD.cpp:44
MSTransportableDevice_FCD
A device which collects info on the vehicle trip (mainly on departure and arrival)
Definition: MSTransportableDevice_FCD.h:47
MSTransportableDevice_FCD::operator=
MSTransportableDevice_FCD & operator=(const MSTransportableDevice_FCD &)
Invalidated assignment operator.
MSTransportableDevice_FCD::MSTransportableDevice_FCD
MSTransportableDevice_FCD(MSTransportable &holder, const std::string &id)
Constructor.
Definition: MSTransportableDevice_FCD.cpp:65
MSTransportableDevice_FCD::deviceName
const std::string deviceName() const
return the name for this type of device
Definition: MSTransportableDevice_FCD.h:79
MSTransportableDevice_FCD::notifyEnter
bool notifyEnter(SUMOTrafficObject &, MSMoveReminder::Notification, const MSLane *)
Definition: MSTransportableDevice_FCD.h:71
MSTransportableDevice_FCD::~MSTransportableDevice_FCD
~MSTransportableDevice_FCD()
Destructor.
Definition: MSTransportableDevice_FCD.cpp:70
config.h
MSMoveReminder::Notification
Notification
Definition of a vehicle state.
Definition: MSMoveReminder.h:91