Eclipse SUMO - Simulation of Urban MObility
|
thread for running netgenerate More...
#include <GNERunNetgenerate.h>
Public Member Functions | |
void | abort () |
abort netgenerate running | |
bool | errorOccurred () const |
check if during execution an error was Occurred | |
GNERunNetgenerate (GNERunNetgenerateDialog *runDialog, MFXSynchQue< GUIEvent * > &eq, FXEX::MFXThreadEvent &ev) | |
Constructor. | |
bool | isRunning () const |
check if netgenerate is running | |
void | run (const OptionsCont *netgenerateOptions) |
run netgenerate | |
~GNERunNetgenerate () | |
destructor | |
Protected Types | |
enum | { ID_THREAD_EVENT } |
FOX declaration. More... | |
Protected Member Functions | |
long | onThreadEvent (FXObject *, FXSelector, void *) |
long | onThreadSignal (FXObject *, FXSelector, void *) |
void | signal () |
void | signal (FXuint seltype) |
Static Protected Member Functions | |
static void | sleep (long ms) |
Protected Attributes | |
FXApp * | myApp = nullptr |
pointer to APP | |
MFXInterThreadEventClient * | myClient = nullptr |
thread client | |
Private Member Functions | |
GNERunNetgenerate (const GNERunNetgenerate &)=delete | |
Invalidated copy constructor. | |
GNERunNetgenerate & | operator= (const GNERunNetgenerate &)=delete |
Invalidated assignment operator. | |
FXint | run () |
starts the thread. The thread ends after the netgenerate is finished | |
Private Attributes | |
FXEX::MFXThreadEventHandle | event |
event | |
bool | myErrorOccurred = false |
flag for check if during execution an error was Occurred | |
MFXSynchQue< GUIEvent * > & | myEventQueue |
event Queue | |
FXEX::MFXThreadEvent & | myEventThrow |
event throw | |
std::string | myNetgenerateCommand |
netgenerate command | |
FILE * | myPipe = nullptr |
pipe file | |
bool | myRunning = false |
flag for check if netgenerate is running | |
thread for running netgenerate
Definition at line 40 of file GNERunNetgenerate.h.
|
inherited |
GNERunNetgenerate::GNERunNetgenerate | ( | GNERunNetgenerateDialog * | runDialog, |
MFXSynchQue< GUIEvent * > & | eq, | ||
FXEX::MFXThreadEvent & | ev | ||
) |
Constructor.
Definition at line 32 of file GNERunNetgenerate.cpp.
GNERunNetgenerate::~GNERunNetgenerate | ( | ) |
destructor
Definition at line 39 of file GNERunNetgenerate.cpp.
|
privatedelete |
Invalidated copy constructor.
void GNERunNetgenerate::abort | ( | ) |
abort netgenerate running
Definition at line 92 of file GNERunNetgenerate.cpp.
References ERROR_OCCURRED, myErrorOccurred, myEventQueue, myEventThrow, myRunning, MFXSynchQue< T, Container >::push_back(), FXEX::MFXThreadEvent::signal(), and TL.
Referenced by GNERunNetgenerateDialog::onCmdAbort(), and GNERunNetgenerateDialog::onCmdCancel().
bool GNERunNetgenerate::errorOccurred | ( | ) | const |
check if during execution an error was Occurred
Definition at line 113 of file GNERunNetgenerate.cpp.
References myErrorOccurred.
bool GNERunNetgenerate::isRunning | ( | ) | const |
check if netgenerate is running
Definition at line 107 of file GNERunNetgenerate.cpp.
References myRunning.
Referenced by GNERunNetgenerateDialog::updateDialog().
|
inherited |
Definition at line 128 of file MFXSingleEventThread.cpp.
References MFXInterThreadEventClient::eventOccurred(), and MFXSingleEventThread::myClient.
Referenced by FXDEFMAP().
|
inherited |
Definition at line 113 of file MFXSingleEventThread.cpp.
References MFXSingleEventThread::event, PIPE_READ, FXEX::SEL_THREAD, and UNUSED_PARAMETER.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
privatevirtual |
starts the thread. The thread ends after the netgenerate is finished
Reimplemented from MFXSingleEventThread.
Definition at line 119 of file GNERunNetgenerate.cpp.
References ERROR_OCCURRED, MESSAGE_OCCURRED, myErrorOccurred, myEventQueue, myEventThrow, myNetgenerateCommand, myPipe, myRunning, OUTPUT_OCCURRED, MFXSynchQue< T, Container >::push_back(), FXEX::MFXThreadEvent::signal(), TL, TOOL_ENDED, and StringUtils::transcodeToLocal().
void GNERunNetgenerate::run | ( | const OptionsCont * | netgenerateOptions | ) |
run netgenerate
Definition at line 43 of file GNERunNetgenerate.cpp.
References OptionsCont::getSubTopics(), OptionsCont::getSubTopicsEntries(), OptionsCont::getValueString(), OptionsCont::isDefault(), myErrorOccurred, myNetgenerateCommand, and myRunning.
Referenced by GNERunNetgenerateDialog::onCmdRerun(), and GNERunNetgenerateDialog::run().
|
inherited |
Definition at line 89 of file MFXSingleEventThread.cpp.
References MFXSingleEventThread::event, PIPE_WRITE, FXEX::SEL_THREAD, and UNUSED_PARAMETER.
|
inherited |
Definition at line 101 of file MFXSingleEventThread.cpp.
References MFXSingleEventThread::event, PIPE_WRITE, and UNUSED_PARAMETER.
|
staticinherited |
Definition at line 142 of file MFXSingleEventThread.cpp.
Referenced by GUIRunThread::deleteSim(), GUIApplicationWindow::loadOnStartup(), GUISUMOAbstractView::makeSnapshot(), and GUIRunThread::tryStep().
|
privateinherited |
event
Definition at line 72 of file MFXSingleEventThread.h.
Referenced by MFXSingleEventThread::onThreadSignal(), MFXSingleEventThread::signal(), MFXSingleEventThread::signal(), and MFXSingleEventThread::~MFXSingleEventThread().
|
protectedinherited |
pointer to APP
Definition at line 65 of file MFXSingleEventThread.h.
Referenced by GUIRunThread::run(), and MFXSingleEventThread::~MFXSingleEventThread().
|
protectedinherited |
thread client
Definition at line 68 of file MFXSingleEventThread.h.
Referenced by MFXSingleEventThread::onThreadEvent().
|
private |
flag for check if during execution an error was Occurred
Definition at line 69 of file GNERunNetgenerate.h.
Referenced by abort(), errorOccurred(), run(), and run().
|
private |
|
private |
|
private |
netgenerate command
Definition at line 63 of file GNERunNetgenerate.h.
|
private |
|
private |
flag for check if netgenerate is running
Definition at line 66 of file GNERunNetgenerate.h.
Referenced by abort(), isRunning(), run(), and run().