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