Line data Source code
1 : #pragma once 2 : 3 : #include "Dynamic/Env/Event/Event.hpp" 4 : #include "Dynamic/Vehicle.hpp" 5 : 6 : namespace Dynamic::Env { 7 : 8 : /** 9 : * @brief Spawn vehicle. 10 : * 11 : * This event instructs the environment to spawn a vehicle at time 12 : * `t`. The vehicle is spawned only if the edge has available space. If not, 13 : * then it is enqueued to a special queue. 14 : */ 15 0 : class EventSpawnVehicle: public Event { 16 : Dynamic::Vehicle vehicle; 17 : 18 : public: 19 : EventSpawnVehicle(Time t, const Dynamic::Vehicle &vehicle); 20 : 21 : virtual void process(Env &env); 22 : }; 23 : 24 : } // namespace Dynamic::Env