107 if (stop.
until >= 0) {
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
virtual bool hasDeparted() const =0
Returns whether this vehicle has departed.
static void init()
Static intialization.
virtual const MSVehicleType & getVehicleType() const =0
Returns the vehicle's type.
virtual const std::string & getID() const =0
Get the vehicle's ID.
virtual const MSEdge * getEdge() const =0
Returns the edge the vehicle is currently at.
std::string time2string(SUMOTime t)
std::string busstop
(Optional) bus stop if one is assigned to the stop
static MSNet * getInstance()
Returns the pointer to the unique instance of MSNet (singleton).
const std::string & getID() const
Returns the id.
std::string parkingarea
(Optional) parking area if one is assigned to the stop
#define WRITE_WARNING(msg)
void loadedContainers(const SUMOVehicle *veh, int n)
static OptionsCont & getOptions()
Retrieves the options.
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)
Representation of a vehicle.
SUMOTime until
The time at which the vehicle may continue its journey.
static MSStopOut * myInstance
Definition of vehicle stop (position and duration)
void unloadedContainers(const SUMOVehicle *veh, int n)
virtual ~MSStopOut()
Destructor.
static OutputDevice & getDeviceByOption(const std::string &name)
Returns the device described by the option.
const std::string & getID() const
Returns the name of the vehicle type.
virtual double getPositionOnLane() const =0
Get the vehicle's position along the lane.
Static storage of an output device and its base (abstract) implementation.
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
std::string chargingStation
(Optional) charging station if one is assigned to the stop
std::string containerstop
(Optional) container stop if one is assigned to the stop
void loadedPersons(const SUMOVehicle *veh, int n)
Realises dumping the complete network state.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
bool parking
whether the vehicle is removed from the net while stopping
MSStopOut(OutputDevice &dev)
constructor.