Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSTransportableDevice_FCDReplay.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2013-2025 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// A device which replays recorded floating car data
19/****************************************************************************/
20#pragma once
21#include <config.h>
22
25#include "MSDevice_FCDReplay.h"
26
27
28// ===========================================================================
29// class definitions
30// ===========================================================================
40public:
44 static void insertOptions(OptionsCont& oc);
45
46
57 static void buildDevices(MSTransportable& t, std::vector<MSTransportableDevice*>& into);
58
59public:
62
64 const std::string deviceName() const {
65 return "fcd-replay";
66 }
67
72
73 bool move(SUMOTime currentTime);
74
75private:
81 MSTransportableDevice_FCDReplay(MSTransportable& holder, const std::string& id);
82
83 class MovePedestrians : public Command {
84 public:
86 SUMOTime execute(SUMOTime currentTime);
87 private:
90 };
91
92private:
94
96
98 static bool myAmActive;
99
100private:
103
106
107
108};
long long int SUMOTime
Definition GUI.h:36
Command()
Constructor.
Definition Command.h:53
std::vector< TrajectoryEntry > Trajectory
MovePedestrians & operator=(const MovePedestrians &)=delete
Invalidated assignment operator.
SUMOTime execute(SUMOTime currentTime)
Executes the command.
MSTransportableDevice_FCDReplay(const MSTransportableDevice_FCDReplay &)
Invalidated copy constructor.
const std::string deviceName() const
return the name for this type of device
MSTransportableDevice_FCDReplay & operator=(const MSTransportableDevice_FCDReplay &)
Invalidated assignment operator.
MSTransportableDevice_FCDReplay(MSTransportable &holder, const std::string &id)
Constructor.
static bool myAmActive
whether an event for pedestrian processing was added
static void buildDevices(MSTransportable &t, std::vector< MSTransportableDevice * > &into)
Build devices for the given vehicle, if needed.
void setTrajectory(MSDevice_FCDReplay::Trajectory *const t)
static void insertOptions(OptionsCont &oc)
Inserts MSTransportableDevice_FCDReplay-options.
const MSDevice_FCDReplay::Trajectory * myTrajectory
MSTransportableDevice(MSTransportable &holder, const std::string &id)
Constructor.
A storage for options typed value containers).
Definition OptionsCont.h:89