21 #ifndef MSContainerControl_h 22 #define MSContainerControl_h std::map< SUMOTime, ContainerVector > myWaiting4Departure
Containers waiting for departure.
Representation of a vehicle in the micro simulation.
virtual MSContainer * buildContainer(const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSTransportable::MSTransportablePlan *plan) const
Builds a new container.
std::map< std::string, MSTransportable * > myTranship
all containers being transhiped
void abortWaiting()
aborts the plan for any container that is still waiting for a ride
void addWaiting(const MSEdge *edge, MSTransportable *container)
adds a container to the list of containers waiting for a vehicle on the specified edge ...
void setDeparture(SUMOTime time, MSTransportable *container)
sets the arrival time for a waiting container
Definition of vehicle stop (position and duration)
The simulated network and simulation perfomer.
The car-following model and parameter.
A road/street connecting two junctions.
std::vector< MSTransportable::Stage * > MSTransportablePlan
the structure holding the plan of a transportable
std::vector< MSTransportable * > ContainerVector
void setWaitEnd(SUMOTime time, MSTransportable *container)
sets the arrival time for a waiting container
bool loadAnyWaiting(MSEdge *edge, MSVehicle *vehicle, MSVehicle::Stop *stop)
load any applicable containers Loads any container that is waiting on that edge for the given vehicle...
void setTranship(MSTransportable *c)
adds a container to myTranship
MSContainerControl()
constructor
Structure representing possible vehicle parameter.
bool add(const std::string &id, MSTransportable *container)
adds a single container, returns false if an id clash occured
void unsetTranship(MSTransportable *c)
removes a container from myTranship
std::map< std::string, MSTransportable * > myContainers
all containers by id
std::map< SUMOTime, ContainerVector > myWaitingUntil
the lists of walking / stopping containers
std::map< const MSEdge *, ContainerVector > myWaiting4Vehicle
the lists of waiting containers
bool hasNonWaiting() const
checks whether any container is still engaged in walking / stopping
virtual void erase(MSTransportable *container)
removes a single container
bool hasContainers() const
checks whether any container waits to finish her plan
void checkWaitingContainers(MSNet *net, const SUMOTime time)
checks whether any containers waiting time is over
virtual ~MSContainerControl()
destructor