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