66 assert(veh !=
nullptr);
69 +
"', time " +
time2string(time) +
" without ending the previous stop.");
78 myStopped.find(veh)->second.loadedPersons += n;
84 myStopped.find(veh)->second.unloadedPersons += n;
89 myStopped.find(veh)->second.loadedContainers += n;
94 myStopped.find(veh)->second.unloadedContainers += n;
99 assert(veh !=
nullptr);
107 double arrivalDelay = -1;
108 if (stop.
until >= 0) {
154 if (stop.
line !=
"") {
157 if (stop.
split !=
"") {
#define WRITE_WARNING(msg)
std::string time2string(SUMOTime t)
convert SUMOTime to string
@ SUMO_ATTR_CONTAINER_STOP
@ SUMO_ATTR_CHARGING_STATION
@ SUMO_ATTR_OVERHEAD_WIRE_SEGMENT
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
Realises dumping the complete network state.
virtual ~MSStopOut()
Destructor.
void loadedContainers(const SUMOVehicle *veh, int n)
static void init()
Static intialization.
MSStopOut(OutputDevice &dev)
constructor.
std::map< const SUMOVehicle *, StopInfo > myStopped
void stopEnded(const SUMOVehicle *veh, const SUMOVehicleParameter::Stop &stop, const std::string &laneOrEdgeID)
void unloadedPersons(const SUMOVehicle *veh, int n)
void stopStarted(const SUMOVehicle *veh, int numPersons, int numContainers, SUMOTime time)
void unloadedContainers(const SUMOVehicle *veh, int n)
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 SumoXMLAttr attr, const T &val)
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 hasDeparted() const =0
Returns whether this vehicle has departed.
Definition of vehicle stop (position and duration)
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 actualArrival
the time at which this stop was reached
SUMOTime until
The time at which the vehicle may continue its journey.
bool parking
whether the vehicle is removed from the net while stopping
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.