Bpp/Simulator Urban_bus Model | C++ |
|  |
This module provides a simulation model for flows of customers in an urban bus network. This section allows you to access the C++ source files of the module. This module is part of Bpp/Simulator/Urban_bus . The files listed below are included in the interface part of the module. So any module dependent of this module is also dependent of the files listed here. <bpp/graph.hpp>
<bpp/simulation.hpp>
<bpp/statistics.hpp>
The files listed below are needed by the implementation part of the module. But a module dependent of this module is not necessary dependent of the files listed here. <jirk/bpp/graphic/arrowcomponent.hpp>
<jirk/bpp/graphic/imagecomponent.hpp>
<jirk/java/awt/color.hpp>
<jirk/java/lang/string.hpp>
<bpp/modules.hpp>
The namespaces listed below are integrated in this module. That means any element declared in one of those namespaces can now be directly used by or from this module. graph
simulation
statistics
Here are listed the errors that are supported or generated by the module. To use one of them, you do not have to specify the namespace of the module. Here are listed the functions provided by the module. To use one of them, you have to specify the namespace of the module. Here are listed the classes provided by the module. To use one of them, you have to specify the namespace of the module. class clBus : public clMobileObject
Represents a bus in an urban network. tyReal speed() Speed of the bus, i.e. the factor that is multiplied to the distance to get the time of travel of the bus. Reading and writing access.
clTravel travel() List of paths used by the bus. Reading and writing access.
tyCardinal lineNo() Number of the line the bus is serving. Reading access only.
tyCardinal size() Size of the bus, i.e. maximum number of customers inside the bus. Reading access only.
inline clBus::~clBus(void) Destructs the bus.
inline clPath * clBus::currentPath(void) const Returns the path that the bus is actually using.
property clBus::clBus(clSimulator & agSimulator,clAbstractPool * agPool,tyReal agSpeed,tyCardinal agLineNo,tyCardinal agSize,tcString agName) Builds a bus object. Its speed (default is 1.0), its line number (default is 0), its size (default is infinite), and its name (default is an empty string) can be provided.
property void clBus::arrive(clPhysicalObject * agObject) Manages the arrival of the bus on a spot.
property tyCardinal clBus::bestPosition(clStillObject * agSource,clStillObject * agTarget) Returns the position of the bus in its route (i.e. which arc it will use) so, when leaving a given source spot to move to a given target spot, the travel time is the best that the bus route can offer.
property tyReal clBus::bestTravelTime(clStillObject * agSource,clStillObject * agTarget) Returns the best travel time between two spots, using this bus.
class clCustomerMove
Represents a move of a customer, i.e. which path and means it is using to move. enumeration { feet, bus } tyMeans Type of the means the customer can use.
type clStillObject * tySpot Type of the spots that the customer can cross and/or stay on.
type clPath * tyPath Type of the paths the customer can use.
tyMeans means() Means used to move. Reading and writing access.
tyCardinal lineNo() If the means is a bus, the number of the line of this bus. Reading and writing access.
tySpot entry() If the means is a bus, the spot where the customer moves in the bus. Reading and writing access.
tyCardinal entryNo() If the means is a bus, the number of the spot where the customer moves in the bus. Reading and writing access.
tyReal travelTime() If the means is a bus, the time of travel. Reading and writing access.
tySpot exit() If the means is a bus, the spot where the customer moves out of the bus. Reading and writing access.
tyCardinal exitNo() If the means is a bus, the number of the spot where the customer moves out of the bus. Reading and writing access.
tyPath path() If the means is its feet, the path the customer must use. Reading and writing access.
tyCardinal pathNo() If the means is its feet, the number of the path the customer must use. Reading and writing access.
class clCustomerTravel
Represents a travel of a customer, i.e. a list of consecutive moves. tySource source() Spot where the customer starts the travel. Reading and writing access.
clMoveS moves() List of moves that describes the travel. Reading and writing access.
tyCardinal number() Number of the travel. Reading and writing access.
tyReal minimumTime() Minimum time the customer can possibly take to make the whole travel. Reading and writing access.
tyReal maximumTime() Maximum time the customer can possibly take to make the whole travel. Reading and writing access.
clVarianceCollector effectiveTime() Statistical collector for the effective time the customer takes to make the whole travel. Reading and writing access.
class clCustomer : public clMobileObject
Represents a customer in an urban network. tyCardinal creationDate() Date of creation of the object. Reading access only.
tyReal speed() Speed of the customer, i.e. the factor that is multiplied to the distance to get the time of travel of the customer. Reading and writing access.
class clCustomerFactory : public clStillObject
Represents a factory of customers. According to an exponential distribution, it creates customers that follow a specific travel. class clSpot : public clStillObject
Represents a spot in an urban network. tyReal positionX() X coordinate of the spot. Reading access only.
tyReal positionY() Y coordinate of the spot. Reading access only.
clVarianceCollector waitingTime() Statistical collector for the waiting time of the customers at the spot. Reading access only.
class clModel : public clSimulator
Represents a simulation model for flows of customers in an urban bus network. | | Copyright (c) 1999-2016 - Bruno Bachelet - bruno@nawouak.net - http://www.nawouak.net | Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation. See this license for more details (http://www.gnu.org). |
|
| |