83 const SUMOReal arrivalPos,
const std::vector<std::string>& lines);
224 return "waiting (" + myActType +
")";
314 const MSEdge* getToEdge()
const;
381 return myRouteStep == myRoute.end() - 1 ? 0 : *(myRouteStep + 1);
385 return myContainerState;
virtual ~MSContainer()
destructor
const std::set< std::string > myLines
the lines to choose from
SUMOReal myDepartPos
the depart position
std::string getStageDescription() const
Returns the current stage description as a string.
MSStoppingPlace * myDepartContainerStop
The container stop from which the container departs.
SUMOTime myWaitingDuration
the time the container is waiting
A lane area vehicles can halt at.
std::vector< const MSEdge * >::iterator myRouteStep
current step
virtual void proceed(MSNet *net, MSTransportable *container, SUMOTime now, Stage *previous)
proceeds to the next step
bool isWaitingFor(const std::string &line) const
Whether the container waits for a vehicle of the line specified.
MSStoppingPlace * myDepartContainerStop
The container stop from which the container departs.
SUMOTime getWaitingTime(SUMOTime now) const
time spent waiting for a ride
virtual void tripInfoOutput(OutputDevice &os) const
Called on writing tripinfo output.
MSContainerStage_Driving(const MSEdge &destination, MSStoppingPlace *toStop, const SUMOReal arrivalPos, const std::vector< std::string > &lines)
constructor
CState * getContainerState() const
std::string getStageDescription() const
Returns the current stage description as a string.
SUMOReal getMaxSpeed() const
accessors to be used by MSCModel_NonInteracting
SUMOTime myWaitingUntil
the time until the container is waiting
virtual void beginEventOutput(const MSTransportable &container, SUMOTime t, OutputDevice &os) const
Called for writing the events output.
SUMOReal getArrivalPos() const
The simulated network and simulation perfomer.
~MSContainerStage_Driving()
destructor
The car-following model and parameter.
std::vector< const MSEdge * > myRoute
The route of the container.
A road/street connecting two junctions.
std::vector< MSTransportable::Stage * > MSTransportablePlan
the structure holding the plan of a transportable
const MSEdge * getEdge() const
Returns the current edge.
SUMOTime myWaitingSince
The time since which this container is waiting for a ride.
virtual void routeOutput(OutputDevice &os) const
Called on writing vehroute output.
Representation of a vehicle.
SUMOReal mySpeed
the speed of the container
SUMOReal getDepartPos() const
A point in 2D or 3D with translation and scaling methods.
SUMOReal getSpeed() const
the speed of the container
std::string myActType
The type of activity.
SUMOReal myArrivalPos
the position at which we want to arrive
static const SUMOReal ROADSIDE_OFFSET
the offset for computing container positions when standing at an edge
Position getPosition(SUMOTime now) const
returns the position of the transportable
CState * myContainerState
state that is to be manipulated by MSCModel
const MSEdge * getNextRouteEdge() const
std::string getStageDescription() const
returns the stage description as a string
Structure representing possible vehicle parameter.
SUMOVehicle * getVehicle() const
The vehicle the person is riding or 0.
SUMOReal getAngle(SUMOTime now) const
the angle of the vehicle or the angle of the edge + 90deg
void setVehicle(SUMOVehicle *v)
assign a vehicle to the container
MSStoppingPlace * myCurrentContainerStop
the container stop at which the container is waiting
const MSEdge * getFromEdge() const
Static storage of an output device and its base (abstract) implementation.
const MSEdge * myWaitingEdge
MSContainer(const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSTransportablePlan *plan)
constructor
The container following model for tranship.
SUMOTime myWaitingStart
the time the container started waiting
bool isWaiting4Vehicle() const
Whether the container waits for a vehicle.
MSStoppingPlace * getDepartContainerStop() const
returns the container stop from which the container departs
MSContainerStage_Driving & operator=(const MSContainerStage_Driving &)
Invalidated assignment operator.
Representation of a lane in the micro simulation.
SUMOVehicle * myVehicle
The taken vehicle.
virtual void endEventOutput(const MSTransportable &container, SUMOTime t, OutputDevice &os) const
Called for writing the events output (end of an action)
SUMOReal getEdgePos(SUMOTime now) const
MSEdge * myCurrentInternalEdge
The current internal edge this container is on or 0.