 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
420 void addEdgeWeight(
const std::string&
id,
double val,
double beg,
double end)
const;
void setIdleDuration(int val)
Sets the duration of the last step's idle part.
double getUPS() const
Returns the update per seconds rate.
Boundary myBoundary
The networks boundary.
Stores time-dependant events and executes them at the proper time.
class for discovering edge attributes
Links2LogicMap myLinks2Logic
The link-to-logic-id map.
static double getAvgWaitingTime()
LayeredRTree myGrid
The visualization speed-up.
A window containing a gl-object's parameter.
bool isGUINet() const override
Returns whether this is a GUI Net.
std::map< std::string, MSEdgeWeightsStorage * > myLoadedEdgeData
loaded edge data for visualization
double getMeanUPS() const
Returns the update per seconds rate.
static double getAvgWalkRouteLength()
SAX-handler base for SUMO-files.
double getAvgRouteLength() const
int getLinkTLID(MSLink *link) const
int getIdleDuration() const
Returns the duration of the last step's idle part (in ms)
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Callback method for an opening tag to implement by derived classes.
Static storage of an output device and its base (abstract) implementation.
MSTransportableControl & getContainerControl() override
Returns the container control.
bool isSelected(const MSTrafficLightLogic *tll) const override
return wheter the given logic (or rather it's wrapper) is selected in the GUI
static GUINet * getGUIInstance()
Returns the pointer to the unique instance of GUINet (singleton).
void initTLMap()
Initialises the tl-logic map and wrappers.
GUINet(MSVehicleControl *vc, MSEventControl *beginOfTimestepEvents, MSEventControl *endOfTimestepEvents, MSEventControl *insertionEvents)
Constructor.
The simulated network and simulation perfomer.
The class responsible for building and deletion of vehicles (gui-version)
int myLastSimDuration
The step durations (simulation, /*visualisation, */idle)
const SUMORTree & getVisualisationSpeedUp() const
Returns the RTree used for visualisation speed-up.
int getSimDuration() const
Returns the duration of the last step's simulation part (in ms)
double getAvgWalkTimeLoss() const
The class responsible for building and deletion of vehicles (gui-version)
friend class GUIOSGBuilder
A storage for edge travel times and efforts.
std::vector< GUIDetectorWrapper * > myDetectorWrapper
A detector dictionary.
double getAvgWalkDuration() const
GUIMEVehicleControl * getGUIMEVehicleControl()
Returns the vehicle control.
bool loadEdgeData(const std::string &file)
load edgeData from file
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own popup-menu.
double getAvgDepartDelay() const
static double getAvgWalkDuration()
A RT-tree for efficient storing of SUMO's GL-objects.
Container for junctions; performs operations on all stored junctions.
double getAvgWaitingTime() const
std::map< MSLink *, std::string > Links2LogicMap
Definition of a link-to-logic-id map.
int getWholeDuration() const
Returns the duration of the last step (sim+visualisation+idle) (in ms)
std::vector< GUIEdge * > myEdgeWrapper
Wrapped MS-edges.
Boundary getCenteringBoundary() const override
Returns the boundary to which the view shall be centered in order to show the object.
static double getAvgTimeLoss()
FXMutex myLock
The mutex used to avoid concurrent updates of the vehicle buffer.
std::vector< GUIJunctionWrapper * > myJunctionWrapper
Wrapped MS-junctions.
MSTransportableControl & getPersonControl() override
Returns the person control.
static double getAvgRouteLength()
accessors for GUINet-Parameters
A MSVehicle extended by some values for usage within the gui.
double getEdgeData(const MSEdge *edge, const std::string &attr)
retrieve loaded edged weight for the given attribute and the current simulation time
double getAvgDuration() const
EdgeFloatTimeLineRetriever_GUI(MSEdgeWeightsStorage *weightStorage)
Constructor.
A class that stores a 2D geometrical boundary.
const Boundary & getBoundary() const
returns the bounder of the network
Logics2WrapperMap myLogics2Wrapper
The traffic light-to-wrapper map.
long myOverallSimDuration
A point in 2D or 3D with translation and scaling methods.
void initGUIStructures()
Initialises gui wrappers.
A road/street connecting two junctions.
std::vector< std::string > getEdgeAttrs()
The parent class for traffic light logics.
static double getAvgDepartDelay()
long myOverallVehicleCount
void lock()
grant exclusive access to the simulation state
long myLastVehicleMovementCount
double getAvgTripSpeed() const
void drawGL(const GUIVisualizationSettings &s) const override
Draws the object.
void addEdgeWeight(const std::string &id, double val, double beg, double end) const
Adds an effort for a given edge and time period.
MSEdgeWeightsStorage * myWeightStorage
The storage that edges shall be added to.
A road/street connecting two junctions (gui-version)
double getAvgTimeLoss() const
static double getAvgWalkTimeLoss()
std::vector< GUIGlID > getTLSIDs() const
Returns the gl-ids of all traffic light logics within the net.
void unlock()
release exclusive access to the simulation state
double getRTFactor() const
Returns the simulation speed as a factor to real time.
bool vehicleExists(const std::string &name) const
returns the information whether the vehicle still exists
int getLinkTLIndex(MSLink *link) const
std::vector< GUIGlID > getJunctionIDs(bool includeInternal) const
The class responsible for building and deletion of vehicles.
Stores edges and lanes, performs moving of vehicle.
A class that stores and controls tls and switching of their programs.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent) override
Returns an own parameter window.
DiscoverAttributes(const std::string &file)
double getMeanRTFactor(int duration) const
Returns the simulation speed as a factor to real time.
double getAvgWalkRouteLength() const
std::map< MSTrafficLightLogic *, GUITrafficLightLogicWrapper * > Logics2WrapperMap
Definition of a traffic light-to-wrapper map.
Stores the information about how to visualize structures.
void createTLWrapper(MSTrafficLightLogic *tll) override
creates a wrapper for the given logic
Position getJunctionPosition(const std::string &name) const
returns the position of a junction
A MSNet extended by some values for usage within the gui.
~EdgeFloatTimeLineRetriever_GUI()
Destructor.
void simulationStep()
Performs a single simulation step (locking the simulation)
std::vector< std::string > getEdgeDataAttrs() const
return list of loaded edgeData attributes
Encapsulated SAX-Attributes.
void setSimDuration(int val)
Sets the duration of the last step's simulation part.
GUIVehicleControl * getGUIVehicleControl()
Returns the vehicle control.
void guiSimulationStep()
Some further steps needed for gui processing.
Interface for a class which obtains read weights for named edges.
A RT-tree for efficient storing of SUMO's GL-objects in layers.
std::set< std::string > edgeAttrs
SUMORTree & getVisualisationSpeedUp()
Returns the RTree used for visualisation speed-up.
static double getAvgDuration()