Eclipse SUMO - Simulation of Urban MObility
GUIEvent_SimulationEnded Class Reference

Event sent when the the simulation is over. More...

#include <GUIEvent_SimulationEnded.h>

Inheritance diagram for GUIEvent_SimulationEnded:
[legend]
Collaboration diagram for GUIEvent_SimulationEnded:
[legend]

Public Member Functions

GUIEventType getOwnType () const
 returns the event type More...
 
MSNet::SimulationState getReason () const
 Returns the reason the simulation has ended due. More...
 
SUMOTime getTimeStep () const
 Returns the time step the simulation has ended at. More...
 
 GUIEvent_SimulationEnded (MSNet::SimulationState reason, SUMOTime step)
 Constructor. More...
 
 ~GUIEvent_SimulationEnded ()
 Destructor. More...
 

Protected Attributes

MSNet::SimulationState myReason
 The reason the simulation has ended. More...
 
SUMOTime myStep
 The time step the simulation has ended at. More...
 
GUIEventType myType
 the type of the event More...
 

Detailed Description

Event sent when the the simulation is over.

Throw from GUIRunThread to GUIApplicationWindow.

Definition at line 38 of file GUIEvent_SimulationEnded.h.

Constructor & Destructor Documentation

◆ GUIEvent_SimulationEnded()

GUIEvent_SimulationEnded::GUIEvent_SimulationEnded ( MSNet::SimulationState  reason,
SUMOTime  step 
)
inline

Constructor.

Parameters
[in]reasonThe reason the simulation has ended
[in]stepThe time step the simulation has ended at

Definition at line 44 of file GUIEvent_SimulationEnded.h.

◆ ~GUIEvent_SimulationEnded()

GUIEvent_SimulationEnded::~GUIEvent_SimulationEnded ( )
inline

Destructor.

Definition at line 49 of file GUIEvent_SimulationEnded.h.

Member Function Documentation

◆ getOwnType()

GUIEventType GUIEvent::getOwnType ( ) const
inlineinherited

returns the event type

Definition at line 89 of file GUIEvent.h.

References GUIEvent::myType.

Referenced by GUIApplicationWindow::eventOccurred(), GNEApplicationWindow::eventOccurred(), GUIApplicationWindow::handleEvent_Message(), GNEApplicationWindow::handleEvent_Message(), GNERunNetgenerateDialog::onThreadEvent(), and GNERunPythonToolDialog::onThreadEvent().

Here is the caller graph for this function:

◆ getReason()

MSNet::SimulationState GUIEvent_SimulationEnded::getReason ( ) const
inline

Returns the reason the simulation has ended due.

Returns
The reason the simulation has ended

Definition at line 63 of file GUIEvent_SimulationEnded.h.

References myReason.

Referenced by GUIApplicationWindow::handleEvent_SimulationEnded().

Here is the caller graph for this function:

◆ getTimeStep()

SUMOTime GUIEvent_SimulationEnded::getTimeStep ( ) const
inline

Returns the time step the simulation has ended at.

Returns
The time step the simulation has ended at

Definition at line 55 of file GUIEvent_SimulationEnded.h.

References myStep.

Referenced by GUIApplicationWindow::handleEvent_SimulationEnded().

Here is the caller graph for this function:

Field Documentation

◆ myReason

MSNet::SimulationState GUIEvent_SimulationEnded::myReason
protected

The reason the simulation has ended.

Definition at line 70 of file GUIEvent_SimulationEnded.h.

Referenced by getReason().

◆ myStep

SUMOTime GUIEvent_SimulationEnded::myStep
protected

The time step the simulation has ended at.

Definition at line 73 of file GUIEvent_SimulationEnded.h.

Referenced by getTimeStep().

◆ myType

GUIEventType GUIEvent::myType
protectedinherited

the type of the event

Definition at line 102 of file GUIEvent.h.

Referenced by GUIEvent::getOwnType(), and GUIEvent_Message::GUIEvent_Message().


The documentation for this class was generated from the following file: