#include <GuiExecutor.hxx>


Public Member Functions | |
| GuiExecutor (YACS::ENGINE::Proc *proc) | |
| virtual | ~GuiExecutor () |
| void | closeContext () |
| void | startResumeDataflow (bool initialize=false) |
| bool | checkEndOfDataflow (bool display=true) |
| void | killDataflow () |
| void | suspendDataflow () |
| void | resumeDataflow () |
| void | stopDataflow () |
| void | resetDataflow () |
| void | setStepByStepMode () |
| void | setContinueMode () |
| void | setBreakpointMode () |
| void | setStopOnError (bool aMode) |
| void | unsetStopOnError () |
| void | saveState (const std::string &xmlFile) |
| void | setLoadStateFile (std::string xmlFile) |
| YACS_ORB::executionMode | getCurrentExecMode () |
| int | getExecutorState () |
| void | setBreakpointList (std::list< std::string > breakpointList) |
| void | addBreakpoint (std::string breakpoint) |
| void | removeBreakpoint (std::string breakpoint) |
| void | setNextStepList (std::list< std::string > nextStepList) |
| void | setInPortValue (YACS::ENGINE::DataPort *port, std::string value) |
| void | registerStatusObservers () |
| bool | isRunning () const |
| bool | isStopOnError () const |
| void | setEngineRef (YACS_ORB::YACS_Gen_ptr ref) |
| YACS::ENGINE::Proc * | getProc () |
| std::string | getErrorDetails (YACS::ENGINE::Node *node) |
| std::string | getErrorReport (YACS::ENGINE::Node *node) |
| std::string | getContainerLog () |
| std::string | getContainerLog (YACS::ENGINE::Node *node) |
| void | shutdownProc () |
| void | setShutdownLevel (int level) |
| int | getShutdownLevel () |
| YACS::ExecutorState | updateSchema (std::string jobState) |
| virtual bool | event (QEvent *e) |
Protected Member Functions | |
| void | setBPList () |
Protected Attributes | |
| YACS::ENGINE::Proc * | _proc |
| QtGuiContext * | _context |
| YACS_ORB::YACS_Gen_var | _engineRef |
| YACS_ORB::ProcExec_var | _procRef |
| YACS_ORB::Observer_var | _observerRef |
| YACS::ExecutionMode | _execMode |
| GuiObserver_i * | _serv |
| bool | _isRunning |
| bool | _isSuspended |
| bool | _isStopOnError |
| int | _shutdownLevel |
| std::list< std::string > | _breakpointList |
| std::string | _loadStateFile |
Definition at line 46 of file GuiExecutor.hxx.
| GuiExecutor::GuiExecutor | ( | YACS::ENGINE::Proc * | proc | ) |
Definition at line 46 of file GuiExecutor.cxx.
References _breakpointList, _context, _engineRef, _execMode, _isRunning, _isStopOnError, _isSuspended, _loadStateFile, _observerRef, _proc, _procRef, _serv, _shutdownLevel, YACS::CONTINUE, DEBTRACE, and YACS::HMI::QtGuiContext::getQtCurrent().
|
virtual |
Definition at line 74 of file GuiExecutor.cxx.
References DEBTRACE.
| void GuiExecutor::addBreakpoint | ( | std::string | breakpoint | ) |
Definition at line 348 of file GuiExecutor.cxx.
References _breakpointList, YACS::HMI::GenericGui::_breakpointsModeAct, _context, _execMode, YACS::CONTINUE, DEBTRACE, YACS::HMI::QtGuiContext::getGMain(), setBPList(), and setBreakpointMode().
Referenced by YACS::HMI::SchemaNodeItem::toggleState().
| bool GuiExecutor::checkEndOfDataflow | ( | bool | display = true | ) |
Definition at line 161 of file GuiExecutor.cxx.
References _isRunning, _procRef, and DEBTRACE.
Referenced by resetDataflow(), shutdownProc(), and startResumeDataflow().
| void GuiExecutor::closeContext | ( | ) |
|
virtual |
Definition at line 498 of file GuiExecutor.cxx.
References _context, YACS::HMI::GuiObserver_i::_engineToGuiMap, _isSuspended, YACS::HMI::GuiContext::_mapOfExecSubjectNode, YACS::HMI::GuiContext::_mapOfSubjectDataPort, _procRef, _serv, DEBTRACE, event(), YACS::ENGINE::Node::getLocalInputPorts(), YACS::ENGINE::Node::getLocalOutputPorts(), YACS::HMI::SubjectNode::getName(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::GuiContext::getSubjectProc(), YACS::HMI::YACSEvent::getYACSEvent(), yacsorb.CORBAEngineTest::i, YACS::PAUSED, YACS::HMI::PROGRESS, YACS::HMI::SubjectDataPort::setExecValue(), YACS::HMI::Subject::setProgress(), yacsorb.CORBAEngineTest::state, YACS::HMI::Subject::update(), YACS::HMI::SubjectNode::update(), YACS::HMI::UPDATEPROGRESS, YACS::WAITINGTASKS, and YASSERT.
Referenced by event().
| std::string GuiExecutor::getContainerLog | ( | ) |
Definition at line 443 of file GuiExecutor.cxx.
References _engineRef, and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onGetContainerLog(), and YACS::HMI::GenericGui::onGetYacsContainerLog().
| std::string GuiExecutor::getContainerLog | ( | YACS::ENGINE::Node * | node | ) |
Definition at line 459 of file GuiExecutor.cxx.
References _procRef, _serv, DEBTRACE, YACS::HMI::GuiObserver_i::getEngineId(), and YACS::ENGINE::Node::getNumId().
| YACS_ORB::executionMode GuiExecutor::getCurrentExecMode | ( | ) |
Definition at line 306 of file GuiExecutor.cxx.
References _execMode, YACS_ORB::CONTINUE, YACS::CONTINUE, DEBTRACE, YACS_ORB::STEPBYSTEP, YACS::STEPBYSTEP, YACS_ORB::STOPBEFORENODES, and YACS::STOPBEFORENODES.
Referenced by resumeDataflow(), and startResumeDataflow().
| std::string GuiExecutor::getErrorDetails | ( | YACS::ENGINE::Node * | node | ) |
Definition at line 421 of file GuiExecutor.cxx.
References _procRef, _serv, DEBTRACE, YACS::HMI::GuiObserver_i::getEngineId(), and YACS::ENGINE::Node::getNumId().
Referenced by YACS::HMI::GenericGui::onGetErrorDetails().
| std::string GuiExecutor::getErrorReport | ( | YACS::ENGINE::Node * | node | ) |
Definition at line 432 of file GuiExecutor.cxx.
References _procRef, _serv, DEBTRACE, YACS::HMI::GuiObserver_i::getEngineId(), and YACS::ENGINE::Node::getNumId().
Referenced by YACS::HMI::GenericGui::onGetErrorReport(), and YACS::HMI::EditionProc::update().
| int GuiExecutor::getExecutorState | ( | ) |
Definition at line 318 of file GuiExecutor.cxx.
References _isRunning, _procRef, DEBTRACE, YACS::FINISHED, and YACS::NOTYETINITIALIZED.
Referenced by saveState().
|
inline |
|
inline |
Definition at line 93 of file GuiExecutor.hxx.
References _shutdownLevel.
Referenced by YACS::HMI::EditionProc::EditionProc().
|
inline |
|
inline |
| void GuiExecutor::killDataflow | ( | ) |
Definition at line 186 of file GuiExecutor.cxx.
References _isRunning, _procRef, and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onAbort().
| void GuiExecutor::registerStatusObservers | ( | ) |
Definition at line 386 of file GuiExecutor.cxx.
References _observerRef, _proc, _procRef, _serv, DEBTRACE, YACS::ENGINE::ComposedNode::getAllRecursiveConstituents(), YACS::HMI::GuiObserver_i::getEngineId(), YACS::ENGINE::Node::getNumId(), YACS::HMI::GuiObserver_i::setConversion(), YACS::HMI::GuiObserver_i::SetImpl(), and YACS::HMI::GuiObserver_i::SetRemoteProc().
Referenced by startResumeDataflow().
| void GuiExecutor::removeBreakpoint | ( | std::string | breakpoint | ) |
Definition at line 365 of file GuiExecutor.cxx.
References _breakpointList, DEBTRACE, and setBPList().
Referenced by YACS::HMI::SchemaNodeItem::toggleState().
| void GuiExecutor::resetDataflow | ( | ) |
Definition at line 217 of file GuiExecutor.cxx.
References _isRunning, _procRef, checkEndOfDataflow(), DEBTRACE, and YACS_ORB::STEPBYSTEP.
Referenced by YACS::HMI::GenericGui::onReset().
| void GuiExecutor::resumeDataflow | ( | ) |
Definition at line 200 of file GuiExecutor.cxx.
References _isRunning, _procRef, DEBTRACE, and getCurrentExecMode().
| void GuiExecutor::saveState | ( | const std::string & | xmlFile | ) |
Definition at line 285 of file GuiExecutor.cxx.
References _isRunning, _procRef, DEBTRACE, YACS::FINISHED, getExecutorState(), and YACS::NOTYETINITIALIZED.
Referenced by YACS::HMI::GenericGui::onSaveRunState().
|
protected |
Definition at line 574 of file GuiExecutor.cxx.
References _breakpointList, _isRunning, _procRef, DEBTRACE, and yacsorb.CORBAEngineTest::i.
Referenced by addBreakpoint(), removeBreakpoint(), setBreakpointList(), and startResumeDataflow().
| void GuiExecutor::setBreakpointList | ( | std::list< std::string > | breakpointList | ) |
Definition at line 330 of file GuiExecutor.cxx.
References _breakpointList, YACS::HMI::GenericGui::_breakpointsModeAct, _context, _execMode, YACS::CONTINUE, DEBTRACE, YACS::HMI::QtGuiContext::getGMain(), setBPList(), and setBreakpointMode().
| void GuiExecutor::setBreakpointMode | ( | ) |
Definition at line 252 of file GuiExecutor.cxx.
References _execMode, _isRunning, _procRef, DEBTRACE, YACS_ORB::STOPBEFORENODES, and YACS::STOPBEFORENODES.
Referenced by addBreakpoint(), YACS::HMI::GenericGui::onBreakpointsMode(), and setBreakpointList().
| void GuiExecutor::setContinueMode | ( | ) |
Definition at line 244 of file GuiExecutor.cxx.
References _execMode, _isRunning, _procRef, YACS_ORB::CONTINUE, YACS::CONTINUE, and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onWithoutStopMode().
| void GuiExecutor::setEngineRef | ( | YACS_ORB::YACS_Gen_ptr | ref | ) |
Definition at line 415 of file GuiExecutor.cxx.
References _engineRef, DEBTRACE, and gui.CONNECTOR::ref().
| void GuiExecutor::setInPortValue | ( | YACS::ENGINE::DataPort * | port, |
| std::string | value | ||
| ) |
Definition at line 482 of file GuiExecutor.cxx.
References _procRef, DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::DataPort::getName(), YACS::ENGINE::Node::getName(), YACS::ENGINE::Port::getNode(), and YACS::ENGINE::Node::getRootNode().
Referenced by YACS::HMI::EditionElementaryNode::onCommitData(), and YACS::HMI::TreeView::onCommitData().
| void GuiExecutor::setLoadStateFile | ( | std::string | xmlFile | ) |
Definition at line 299 of file GuiExecutor.cxx.
References _loadStateFile, and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onRunLoadedSchema().
| void GuiExecutor::setNextStepList | ( | std::list< std::string > | nextStepList | ) |
Definition at line 372 of file GuiExecutor.cxx.
References _isRunning, _procRef, DEBTRACE, and yacsorb.CORBAEngineTest::i.
|
inline |
Definition at line 92 of file GuiExecutor.hxx.
References _shutdownLevel.
Referenced by YACS::HMI::EditionProc::onLevelChange().
| void GuiExecutor::setStepByStepMode | ( | ) |
Definition at line 236 of file GuiExecutor.cxx.
References _execMode, _isRunning, _procRef, DEBTRACE, YACS_ORB::STEPBYSTEP, and YACS::STEPBYSTEP.
Referenced by YACS::HMI::GenericGui::onStepByStepMode().
| void GuiExecutor::setStopOnError | ( | bool | aMode | ) |
Definition at line 260 of file GuiExecutor.cxx.
References _isRunning, _isStopOnError, _procRef, and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onRunLoadedSchema(), and YACS::HMI::GenericGui::onToggleStopOnError().
| void GuiExecutor::shutdownProc | ( | ) |
Definition at line 474 of file GuiExecutor.cxx.
References _isRunning, _procRef, _shutdownLevel, checkEndOfDataflow(), and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onShutdownProc().
| void GuiExecutor::startResumeDataflow | ( | bool | initialize = false | ) |
Definition at line 85 of file GuiExecutor.cxx.
References _context, _engineRef, _isRunning, _isSuspended, _loadStateFile, _procRef, checkEndOfDataflow(), yacsorb.CORBAEngineTest::comp, DEBTRACE, getCurrentExecMode(), YACS::HMI::QtGuiContext::getFileName(), YACS::ENGINE::RuntimeSALOME::getOrb(), YACS::ENGINE::getSALOMERuntime(), orb, registerStatusObservers(), setBPList(), YACS_ORB::STEPBYSTEP, and YASSERT.
Referenced by YACS::HMI::GenericGui::onRunLoadedSchema(), and YACS::HMI::GenericGui::onStartResume().
| void GuiExecutor::stopDataflow | ( | ) |
Definition at line 210 of file GuiExecutor.cxx.
References _isRunning, _procRef, and DEBTRACE.
| void GuiExecutor::suspendDataflow | ( | ) |
Definition at line 193 of file GuiExecutor.cxx.
References _isRunning, _procRef, DEBTRACE, and YACS_ORB::STEPBYSTEP.
Referenced by YACS::HMI::GenericGui::onPause().
| void GuiExecutor::unsetStopOnError | ( | ) |
Definition at line 274 of file GuiExecutor.cxx.
References _isRunning, _isStopOnError, _procRef, and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onToggleStopOnError().
| YACS::ExecutorState GuiExecutor::updateSchema | ( | std::string | jobState | ) |
Definition at line 588 of file GuiExecutor.cxx.
References _context, YACS::HMI::GuiContext::_mapOfExecSubjectNode, YACS::HMI::GuiContext::_mapOfSubjectDataPort, _proc, YACS::ACTIVATED, YACS::DONE, YACS::FAILED, YACS::FINISHED, YACS::ENGINE::ComposedNode::getAllRecursiveConstituents(), YACS::ENGINE::Node::getEffectiveState(), YACS::ENGINE::Proc::getInPortValue(), YACS::ENGINE::Node::getLocalInputPorts(), YACS::ENGINE::Node::getLocalOutputPorts(), YACS::HMI::SubjectNode::getNode(), YACS::ENGINE::Proc::getNodeState(), YACS::ENGINE::Proc::getOutPortValue(), YACS::ENGINE::ComposedNode::getRootNode(), YACS::HMI::GuiContext::getSubjectProc(), YACS::LOADED, YACS::NOTYETINITIALIZED, YACS::PAUSED, YACS::RUNNING, YACS::HMI::SubjectDataPort::setExecValue(), yacsorb.CORBAEngineTest::state, YACS::SUSPENDED, YACS::HMI::Subject::update(), YACS::HMI::SubjectNode::update(), YACS::HMI::UPDATEPROGRESS, and YASSERT.
Referenced by YACS::HMI::BatchJobsListDialog::get_dump_file().
|
protected |
Definition at line 117 of file GuiExecutor.hxx.
Referenced by addBreakpoint(), GuiExecutor(), removeBreakpoint(), setBPList(), and setBreakpointList().
|
protected |
Definition at line 103 of file GuiExecutor.hxx.
Referenced by addBreakpoint(), closeContext(), event(), GuiExecutor(), setBreakpointList(), startResumeDataflow(), and updateSchema().
|
protected |
Definition at line 105 of file GuiExecutor.hxx.
Referenced by getContainerLog(), GuiExecutor(), setEngineRef(), and startResumeDataflow().
|
protected |
Definition at line 109 of file GuiExecutor.hxx.
Referenced by addBreakpoint(), getCurrentExecMode(), GuiExecutor(), setBreakpointList(), setBreakpointMode(), setContinueMode(), and setStepByStepMode().
|
protected |
Definition at line 112 of file GuiExecutor.hxx.
Referenced by checkEndOfDataflow(), getExecutorState(), GuiExecutor(), isRunning(), killDataflow(), resetDataflow(), resumeDataflow(), saveState(), setBPList(), setBreakpointMode(), setContinueMode(), setNextStepList(), setStepByStepMode(), setStopOnError(), shutdownProc(), startResumeDataflow(), stopDataflow(), suspendDataflow(), and unsetStopOnError().
|
protected |
Definition at line 114 of file GuiExecutor.hxx.
Referenced by GuiExecutor(), isStopOnError(), setStopOnError(), and unsetStopOnError().
|
protected |
Definition at line 113 of file GuiExecutor.hxx.
Referenced by event(), GuiExecutor(), and startResumeDataflow().
|
protected |
Definition at line 118 of file GuiExecutor.hxx.
Referenced by GuiExecutor(), setLoadStateFile(), and startResumeDataflow().
|
protected |
Definition at line 107 of file GuiExecutor.hxx.
Referenced by GuiExecutor(), and registerStatusObservers().
|
protected |
Definition at line 102 of file GuiExecutor.hxx.
Referenced by getProc(), GuiExecutor(), registerStatusObservers(), and updateSchema().
|
protected |
Definition at line 106 of file GuiExecutor.hxx.
Referenced by checkEndOfDataflow(), event(), getContainerLog(), getErrorDetails(), getErrorReport(), getExecutorState(), GuiExecutor(), killDataflow(), registerStatusObservers(), resetDataflow(), resumeDataflow(), saveState(), setBPList(), setBreakpointMode(), setContinueMode(), setInPortValue(), setNextStepList(), setStepByStepMode(), setStopOnError(), shutdownProc(), startResumeDataflow(), stopDataflow(), suspendDataflow(), and unsetStopOnError().
|
protected |
Definition at line 110 of file GuiExecutor.hxx.
Referenced by event(), getContainerLog(), getErrorDetails(), getErrorReport(), GuiExecutor(), and registerStatusObservers().
|
protected |
Definition at line 115 of file GuiExecutor.hxx.
Referenced by getShutdownLevel(), GuiExecutor(), setShutdownLevel(), and shutdownProc().