125 virtual bool isWaitingFor(
const std::string& line)
const;
209 const std::vector<std::string>& lines);
583 const std::string&
getID()
const;
597 return (*myStep)->getDestination();
602 return (*(myStep + 1))->getDestination();
607 return (*myStep)->getEdge();
612 return (*myStep)->getFromEdge();
632 return (*myStep)->getStageType();
637 return (*myStep)->getStageDescription();
669 return (*myStep)->isWaitingFor(line);
674 return (*myStep)->isWaiting4Vehicle();
MSContainerStage_Tranship(const std::vector< const MSEdge * > &route, MSContainerStop *toCS, SUMOReal speed, SUMOReal departPos, SUMOReal arrivalPos)
constructor
const MSEdge & getDestination() const
returns the destination edge
virtual ~MSContainer()
destructor
MSContainerStop * getDepartContainerStop() const
returns the container stop from which the container departs
SUMOReal getEdgePos(SUMOTime now) const
Returns the offset from the start of the current edge measured in its natural direction.
MSContainerStop * myCurrentContainerStop
the container stop at which the container is waiting
const std::set< std::string > myLines
the lines to choose from
SUMOReal myDepartPos
the depart position
std::string getCurrentStageDescription() const
Returns the current stage description as a string.
A lane area vehicles can halt at and load and unload containers.
virtual void tripInfoOutput(OutputDevice &os) const =0
Called on writing tripinfo output.
const MSEdge * getEdge() const
Returns the current edge.
MSContainerStage_Tranship & operator=(const MSContainerStage_Tranship &)
Invalidated assignment operator.
std::string getStageDescription() const
Returns the current stage description as a string.
virtual bool isWaiting4Vehicle() const
Whether the container waits for a vehicle.
SUMOReal getAngle(SUMOTime now) const
the angle of the edge minus 90deg
MSContainerPlan * myPlan
the plan of the container
SUMOTime myWaitingDuration
the time the container is waiting
std::vector< const MSEdge * >::iterator myRouteStep
current step
SUMOReal getEdgeAngle(const MSEdge *e, SUMOReal at) const
get angle of the edge at a certain position
MSContainerStage(const MSEdge &destination, StageType type)
constructor
MSContainerStage_Waiting & operator=(const MSContainerStage_Waiting &)
Invalidated assignment operator.
bool moveToNextEdge(MSContainer *container, SUMOTime currentTime, MSEdge *nextInternal=0)
move forward and return whether the container arrived
bool isWaitingFor(const std::string &line) const
Whether the container waits for a vehicle of the line specified.
virtual void beginEventOutput(const MSContainer &container, SUMOTime t, OutputDevice &os) const =0
Called for writing the events output (begin of an action)
SUMOTime myDeparted
the time at which this stage started
SUMOTime getWaitingTime(SUMOTime now) const
time spent waiting for a ride
virtual SUMOReal getEdgePos(SUMOTime now) const =0
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
bool isWaitingFor(const std::string &line) const
Whether the container waits for a vehicle of the line specified.
virtual const MSEdge * getFromEdge() const =0
SUMOTime getWaitingTime(SUMOTime now) const
the time this container spent waiting
const MSEdge * getEdge() const
Returns the current edge.
SUMOReal getSpeed() const
Returns the speed of the container which is always zero in that stage.
virtual bool isWaitingFor(const std::string &line) const
Whether the container waits for a vehicle of the line specified.
MSContainerStage_Waiting(const MSEdge &destination, SUMOTime duration, SUMOTime until, SUMOReal pos, const std::string &actType)
constructor
MSContainerStop * myDepartContainerStop
The container stop from which the container departs.
CState * getContainerState() const
std::string getStageDescription() const
Returns the current stage description as a string.
virtual void proceed(MSNet *net, MSContainer *container, SUMOTime now, MSEdge *previousEdge, const SUMOReal at)
proceeds to the next step
SUMOReal getMaxSpeed() const
accessors to be used by MSCModel_NonInteracting
void setArrived(SUMOTime now)
logs end of the step
const SUMOVehicleParameter & getParameter() const
SUMOReal getEdgePos(SUMOTime now) const
SUMOTime myWaitingUntil
the time until the container is waiting
virtual void endEventOutput(const MSContainer &c, SUMOTime t, OutputDevice &os) const
Called for writing the events output (end of an action)
SUMOReal getArrivalPos() const
MSContainerStop * myDepartContainerStop
The container stop from which the container departs.
MSContainerStop * getDepartContainerStop() const
MSContainerStage * getCurrentStage() const
Return the current stage.
MSContainerPlan::iterator myStep
the iterator over the route
const MSVehicleType * myVType
This container's type. (mainly used for drawing related information Note sure if it is really necessa...
The simulated network and simulation perfomer.
~MSContainerStage_Driving()
destructor
The car-following model and parameter.
const MSVehicleType & getVehicleType() const
virtual void routeOutput(OutputDevice &os) const =0
Called on writing vehroute output.
const MSEdge * getEdge() const
Returns the current edge.
StageType myType
The type of this stage.
std::vector< const MSEdge * > myRoute
The route of the container.
MSContainerStop * getDepartContainerStop() const
returns the container stop from which the container departs
StageType getStageType() const
virtual const MSEdge * getEdge() const =0
Returns the current edge.
virtual void beginEventOutput(const MSContainer &container, SUMOTime t, OutputDevice &os) const
Called for writing the events output.
A road/street connecting two junctions.
virtual void beginEventOutput(const MSContainer &container, SUMOTime t, OutputDevice &os) const
Called for writing the events output.
SUMOReal myArrivalPos
the arrival position
virtual SUMOReal getAngle() const
return the current angle of the container
const MSEdge * getEdge() const
Returns the current edge.
const MSEdge * getFromEdge() const
Returns the departure edge.
const MSEdge & getNextDestination() const
Returns the destination after the current destination.
~MSContainerStage_Waiting()
destructor
virtual ~MSContainerStage()
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.
Position getLanePosition(const MSLane *lane, SUMOReal at, SUMOReal offset) const
get position on lane at length at with orthogonal offset
virtual void proceed(MSNet *net, MSContainer *container, SUMOTime now, MSEdge *previousEdge, const SUMOReal at)
proceeds to the next step
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.
bool myWriteEvents
Whether events shall be written.
virtual void beginEventOutput(const MSContainer &c, SUMOTime t, OutputDevice &os) const
Called for writing the events output.
const MSEdge & myDestination
the next edge to reach by getting transported
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 container
SUMOTime getDesiredDepart() const
Returns the desired departure time.
virtual SUMOReal getAngle(SUMOTime now) const =0
returns the angle of the container
SUMOTime myArrived
the time at which this stage ended
virtual void routeOutput(OutputDevice &os) const
Called on writing vehroute output.
const SUMOVehicleParameter * myParameter
the plan of the container
const MSEdge * lastDestination
the last destination of the route of the container
const MSEdge * getFromEdge() const
Returns first edge of the containers route.
CState * myContainerState
state that is to be manipulated by MSCModel
virtual Position getPosition() const
Return the Network coordinate of the container.
virtual SUMOTime getWaitingTime(SUMOTime now) const =0
the time this container spent waiting
std::vector< MSContainerStage * > MSContainerPlan
the structure holding the plan of a container
const MSEdge * getNextRouteEdge() const
Position getPosition(SUMOTime now) const
returns the position of the container
virtual MSContainerStop * getDepartContainerStop() const =0
const MSEdge * getFromEdge() const
Returns the current edge.
virtual Position getPosition(SUMOTime now) const =0
returns the position of the container
std::string getStageDescription() const
returns the stage description as a string
void setDeparted(SUMOTime now)
logs depart time of the current stage
bool isWaiting4Vehicle() const
Whether the container waits for a vehicle.
MSContainerStop * myDestinationContainerStop
The destination container stop.
Structure representing possible vehicle parameter.
virtual void endEventOutput(const MSContainer &container, SUMOTime t, OutputDevice &os) const
Called for writing the events output (end of an action)
Position getEdgePosition(const MSEdge *e, SUMOReal at, SUMOReal offset) const
get position on edge e at length at with orthogonal offset
virtual SUMOReal getEdgePos() const
Return the position on the edge.
virtual SUMOReal getWaitingSeconds() const
the time this container spent waiting in seconds
StageType getCurrentStageType() const
the current stage type of the container
MSContainerStage_Driving(const MSEdge &destination, MSContainerStop *toCS, const std::vector< std::string > &lines)
constructor
virtual void endEventOutput(const MSContainer &container, SUMOTime t, OutputDevice &os) const =0
Called for writing the events output (end of an action)
bool proceed(MSNet *net, SUMOTime time)
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.
const std::string & getID() const
returns the container id
const MSEdge * getFromEdge() const
MSContainerStage & operator=(const MSContainerStage &)
Invalidated assignment operator.
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
MSContainerStop * myDestinationContainerStop
the destination container stop
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.
void tripInfoOutput(OutputDevice &os) const
Called on writing tripinfo output.
virtual SUMOReal getSpeed() const
the current speed of the container
SUMOTime myWaitingStart
the time the container started waiting
bool isWaiting4Vehicle() const
Whether the container waits for a vehicle.
const MSEdge & getDestination() const
Returns the current destination.
virtual SUMOReal getSpeed() const =0
the speed of the container
MSContainerStage_Driving & operator=(const MSContainerStage_Driving &)
Invalidated assignment operator.
virtual void proceed(MSNet *net, MSContainer *container, SUMOTime now, MSEdge *previousEdge, const SUMOReal at)
proceeds to the next step
Representation of a lane in the micro simulation.
SUMOVehicle * myVehicle
The taken vehicle.
virtual void endEventOutput(const MSContainer &container, SUMOTime t, OutputDevice &os) const
Called for writing the events output (end of an action)
virtual std::string getStageDescription() const =0
return string representation of the current stage
MSContainer(const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSContainerPlan *plan)
constructor
MSContainer & operator=(const MSContainer &)
Invalidated assignment operator.
void routeOutput(OutputDevice &os) const
Called on writing vehroute output.
virtual MSContainerStop * getDepartContainerStop() const
void setDeparted(SUMOTime now)
logs end of the step
SUMOReal getEdgePos(SUMOTime now) const
virtual void proceed(MSNet *net, MSContainer *container, SUMOTime now, MSEdge *previousEdge, const SUMOReal at)=0
proceeds to the next step
MSEdge * myCurrentInternalEdge
The current internal edge this container is on or 0.