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.
void setWaitEnd(SUMOTime time, MSContainer *container)
sets the arrival time for a waiting container
void abortWaiting()
aborts the plan for any container that is still waiting for a ride
void addWaiting(const MSEdge *edge, MSContainer *container)
adds a container to the list of containers waiting for a vehicle on the specified edge ...
Definition of vehicle stop (position and duration)
void setTranship(MSContainer *c)
adds a container to myTranship
The simulated network and simulation perfomer.
The car-following model and parameter.
virtual void erase(MSContainer *container)
removes a single container
std::vector< MSContainer * > ContainerVector
A road/street connecting two junctions.
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...
std::vector< MSContainerStage * > MSContainerPlan
the structure holding the plan of a container
MSContainerControl()
constructor
virtual MSContainer * buildContainer(const SUMOVehicleParameter *pars, const MSVehicleType *vtype, MSContainer::MSContainerPlan *plan) const
Builds a new container.
Structure representing possible vehicle parameter.
bool add(const std::string &id, MSContainer *container)
adds a single container, returns false if an id clash occured
std::map< std::string, MSContainer * > myTranship
all containers being transhiped
void setDeparture(SUMOTime time, MSContainer *container)
sets the arrival time for a waiting container
void unsetTranship(MSContainer *c)
removes a container from myTranship
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
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
std::map< std::string, MSContainer * > myContainers
all containers by id
virtual ~MSContainerControl()
destructor