#include <GuiExecutor.hxx>
Definition at line 46 of file GuiExecutor.hxx.
GuiExecutor::~GuiExecutor |
( |
| ) |
|
|
virtual |
void GuiExecutor::addBreakpoint |
( |
std::string |
breakpoint | ) |
|
bool GuiExecutor::checkEndOfDataflow |
( |
bool |
display = true | ) |
|
void GuiExecutor::closeContext |
( |
| ) |
|
bool GuiExecutor::event |
( |
QEvent * |
e | ) |
|
|
virtual |
Definition at line 489 of file GuiExecutor.cxx.
References DEBTRACE, YACS::ENGINE::Node::getLocalInputPorts(), YACS::ENGINE::Node::getLocalOutputPorts(), YACS::HMI::YACSEvent::getYACSEvent(), CORBAEngineTest::i, YACS::PAUSED, YACS::HMI::PROGRESS, YACS::HMI::SubjectDataPort::setExecValue(), CORBAEngineTest::state, YACS::HMI::SubjectNode::update(), YACS::HMI::UPDATEPROGRESS, YACS::WAITINGTASKS, and YASSERT.
493 if (!yev)
return false;
502 if (
event ==
"executor")
504 int execState =
_procRef->getExecutorState();
505 list<string> nextSteps;
508 YACS_ORB::stringArray_var nstp =
_procRef->getTasksToLoad();
509 for (CORBA::ULong
i=0;
i<nstp->length();
i++)
510 nextSteps.push_back(nstp[
i].in());
527 if (
event ==
"progress") {
528 std::string progress =
_procRef->getNodeProgress(numid);
529 snode->setProgress( progress );
535 list<InputPort*>::iterator iti = inports.begin();
536 for ( ; iti != inports.end(); ++iti)
538 string val =
_procRef->getInPortValue(numid, (*iti)->getName().c_str());
539 DEBTRACE(
"node " << snode->getName() <<
" inport " << (*iti)->getName()
540 <<
" value " << val);
543 port->setExecValue(val);
547 list<OutputPort*>::iterator ito = outports.begin();
548 for ( ; ito != outports.end(); ++ito)
550 string val =
_procRef->getOutPortValue(numid, (*ito)->getName().c_str());
551 DEBTRACE(
"node " << snode->getName() <<
" outport " << (*ito)->getName()
552 <<
" value " << val);
555 port->setExecValue(val);
std::string GuiExecutor::getContainerLog |
( |
| ) |
|
Definition at line 434 of file GuiExecutor.cxx.
References DEBTRACE.
436 DEBTRACE(
"GuiExecutor::getContainerLog");
440 Engines::Container_var cont=
_engineRef->GetContainerRef();
441 CORBA::String_var logname = cont->logfilename();
444 std::string::size_type pos = msg.find(
":");
445 msg=msg.substr(pos+1);
int GuiExecutor::getExecutorState |
( |
| ) |
|
int YACS::HMI::GuiExecutor::getShutdownLevel |
( |
| ) |
|
|
inline |
bool YACS::HMI::GuiExecutor::isRunning |
( |
| ) |
const |
|
inline |
bool YACS::HMI::GuiExecutor::isStopOnError |
( |
| ) |
const |
|
inline |
void GuiExecutor::killDataflow |
( |
| ) |
|
void GuiExecutor::registerStatusObservers |
( |
| ) |
|
Definition at line 377 of file GuiExecutor.cxx.
References DEBTRACE.
379 DEBTRACE(
"GuiExecutor::registerStatusObservers");
382 DEBTRACE(
"Runtime error (yacsgui): Lost connection on YACS executor");
396 for ( std::list<Node*>::iterator it = aNodeSet.begin(); it != aNodeSet.end(); it++ )
void GuiExecutor::removeBreakpoint |
( |
std::string |
breakpoint | ) |
|
void GuiExecutor::resetDataflow |
( |
| ) |
|
void GuiExecutor::resumeDataflow |
( |
| ) |
|
void GuiExecutor::saveState |
( |
const std::string & |
xmlFile | ) |
|
void GuiExecutor::setBPList |
( |
| ) |
|
|
protected |
void GuiExecutor::setBreakpointList |
( |
std::list< std::string > |
breakpointList | ) |
|
void GuiExecutor::setBreakpointMode |
( |
| ) |
|
void GuiExecutor::setContinueMode |
( |
| ) |
|
void GuiExecutor::setEngineRef |
( |
YACS_ORB::YACS_Gen_ptr |
ref | ) |
|
void GuiExecutor::setLoadStateFile |
( |
std::string |
xmlFile | ) |
|
void GuiExecutor::setNextStepList |
( |
std::list< std::string > |
nextStepList | ) |
|
Definition at line 363 of file GuiExecutor.cxx.
References DEBTRACE, and CORBAEngineTest::i.
365 DEBTRACE(
"GuiExecutor::setNextStepList");
369 listOfNextStep.length(nextStepList.size());
371 for (list<string>::iterator it = nextStepList.begin(); it != nextStepList.end(); ++it)
372 listOfNextStep[i++] = (*it).c_str();
373 _procRef->setStepsToExecute(listOfNextStep);
void YACS::HMI::GuiExecutor::setShutdownLevel |
( |
int |
level | ) |
|
|
inline |
void GuiExecutor::setStepByStepMode |
( |
| ) |
|
void GuiExecutor::setStopOnError |
( |
bool |
aMode | ) |
|
void GuiExecutor::shutdownProc |
( |
| ) |
|
void GuiExecutor::startResumeDataflow |
( |
bool |
initialize = false | ) |
|
void GuiExecutor::stopDataflow |
( |
| ) |
|
void GuiExecutor::suspendDataflow |
( |
| ) |
|
void GuiExecutor::unsetStopOnError |
( |
| ) |
|
Definition at line 579 of file GuiExecutor.cxx.
References YACS::ACTIVATED, YACS::DONE, YACS::FAILED, YACS::FINISHED, YACS::ENGINE::Node::getLocalInputPorts(), YACS::ENGINE::Node::getLocalOutputPorts(), YACS::HMI::SubjectNode::getNode(), YACS::LOADED, YACS::NOTYETINITIALIZED, YACS::PAUSED, YACS::RUNNING, YACS::HMI::SubjectDataPort::setExecValue(), CORBAEngineTest::state, YACS::SUSPENDED, YACS::HMI::SubjectNode::update(), YACS::HMI::UPDATEPROGRESS, and YASSERT.
Referenced by YACS::HMI::BatchJobsListDialog::get_dump_file().
586 for ( std::list<Node*>::iterator it = aNodeSet.begin(); it != aNodeSet.end(); it++ ){
588 numid = (*it)->getNumId();
595 list<InputPort*>::iterator iti = inports.begin();
596 for ( ; iti != inports.end(); ++iti)
601 port->setExecValue(val);
605 list<OutputPort*>::iterator ito = outports.begin();
606 for ( ; ito != outports.end(); ++ito)
611 port->setExecValue(val);
620 if(jobState!=
"RUNNING")
std::list<std::string> YACS::HMI::GuiExecutor::_breakpointList |
|
protected |
YACS_ORB::YACS_Gen_var YACS::HMI::GuiExecutor::_engineRef |
|
protected |
bool YACS::HMI::GuiExecutor::_isRunning |
|
protected |
bool YACS::HMI::GuiExecutor::_isStopOnError |
|
protected |
bool YACS::HMI::GuiExecutor::_isSuspended |
|
protected |
std::string YACS::HMI::GuiExecutor::_loadStateFile |
|
protected |
YACS_ORB::Observer_var YACS::HMI::GuiExecutor::_observerRef |
|
protected |
YACS_ORB::ProcExec_var YACS::HMI::GuiExecutor::_procRef |
|
protected |
int YACS::HMI::GuiExecutor::_shutdownLevel |
|
protected |
The documentation for this class was generated from the following files: