68 assert(veh !=
nullptr);
77 assert(veh !=
nullptr);
84 assert(veh !=
nullptr);
101 WRITE_WARNINGF(
TL(
"Vehicle '%' loads persons on edge '%', time=% without starting the stop."),
104 myStopped.find(veh)->second.loadedPersons += n;
113 WRITE_WARNINGF(
TL(
"Vehicle '%' unloads persons on edge '%', time=% without starting the stop."),
116 myStopped.find(veh)->second.unloadedPersons += n;
126 WRITE_WARNINGF(
TL(
"Vehicle '%' loads container on edge '%', time=% without starting the stop."),
129 myStopped.find(veh)->second.loadedContainers += n;
138 WRITE_WARNINGF(
TL(
"Vehicle '%' unloads container on edge '%', time=% without starting the stop."),
141 myStopped.find(veh)->second.unloadedContainers += n;
148 assert(veh !=
nullptr);
150 WRITE_WARNINGF(
TL(
"Vehicle '%' ends stop on edge '%', time=% without entering the stop."),
157 double arrivalDelay = -1;
158 if (pars.
until >= 0 && !simEnd) {
176 if (pars.
until >= 0) {
200 if (pars.
line !=
"") {
203 if (pars.
split !=
"") {
#define WRITE_WARNINGF(...)
std::string time2string(SUMOTime t, bool humanReadable)
convert SUMOTime to string (independently of global format setting)
@ SUMO_ATTR_CONTAINER_STOP
@ SUMO_ATTR_CHARGING_STATION
@ SUMO_ATTR_OVERHEAD_WIRE_SEGMENT
@ SUMO_ATTR_STATE
The state of a link.
static bool gUseStopEnded
whether the simulation should replay previous stop times
const MSLane * lane
The lane to stop at (microsim only)
bool skipOnDemand
whether the decision to skip this stop has been made
bool waypointWithStop
whehther the vehicle stopped despite having a waypoing
const SUMOVehicleParameter::Stop pars
The stop parameter.
Realises dumping the complete network state.
virtual ~MSStopOut()
Destructor.
void stopBlocked(const SUMOVehicle *veh, SUMOTime time)
void loadedContainers(const SUMOVehicle *veh, int n)
static void init()
Static intialization.
MSStopOut(OutputDevice &dev)
constructor.
std::map< const SUMOVehicle *, StopInfo, ComparatorNumericalIdLess > myStopped
void stopNotStarted(const SUMOVehicle *veh)
void unloadedPersons(const SUMOVehicle *veh, int n)
void stopStarted(const SUMOVehicle *veh, int numPersons, int numContainers, SUMOTime time)
void generateOutputForUnfinished()
generate output for vehicles which are still stopped at simulation end
void unloadedContainers(const SUMOVehicle *veh, int n)
void stopEnded(const SUMOVehicle *veh, const MSStop &stop, bool simEnd=false)
static MSStopOut * myInstance
void loadedPersons(const SUMOVehicle *veh, int n)
const std::string & getID() const
Returns the name of the vehicle type.
const std::string & getID() const
Returns the id.
static OptionsCont & getOptions()
Retrieves the options.
Static storage of an output device and its base (abstract) implementation.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
OutputDevice & writeAttr(const ATTR_TYPE &attr, const T &val, const bool isNull=false)
writes a named attribute
static OutputDevice & getDeviceByOption(const std::string &name)
Returns the device described by the option.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
virtual const MSVehicleType & getVehicleType() const =0
Returns the object's "vehicle" type.
virtual const MSEdge * getEdge() const =0
Returns the edge the object is currently at.
virtual double getPositionOnLane() const =0
Get the object's position along the lane.
Representation of a vehicle.
virtual bool isStopped() const =0
Returns whether the vehicle is at a stop and waiting for a person or container to continue.
virtual bool hasDeparted() const =0
Returns whether this vehicle has departed.
virtual const MSStop & getNextStop() const =0
Definition of vehicle stop (position and duration)
SUMOTime started
the time at which this stop was reached
ParkingType parking
whether the vehicle is removed from the net while stopping
double speed
the speed at which this stop counts as reached (waypoint mode)
std::string parkingarea
(Optional) parking area if one is assigned to the stop
std::string split
the id of the vehicle (train portion) that splits of upon reaching this stop
std::string line
the new line id of the trip within a cyclical public transport route
std::string chargingStation
(Optional) charging station if one is assigned to the stop
std::string overheadWireSegment
(Optional) overhead line segment if one is assigned to the stop
SUMOTime until
The time at which the vehicle may continue its journey.
SUMOTime ended
the time at which this stop was ended
std::string busstop
(Optional) bus stop if one is assigned to the stop
std::string tripId
id of the trip within a cyclical public transport route
std::string containerstop
(Optional) container stop if one is assigned to the stop
SUMOTime arrival
The (expected) time at which the vehicle reaches the stop.