A MSNet extended by some values for usage within the gui.
double & mySimDelay
simulation delay
void singleStep()
called when the user presses the "single step"-button
OutputDevice * myErrorRetriever
The instances of message retriever encapsulations.
GUINet * myNet
the loaded simulation network
FXMutex myBreakpointLock
Lock for modifying the list of breakpoints.
GUINet & getNet() const
returns the loaded network
std::vector< SUMOTime > myBreakpoints
List of breakpoints.
virtual FXint run()
starts the execution
virtual void begin()
starts the simulation (execution of one step after another)
SUMOTime getSimBegin()
get simulation begin time
void resume()
called when the user presses the "resume"-button
FXEX::MFXThreadEvent & myEventThrow
thrower events
virtual bool simulationIsStartable() const
check if simulation is startable
bool networkAvailable() const
returns the information whether a network has been loaded
bool myOk
flag to check if all is ok
virtual bool simulationIsStepable() const
check if simulation is stepable
bool mySimulationInProgress
information whether a simulation step is being performed
std::vector< SUMOTime > & getBreakpoints()
get list of breakpoints
virtual bool init(GUINet *net, SUMOTime start, SUMOTime end)
initialises the thread with the new simulation
void makeStep()
make simulation step
FXMutex & getBreakpointLock()
get breakpoint lock
bool myHalting
information whether the simulation is halting (is not being executed)
SUMOTime getSimEndTime() const
get simulation end time
virtual ~GUIRunThread()
destructor
void tryStep()
try simulation step
virtual bool simulationIsStopable() const
check if simulation is stopableo
void enableLibsumo()
enable lib SUMO
OutputDevice * myMessageRetriever
long myLastEndMillis
end of the last simulation step
bool mySingle
information whether the thread is running in single step mode
OutputDevice * myWarningRetriever
virtual void deleteSim()
deletes the existing simulation
void retrieveMessage(const MsgHandler::MsgType type, const std::string &msg)
Retrieves messages from the loading module.
void waitForSnapshots(const SUMOTime snapshotTime)
wait for snapshots
SUMOTime mySimStartTime
the times the simulation starts and ends with
bool myQuit
information whether the thread shall be stopped
void stop()
halts the simulation execution
bool myAmLibsumo
whether we are running in libsumo
void prepareDestruction()
halts the thread before it shall be deleted
long myLastBreakMillis
last time the simulation took a microsecond break for the fox event loop to catch up (#9028)
MFXSynchQue< GUIEvent * > & myEventQue
event queue
FXMutex mySimulationLock
mutex for lock simulation
bool myHaveSignaledEnd
whether the simulation already ended
Static storage of an output device and its base (abstract) implementation.