146 std::map<std::string, SUMOVehicleParameter::Stop*>::const_iterator it =
myBusStops.find(
id);
308 void openOutput(
const std::string& filename,
const std::string altFilename,
const std::string typeFilename);
321 const std::map<std::string, ROEdge*>&
getEdgeMap()
const;
358 std::map<std::string, SUMOVehicleParameter::Stop*>
myBusStops;
381 typedef std::multimap<const SUMOTime, const std::string>
PersonMap;
OutputDevice * myRouteAlternativesOutput
The file to write the computed route alternatives into.
OutputDevice * getRouteOutput(const bool alternative=false)
NamedObjectCont< SUMOVehicleParameter * > myFlows
Known flows.
ROVehicleCont & getVehicles()
return vehicles for use by RouteAggregator
int myNumInternalEdges
The number of internal edges in the dictionary.
bool checkVType(const std::string &id)
Checks whether the vehicle type (distribution) may be added.
Structure representing possible vehicle parameter.
void addNode(RONode *node)
unsigned int getEdgeNo() const
Returns the number of edges the network contains.
ROEdge * getEdge(const std::string &name) const
Retrieves an edge from the network.
NamedObjectCont< ROEdge * > myEdges
Known edges.
unsigned int myDiscardedRouteNo
The number of discarded routes.
std::map< std::string, std::vector< SUMOTime > > myDepartures
Departure times for randomized flows.
OutputDevice * myTypesOutput
The file to write the vehicle types into.
virtual bool addVehicleType(SUMOVTypeParameter *type)
Adds a read vehicle type definition to the network.
virtual bool addVehicle(const std::string &id, ROVehicle *veh)
const std::map< std::string, ROEdge * > & getEdgeMap() const
void openOutput(const std::string &filename, const std::string altFilename, const std::string typeFilename)
Opens the output for computed routes.
T get(const std::string &id) const
Retrieves an item.
void checkFlows(SUMOTime time)
const SUMOVehicleParameter::Stop * getBusStop(const std::string &id) const
Retrieves a bus stop from the network.
bool addVTypeDistribution(const std::string &id, RandomDistributor< SUMOVTypeParameter * > *vehTypeDistribution)
Adds a vehicle type distribution.
A vehicle as used by router.
void closeOutput()
closes the file output for computed routes
bool addRouteDef(RORouteDef *def)
bool myHaveRestrictions
Whether the network contains edges which not all vehicles may pass.
OutputDevice * myRoutesOutput
The file to write the computed routes into.
friend class RouteAggregator
NamedObjectCont< SUMOVTypeParameter * > myVehicleTypes
Known vehicle types.
void addPerson(const SUMOTime depart, const std::string desc)
virtual bool furtherStored()
Returns the information whether further vehicles are stored.
unsigned int getEdgeNoWithoutInternal() const
Returns the number of non-internal edges the network contains.
ROVehicleCont myVehicles
Known vehicles.
unsigned int myReadRouteNo
The number of read routes.
bool myDefaultVTypeMayBeDeleted
Whether no vehicle type was loaded.
NamedObjectCont< RORouteDef * > myRoutes
Known routes.
A basic edge for routing applications.
A container for vehicles sorted by their departure time.
The router's network representation.
Structure representing possible vehicle parameter.
void setRestrictionFound()
Definition of vehicle stop (position and duration)
std::map< std::string, RandomDistributor< SUMOVTypeParameter * > * > VTypeDistDictType
Vehicle type distribution dictionary type.
A storage for options typed value containers)
bool hasRestrictions() const
VTypeDistDictType myVTypeDistDict
A distribution of vehicle types (probability->vehicle type)
Base class for a vehicle's route definition.
void addBusStop(const std::string &id, SUMOVehicleParameter::Stop *stop)
RONode * getNode(const std::string &id) const
Retrieves an node from the network.
virtual bool addEdge(ROEdge *edge)
Static storage of an output device and its base (abstract) implementation.
std::set< std::string > myVehIDs
Known vehicle ids.
virtual ~RONet()
Destructor.
SUMOVTypeParameter * getVehicleTypeSecure(const std::string &id)
Retrieves the named vehicle type.
Base class for nodes used by the router.
std::multimap< const SUMOTime, const std::string > PersonMap
Known persons.
NamedObjectCont< RONode * > myNodes
Known nodes.
bool addFlow(SUMOVehicleParameter *flow, const bool randomize)
SUMOTime saveAndRemoveRoutesUntil(OptionsCont &options, SUMOAbstractRouter< ROEdge, ROVehicle > &router, SUMOTime time)
Computes routes described by their definitions and saves them.
RORouteDef * getRouteDef(const std::string &name) const
Returns the named route definition.
RONet & operator=(const RONet &src)
Invalidated assignment operator.
std::map< std::string, SUMOVehicleParameter::Stop * > myBusStops
Known bus stops.
bool computeRoute(OptionsCont &options, SUMOAbstractRouter< ROEdge, ROVehicle > &router, const ROVehicle *const veh)
unsigned int myWrittenRouteNo
The number of written routes.