83 const SUMOReal arrivalPos,
const std::vector<std::string>& lines);
virtual ~MSContainer()
destructor
SUMOReal getEdgePos(SUMOTime now) const
Returns the offset from the start of the current edge measured in its natural direction.
const std::set< std::string > myLines
the lines to choose from
SUMOReal myDepartPos
the depart position
virtual void beginEventOutput(const MSTransportable &c, SUMOTime t, OutputDevice &os) const
Called for writing the events output.
MSContainerStage_Tranship & operator=(const MSContainerStage_Tranship &)
Invalidated assignment operator.
std::string getStageDescription() const
Returns the current stage description as a string.
SUMOReal getAngle(SUMOTime now) const
the angle of the edge minus 90deg
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
MSContainerStage_Waiting & operator=(const MSContainerStage_Waiting &)
Invalidated assignment operator.
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.
MSContainerStage_Tranship(const std::vector< const MSEdge * > &route, MSStoppingPlace *toStop, SUMOReal speed, SUMOReal departPos, SUMOReal arrivalPos)
constructor
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.
virtual void tripInfoOutput(OutputDevice &os) const
Called on writing tripinfo output.
~MSContainerStage_Tranship()
destructor
SUMOTime getWaitingTime(SUMOTime now) const
the time this transportable spent waiting
const MSEdge * getEdge() const
Returns the current edge.
MSContainerStage_Driving(const MSEdge &destination, MSStoppingPlace *toStop, const SUMOReal arrivalPos, const std::vector< std::string > &lines)
constructor
SUMOReal getSpeed() const
Returns the speed of the container which is always zero in that stage.
MSContainerStage_Waiting(const MSEdge &destination, SUMOTime duration, SUMOTime until, SUMOReal pos, const std::string &actType)
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
SUMOReal getEdgePos(SUMOTime now) const
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.
const MSEdge * getEdge() const
Returns the current edge.
std::vector< const MSEdge * > myRoute
The route of the container.
virtual void beginEventOutput(const MSTransportable &container, SUMOTime t, OutputDevice &os) const
Called for writing the events output.
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.
~MSContainerStage_Waiting()
destructor
SUMOTime myWaitingSince
The time since which this container is waiting for a ride.
SUMOTime getUntil() const
Returns time until the container waits.
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
virtual void routeOutput(OutputDevice &os) const
Called on writing vehroute output.
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.
Position getPosition(SUMOTime now) const
Returns the position of the container.
SUMOReal myArrivalPos
the position at which we want to arrive
SUMOReal getSpeed() const
Returns the speed of the container.
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
virtual void routeOutput(OutputDevice &os) const
Called on writing vehroute output.
virtual void endEventOutput(const MSTransportable &c, SUMOTime t, OutputDevice &os) const
Called for writing the events output (end of an action)
const MSEdge * getFromEdge() const
Returns first edge of the containers route.
CState * myContainerState
state that is to be manipulated by MSCModel
bool moveToNextEdge(MSTransportable *container, SUMOTime currentTime, MSEdge *nextInternal=0)
move forward and return whether the container arrived
virtual void proceed(MSNet *net, MSTransportable *container, SUMOTime now, Stage *previous)
proceeds to the next step
const MSEdge * getNextRouteEdge() const
Position getPosition(SUMOTime now) const
returns the position of the transportable
const MSEdge * getFromEdge() const
Returns the current edge.
std::string getStageDescription() const
returns the stage description as a string
Structure representing possible vehicle parameter.
bool proceed(MSNet *net, SUMOTime time)
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
virtual void tripInfoOutput(OutputDevice &os) const
Called on writing tripinfo output.
MSStoppingPlace * myCurrentContainerStop
the container stop at which the container is waiting
MSStoppingPlace * getDepartContainerStop() const
const MSEdge * getFromEdge() const
Static storage of an output device and its base (abstract) implementation.
SUMOTime getWaitingTime(SUMOTime now) const
Returns the time the container spent waiting.
const MSEdge * myWaitingEdge
MSStoppingPlace * getDepartContainerStop() const
returns the container stop from which the container departs
MSContainer(const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSTransportablePlan *plan)
constructor
The container following model for tranship.
const MSEdge * getToEdge() const
Returns last edge of the containers route.
SUMOReal getAngle(SUMOTime now) const
Returns the angle of the container.
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)
virtual void endEventOutput(const MSTransportable &container, SUMOTime t, OutputDevice &os) const
Called for writing the events output (end of an action)
MSContainer & operator=(const MSContainer &)
Invalidated assignment operator.
void routeOutput(OutputDevice &os) const
Called on writing vehroute output.
SUMOReal getEdgePos(SUMOTime now) const
MSEdge * myCurrentInternalEdge
The current internal edge this container is on or 0.