76 std::map<int, std::string>
m;
77 m[1] =
"\nUse the [Ctrl] Drag_N_Drop method if you want to create a input/output link without the associated control link";
86 if(
ex.errNumber > 0 &&
ErrorMsg.count(
ex.errNumber) != 0)
89 GuiContext::getCurrent()->_lastErrorMessage =
ex.what() +
ErrorMsg[
ex.errNumber];
92 GuiContext::getCurrent()->_lastErrorMessage =
ex.what();
95 std::map<int, std::string> ProcInvoc::_typeNameMap;
99 ProcInvoc::ProcInvoc()
183 std::string position,
187 :
Command(), _catalog(catalog), _compoName(compo), _typeName(type),
188 _position(position), _name(name), _newCompoInst(newCompoInst), _swCase(swCase)
190 DEBTRACE(
"CommandAddNodeFromCatalog " << compo <<
" " << type <<
" " << position <<
" " << name);
213 DEBTRACE(
"CommandAddNodeFromCatalog::localExecute");
216 Node *nodeToClone = 0;
243 if (father && nodeToClone)
245 son = nodeToClone->
clone(0);
306 throw YACS::Exception(
"node from catalog is not correct: check if catalog is up to date!");
315 DEBTRACE(
"CommandAddNode::localExecute() : " <<
ex.what());
325 DEBTRACE(
"CommandAddNodeFromCatalog::localReverse");
356 DEBTRACE(
"CommandAddNodeFromCatalog::localReverse(): " <<
ex.what());
365 std::string newParent)
366 :
Command(), _position(position), _newParent(newParent)
380 DEBTRACE(
"CommandReparentNode::localExecute");
398 if (oldFather == newFather)
401 if (cnode->isInMyDescendance(newFather))
402 throw YACS::Exception(
"reparent a node to one of it's children is impossible");
403 if (
Loop *loop =
dynamic_cast<Loop*
>(newFather))
404 if (!loop->edGetDirectDescendants().empty())
407 if (dpl->getExecNode() != NULL)
408 throw YACS::Exception(
"Already an execution node in the new parent of type dynamic loop");
409 Node *nodeSameName = 0;
418 throw YACS::Exception(
"there is already a child of same name in the new parent");
444 DEBTRACE(
"CommandReparentNode::localExecute() : " <<
ex.what());
494 DEBTRACE(
"CommandReparentNode::localReverse() : " <<
ex.what());
508 std::string newParent,
510 bool toSaveRestoreLinks)
511 :
Command(), _position(position), _newParent(newParent), _type(type), _toSaveRestoreLinks(toSaveRestoreLinks)
527 DEBTRACE(
"CommandPutInComposedNode::localExecute");
555 Node* composednode = 0;
557 for (list<Node*>::iterator it = children.begin(); it != children.end(); ++it)
562 composednode = (*it);
589 (
dynamic_cast<SubjectComposedNode*
>(scomposednode))->houseKeepingAfterCutPaste(
false, snode);
600 DEBTRACE(
"CommandPutInComposedNode::localExecute() : " <<
ex.what());
614 DEBTRACE(
"CommandPutInComposedNode::localReverse");
660 DEBTRACE(
"CommandPutInComposedNode::localReverse() : " <<
ex.what());
669 std::string position,
670 std::string newParent,
672 :
Command(), _fromproc(fromproc), _position(position), _newParent(newParent), _newName(
""), _clone(0), _case(swCase)
690 DEBTRACE(
"CommandCopyNode::localExecute");
708 if (
Loop *loop =
dynamic_cast<Loop*
>(newFather))
709 if (!loop->edGetDirectDescendants().empty())
716 bool sameName =
true;
743 if(theswitch->edGetNode(
_case))
746 theCase=theswitch->getMaxCase()+1;
748 theswitch->edSetNode(theCase,
_clone);
764 DEBTRACE(
"CommandCopyNode::localExecute() : " <<
ex.what());
798 DEBTRACE(
"CommandCopyNode::localReverse(): " <<
ex.what());
808 :
Command(), _position(position), _name(name)
823 DEBTRACE(
"CommandRenameNode::localExecute");
841 DEBTRACE(
"CommandRenameNode::localExecute() : " <<
ex.what());
850 DEBTRACE(
"CommandRenameNode::localReverse");
864 DEBTRACE(
"CommandRenameNode::localReverse() : " <<
ex.what());
874 :
Command(), _oldName(oldName), _newName(newName)
887 DEBTRACE(
"CommandRenameContainer::localExecute");
904 scont-> update(
RENAME, 0, scont);
909 DEBTRACE(
"CommandRenameContainer::localExecute() : " <<
ex.what());
913 return (container != 0);
918 DEBTRACE(
"CommandRenameContainer::localReverse");
930 scont-> update(
RENAME, 0, scont);
935 DEBTRACE(
"CommandRenameContainer::localReverse() : " <<
ex.what());
939 return (container != 0);
947 :
Command(), _position(position), _oldName(oldName), _newName(newName), _portType(portType)
949 DEBTRACE(
"CommandRenameInDataPort::CommandRenameInDataPort "
961 DEBTRACE(
"CommandRenameInDataPort::localExecute");
978 throw Exception(
"there is already a port with the new name");
991 DEBTRACE(
"CommandRenameInDataPort::localExecute() : " <<
ex.what());
1000 DEBTRACE(
"CommandRenameInDataPort::localReverse");
1017 throw Exception(
"there is already a port with the old name");
1030 DEBTRACE(
"CommandRenameInDataPort::localReverse() : " <<
ex.what());
1040 std::string oldName,
1042 :
Command(), _position(position), _oldName(oldName), _newName(newName), _portType(portType)
1044 DEBTRACE(
"CommandRenameOutDataPort::CommandRenameOutDataPort "
1056 DEBTRACE(
"CommandRenameOutDataPort::localExecute");
1072 throw Exception(
"there is already a port with the new name");
1085 DEBTRACE(
"CommandRenameOutDataPort::localExecute() : " <<
ex.what());
1094 DEBTRACE(
"CommandRenameOutDataPort::localReverse");
1110 throw Exception(
"there is already a port with the old name");
1123 DEBTRACE(
"CommandRenameOutDataPort::localReverse() : " <<
ex.what());
1133 std::string typeName)
1134 :
Command(), _catalog(catalog), _typeName(typeName)
1136 DEBTRACE(
"CommandAddDataTypeFromCatalog::CommandAddDataTypeFromCatalog: " << typeName);
1141 string ret =
"CommandAddDataTypeFromCatalog " +
_typeName;
1155 DEBTRACE(
"CommandAddDataTypeFromCatalog::localExecute");
1179 DEBTRACE(
"CommandAddDataTypeFromCatalog::localReverse");
1188 DEBTRACE(
"CommandAddDataTypeFromCatalog::localReverse(): " <<
ex.what());
1201 :
Command(), _catalog(catalog), _typePort(type), _node(node), _name(name)
1225 DEBTRACE(
"CommandAddInputPortFromCatalog::localExecute");
1253 DEBTRACE(
"CommandAddInputPortFromCatalog::localExecute() : " <<
ex.what());
1255 if (son)
delete son;
1263 DEBTRACE(
"CommandAddInputPortFromCatalog::localReverse");
1290 DEBTRACE(
"CommandAddInputPortFromCatalog::localReverse(): " <<
ex.what());
1302 :
Command(), _catalog(catalog), _typePort(type), _node(node), _name(name)
1326 DEBTRACE(
"CommandAddOutputPortFromCatalog::localExecute");
1354 DEBTRACE(
"CommandAddOutputPortFromCatalog::localExecute() : " <<
ex.what());
1356 if (son)
delete son;
1364 DEBTRACE(
"CommandAddOutputPortFromCatalog::localReverse");
1391 DEBTRACE(
"CommandAddOutputPortFromCatalog::localReverse(): " <<
ex.what());
1403 :
Command(), _catalog(catalog), _typePort(type), _node(node), _name(name)
1417 DEBTRACE(
"CommandAddIDSPortFromCatalog");
1428 DEBTRACE(
"CommandAddIDSPortFromCatalog::localExecute");
1452 DEBTRACE(
"CommandAddIDSPortFromCatalog::localExecute() : " <<
ex.what());
1454 if (son)
delete son;
1462 DEBTRACE(
"CommandAddIDSPortFromCatalog::localReverse");
1489 DEBTRACE(
"CommandAddIDSPortFromCatalog::localReverse(): " <<
ex.what());
1501 :
Command(), _catalog(catalog), _typePort(type), _node(node), _name(name)
1503 DEBTRACE(
"CommandAddODSPortFromCatalog");
1526 DEBTRACE(
"CommandAddODSPortFromCatalog::localExecute");
1550 DEBTRACE(
"CommandAddODSPortFromCatalog::localExecute() : " <<
ex.what());
1552 if (son)
delete son;
1560 DEBTRACE(
"CommandAddODSPortFromCatalog::localReverse");
1587 DEBTRACE(
"CommandAddODSPortFromCatalog::localReverse(): " <<
ex.what());
1601 :
Command(), _node(node), _port(port), _isUp(isUp), _rank(-1)
1603 DEBTRACE(
"CommandOrderInputPorts");
1610 string ret =
"CommandOrderInputPorts " +
_node +
" " +
_port +
" " + s.str();
1623 if (!father)
return false;
1628 list<InputPort*>::iterator pos = find(plist.begin(), plist.end(), portToMove);
1633 if(pos == plist.begin())
1636 do { pos--; isUp--; }
while (isUp);
1641 if (pos == plist.end())
1642 pos = plist.begin();
1648 if (pos != plist.end())
1649 portBefore = (*pos);
1651 plist.remove(portToMove);
1655 pos = find(plist.begin(), plist.end(), portBefore);
1657 for (list<InputPort*>::iterator it = plist.begin(); it != pos; ++it)
1659 plist.insert(pos, portToMove);
1663 _rank = plist.size();
1664 plist.push_back(portToMove);
1675 DEBTRACE(
"CommandOrderInputPorts::localExecute() : " <<
ex.what());
1679 return (father != 0);
1688 int isUpRev = -
_isUp;
1689 if (isUpRev == 0) isUpRev =1;
1693 if (!father)
return false;
1698 list<InputPort*>::iterator pos = find(plist.begin(), plist.end(), portToMove);
1702 if(pos == plist.begin())
1705 do { pos--; isUpRev--; }
while (isUpRev);
1710 if (pos == plist.end())
1711 pos = plist.begin();
1713 do { pos++; isUpRev++; }
while (isUpRev<0);
1717 if (pos != plist.end())
1718 portBefore = (*pos);
1720 plist.remove(portToMove);
1724 pos = find(plist.begin(), plist.end(), portBefore);
1726 for (list<InputPort*>::iterator it = plist.begin(); it != pos; ++it)
1728 plist.insert(pos, portToMove);
1732 _rank = plist.size();
1733 plist.push_back(portToMove);
1744 DEBTRACE(
"CommandOrderInputPorts::localExecute() : " <<
ex.what());
1748 return (father != 0);
1759 :
Command(), _node(node), _port(port), _isUp(isUp), _rank(-1)
1761 DEBTRACE(
"CommandOrderOutputPorts");
1768 string ret =
"CommandOrderOutputPorts " +
_node +
" " +
_port +
" " + s.str();
1781 if (!father)
return false;
1786 list<OutputPort*>::iterator pos = find(plist.begin(), plist.end(), portToMove);
1791 if(pos == plist.begin())
1794 do { pos--; isUp--; }
while (isUp);
1799 if (pos == plist.end())
1800 pos = plist.begin();
1806 if (pos != plist.end())
1807 portBefore = (*pos);
1809 plist.remove(portToMove);
1813 pos = find(plist.begin(), plist.end(), portBefore);
1815 for (list<OutputPort*>::iterator it = plist.begin(); it != pos; ++it)
1817 plist.insert(pos, portToMove);
1821 _rank = plist.size();
1822 plist.push_back(portToMove);
1833 DEBTRACE(
"CommandOrderOutputPorts::localExecute() : " <<
ex.what());
1837 return (father != 0);
1846 int isUpRev = -
_isUp;
1847 if (isUpRev == 0) isUpRev =1;
1851 if (!father)
return false;
1856 list<OutputPort*>::iterator pos = find(plist.begin(), plist.end(), portToMove);
1860 if(pos == plist.begin())
1863 do { pos--; isUpRev--; }
while (isUpRev);
1868 if (pos == plist.end())
1869 pos = plist.begin();
1871 do { pos++; isUpRev++; }
while (isUpRev<0);
1875 if (pos != plist.end())
1876 portBefore = (*pos);
1878 plist.remove(portToMove);
1882 pos = find(plist.begin(), plist.end(), portBefore);
1884 for (list<OutputPort*>::iterator it = plist.begin(); it != pos; ++it)
1886 plist.insert(pos, portToMove);
1890 _rank = plist.size();
1891 plist.push_back(portToMove);
1902 DEBTRACE(
"CommandOrderOutputPorts::localExecute() : " <<
ex.what());
1906 return (father != 0);
1912 std::string startnode, std::string startport,
TypeOfElem startportType,
1913 std::string endnode, std::string endport,
TypeOfElem endportType)
1914 :
Command(), _elemType(elemType), _startnode(startnode), _startport(startport),
1915 _endnode(endnode), _endport(endport), _startportType(startportType), _endportType(endportType)
1917 DEBTRACE(
"CommandDestroy::CommandDestroy");
1931 DEBTRACE(
"CommandDestroy::localExecute");
2022 pair<OutPort*,InPort*> keymap = pair<OutPort*,InPort*>(outp,inp);
2032 pair<Node*,Node*> keymap = pair<Node*,Node*>(outn,inn);
2048 throw Exception(
"Command Destroy not implemented for that type");
2063 DEBTRACE(
"CommandDestroy::localExecute() : " <<
ex.what());
2071 DEBTRACE(
"CommandDestroy::localReverse");
2081 :
Command(), _node(node), _port(port), _value(value)
2083 DEBTRACE(
"CommandSetInPortValue::CommandSetInPortValue " << node <<
" " << port <<
" " << value);
2095 DEBTRACE(
"CommandSetInPortValue::localExecute");
2108 dnode =
dynamic_cast<DataNode*
>(node);
2114 DEBTRACE(
"CommandSetInPortValue::localExecute() : " <<
ex.what());
2130 PyGILState_STATE gstate = PyGILState_Ensure();
2138 strval =
"\"" +
_value +
"\"";
2142 inp->
edInit(
"Python", result);
2145 PyGILState_Release(gstate);
2151 DEBTRACE(
"CommandSetInPortValue::localExecute() : " <<
ex.what());
2153 PyGILState_Release(gstate);
2161 DEBTRACE(
"CommandSetInPortValue::localReverse");
2174 dnode =
dynamic_cast<DataNode*
>(node);
2180 DEBTRACE(
"CommandSetInPortValue::localExecute() : " <<
ex.what());
2196 PyObject *result = Py_None;
2197 PyGILState_STATE gstate = PyGILState_Ensure();
2212 inp->
edInit(
"Python", result);
2214 PyGILState_Release(gstate);
2220 DEBTRACE(
"CommandSetInPortValue::localExecute() : " <<
ex.what());
2222 PyGILState_Release(gstate);
2233 :
Command(), _node(node), _port(port), _value(value)
2235 DEBTRACE(
"CommandSetOutPortValue::CommandSetOutPortValue " << node <<
" " << port <<
" " << value);
2241 string ret =
"CommandSetOutPortValue " +
_node +
" " +
_port +
" " +
_value;
2247 DEBTRACE(
"CommandSetOutPortValue::localExecute");
2259 dnode =
dynamic_cast<DataNode*
>(node);
2265 DEBTRACE(
"CommandSetOutPortValue::localExecute() : " <<
ex.what());
2270 if (!outpp && !outsp)
2272 DEBTRACE(
"Set value on output port only possible on a presetPort or a studyPort");
2279 DEBTRACE(
"Set value on output port only possible on a dataNode");
2302 strval =
"\"" +
_value +
"\"";
2309 DEBTRACE(
"CommandSetOutPortValue::localExecute() : " <<
ex.what());
2315 PyGILState_STATE gstate = PyGILState_Ensure();
2326 DEBTRACE(
"CommandSetOutPortValue::localExecute() : " <<
ex.what());
2329 PyGILState_Release(gstate);
2334 PyGILState_Release(gstate);
2340 DEBTRACE(
"CommandSetOutPortValue::localReverse");
2352 dnode =
dynamic_cast<DataNode*
>(node);
2358 DEBTRACE(
"CommandSetOutPortValue::localExecute() : " <<
ex.what());
2363 if (!outpp && !outsp)
2365 DEBTRACE(
"Set value on output port only possible on a presetPort or a studyPort");
2372 DEBTRACE(
"Set value on output port only possible on a dataNode");
2388 PyObject *result = Py_None;
2398 strval =
"\"" +
_value +
"\"";
2406 DEBTRACE(
"CommandSetOutPortValue::localExecute() : " <<
ex.what());
2412 PyGILState_STATE gstate = PyGILState_Ensure();
2423 DEBTRACE(
"CommandSetOutPortValue::localExecute() : " <<
ex.what());
2426 PyGILState_Release(gstate);
2431 PyGILState_Release(gstate);
2439 :
Command(), _switch(aSwitch), _value(value)
2441 DEBTRACE(
"CommandSetSwitchSelect::CommandSetSwitchSelect");
2447 string ret =
"CommandSetSwitchSelect " +
_switch +
" " +
_value;
2453 DEBTRACE(
"CommandSetSwitchSelect::localExecute");
2461 int val = atoi(
_value.c_str());
2469 DEBTRACE(
"CommandSetSwitchSelect::localExecute() : " <<
ex.what());
2478 DEBTRACE(
"CommandSetSwitchSelect::localReverse");
2492 DEBTRACE(
"CommandSetSwitchSelect::localReverse() : " <<
ex.what());
2504 :
Command(), _switch(aSwitch), _node(node), _value(value)
2506 DEBTRACE(
"CommandSetSwitchCase::CommandSetSwitchCase");
2519 DEBTRACE(
"CommandSetSwitchCase::localExecute");
2522 DEBTRACE(
"CommandSetSwitchCase::localExecute");
2526 int val = atoi(
_value.c_str());
2529 throw YACS::Exception(
"Set Switch Case impossible: value already used");
2535 DEBTRACE(
"CommandSetSwitchCase::localExecute OK " << val);
2545 DEBTRACE(
"CommandSetSwitchCase::localExecute() : " <<
ex.what());
2553 DEBTRACE(
"CommandSetSwitchCase::localReverse");
2556 DEBTRACE(
"CommandSetSwitchCase::localReverse");
2563 throw YACS::Exception(
"Set Switch Case impossible: value already used");
2567 DEBTRACE(
"CommandSetSwitchCase::localReverse OK " << val);
2577 DEBTRACE(
"CommandSetSwitchCase::localReverse() : " <<
ex.what());
2587 :
Command(), _forLoop(forLoop), _value(value)
2589 DEBTRACE(
"CommandSetForLoopSteps::CommandSetForLoopSteps");
2602 DEBTRACE(
"CommandSetForLoopSteps::localExecute");
2605 DEBTRACE(
"CommandSetForLoopSteps::localExecute");
2610 int val = atoi(
_value.c_str());
2619 DEBTRACE(
"CommandSetForLoopSteps::localExecute() : " <<
ex.what());
2627 DEBTRACE(
"CommandSetForLoopSteps::localReverse");
2630 DEBTRACE(
"CommandSetForLoopSteps::localReverse");
2642 DEBTRACE(
"CommandSetForLoopSteps::localReverse() : " <<
ex.what());
2652 :
Command(), _whileLoop(whileLoop), _value(value)
2654 DEBTRACE(
"CommandSetWhileCondition::CommandSetWhileCondition");
2666 DEBTRACE(
"CommandSetWhileCondition::localExecute");
2673 bool val = atoi(
_value.c_str());
2682 DEBTRACE(
"CommandSetWhileCondition::localExecute() : " <<
ex.what());
2690 DEBTRACE(
"CommandSetWhileCondition::localReverse");
2704 DEBTRACE(
"CommandSetWhileCondition::localReverse() : " <<
ex.what());
2714 :
Command(), _forEach(forEach), _value(value)
2716 DEBTRACE(
"CommandSetForEachBranch::CommandSetForEachBranch");
2722 string ret =
"CommandSetForEachBranch " +
_forEach +
" " +
_value;
2728 DEBTRACE(
"CommandSetForEachBranch::localExecute");
2735 int val = atoi(
_value.c_str());
2747 DEBTRACE(
"CommandSetForEachBranch::localExecute() : " <<
ex.what());
2755 DEBTRACE(
"CommandSetForEachBranch::localReverse");
2772 DEBTRACE(
"CommandSetForEachBranch::localReverse() : " <<
ex.what());
2781 :
Command(), _optimizer(optimizer), _alglib(alglib), _symbol(symbol)
2796 DEBTRACE(
"CommandSetAlgo::localExecute");
2819 DEBTRACE(
"CommandSetAlgo::localExecute() : " <<
ex.what());
2827 DEBTRACE(
"CommandSetAlgo::localReverse");
2848 DEBTRACE(
"CommandSetAlgo::localReverse() : " <<
ex.what());
2858 std::string inNode, std::string inPort,
TypeOfElem inPortType,
bool control)
2859 :
Command(), _outNode(outNode), _outPort(outPort), _outPortType(outPortType),
2860 _inNode(inNode), _inPort(inPort), _inPortType(inPortType), _control(control)
2862 DEBTRACE(
"CommandAddLink::CommandAddLink "<<outNode<<
"."<<outPort<<
"->"<<inNode<<
"."<<inPort<<
" "<<control);
2876 DEBTRACE(
"CommandAddLink::localExecute");
2887 bool preexistingControl =
false;
2891 ComposedNode* father = ComposedNode::getLowestCommonAncestor(outn2,inn2);
2892 if(outn2==father || inn2==father)
2893 preexistingControl =
true;
2903 preexistingControl =
true;
2940 ComposedNode* father = ComposedNode::getLowestCommonAncestor(outn,inn);
2941 if(outn==father || inn==father)
return true;
2950 if (!preexistingControl)
2952 pair<Node*,Node*> keyLink(outn,inn);
2957 if (!sfno || !sfni)
return true;
2966 DEBTRACE(
"CommandAddLink::localExecute() : " <<
ex.what());
2974 DEBTRACE(
"CommandAddLink::localReverse");
3024 DEBTRACE(
"CommandAddLink::localReverse(): " <<
ex.what());
3033 :
Command(), _outNode(outNode), _inNode(inNode)
3035 DEBTRACE(
"CommandAddControlLink::CommandAddControlLink "<<outNode<<
"-->>"<<inNode);
3046 DEBTRACE(
"CommandAddControlLink::localExecute");
3056 ComposedNode *cla = ComposedNode::getLowestCommonAncestor(outn,inn);
3062 cla = ComposedNode::getLowestCommonAncestor(outn->
getFather(),
3075 DEBTRACE(
"CommandAddControlLink::localExecute() : " <<
ex.what());
3083 DEBTRACE(
"CommandAddControlLink::localReverse");
3106 DEBTRACE(
"CommandAddControlLink::localReverse(): " <<
ex.what());
3115 :
Command(), _name(name), _containerToClone(refContainer), _subcont(0)
3117 DEBTRACE(
"CommandAddContainerBase::CommandAddContainerBase " << name <<
" " << refContainer);
3126 DEBTRACE(
"CommandAddContainerBase::localExecute");
3160 DEBTRACE(
"CommandAddContainerBase::localExecute() : " <<
ex.what());
3168 DEBTRACE(
"CommandAddContainerBase::localReverse");
3183 DEBTRACE(
"CommandAddContainer::localExecute() : " <<
ex.what());
3226 :
Command(), _position(position), _properties(properties)
3228 DEBTRACE(
"CommandSetNodeProperties::CommandSetNodeProperties " << position);
3234 string ret =
"CommandSetNodeProperties " +
_position;
3240 DEBTRACE(
"CommandSetNodeProperties::localExecute");
3261 DEBTRACE(
"CommandSetNodeProperties::localExecute() : " <<
ex.what());
3269 DEBTRACE(
"CommandSetNodeProperties::localReverse");
3289 DEBTRACE(
"CommandSetNodeProperties::localReverse() : " <<
ex.what());
3298 std::map<std::string,std::string> properties)
3299 :
Command(), _compoinstance(compoinstance), _properties(properties)
3301 DEBTRACE(
"CommandSetComponentInstanceProperties::CommandSetComponentInstanceProperties " << compoinstance);
3307 string ret =
"CommandSetComponentInstanceProperties " +
_compoinstance;
3313 DEBTRACE(
"CommandSetComponentInstanceProperties::localExecute");
3324 ref->setAnonymous(
false);
3334 DEBTRACE(
"CommandSetComponentInstanceProperties::localExecute() : " <<
ex.what());
3342 DEBTRACE(
"CommandSetComponentInstanceProperties::localReverse");
3361 DEBTRACE(
"CommandSetComponentInstanceProperties::localReverse() : " <<
ex.what());
3370 std::map<std::string,std::string> properties)
3371 :
Command(), _container(container), _properties(properties)
3373 DEBTRACE(
"CommandSetContainerProperties::CommandSetContainerProperties " << container);
3379 string ret =
"CommandSetContainerProperties " +
_container;
3385 DEBTRACE(
"CommandSetContainerProperties::localExecute");
3405 DEBTRACE(
"CommandSetContainerProperties::localExecute() : " <<
ex.what());
3413 DEBTRACE(
"CommandSetContainerProperties::localReverse");
3429 DEBTRACE(
"CommandSetContainerProperties::localReverse() : " <<
ex.what());
3438 std::map<std::string,std::string> properties)
3439 :
Command(), _nodeName(node), _portName(port), _isInport(isInport), _properties(properties)
3441 DEBTRACE(
"CommandSetDSPortProperties::CommandSetDSPortProperties " << node <<
"." << port <<
" " << isInport);
3455 DEBTRACE(
"CommandSetDSPortProperties::localExecute");
3471 DEBTRACE(
"CommandSetDSPortProperties::localExecute() : " <<
ex.what());
3479 DEBTRACE(
"CommandSetDSPortProperties::localReverse");
3494 DEBTRACE(
"CommandSetDSPortProperties::localReverse() : " <<
ex.what());
3503 std::string endnode, std::string endport,
3504 std::map<std::string,std::string> properties)
3505 :
Command(), _startNodeName(startnode), _startPortName(startport),
3506 _endNodeName(endnode), _endPortName(endport),
3507 _properties(properties)
3509 DEBTRACE(
"CommandSetLinkProperties::CommandSetLinkProperties " );
3521 DEBTRACE(
"CommandSetLinkProperties::localExecute");
3538 std::pair<OutPort*,InPort*> keymap = std::pair<OutPort*,InPort*>(outDSPort,inDSPort);
3545 DEBTRACE(
"CommandSetDSPortProperties::localExecute() : " <<
ex.what());
3553 DEBTRACE(
"CommandSetLinkProperties::localReverse");
3569 std::pair<OutPort*,InPort*> keymap = std::pair<OutPort*,InPort*>(outDSPort,inDSPort);
3576 DEBTRACE(
"CommandSetDSPortProperties::localReverse() : " <<
ex.what());
3585 :
Command(), _nodeName(node), _funcName(funcName)
3587 DEBTRACE(
"CommandSetFuncNodeFunctionName::CommandSetFuncNodeFunctionName " << node <<
" " <<funcName);
3599 DEBTRACE(
"CommandSetFuncNodeFunctionName::localExecute");
3623 DEBTRACE(
"CommandSetFuncNodeFunctionName::localExecute() : " <<
ex.what());
3631 DEBTRACE(
"CommandSetFuncNodeFunctionName::localReverse");
3649 DEBTRACE(
"CommandSetFuncNodeFunctionName::localReverse() : " <<
ex.what());
3658 :
Command(), _nodeName(node), _script(script)
3660 DEBTRACE(
"CommandSetInlineNodeScript::CommandSetInlineNodeScript " << node <<
" " <<script);
3666 string ret =
"CommandSetInlineNodeScript " +
_nodeName;
3672 DEBTRACE(
"CommandSetInlineNodeScript::localExecute");
3685 inlineNode->setScript(
_script);
3699 DEBTRACE(
"CommandSetInlineNodeScript::localExecute() : " <<
ex.what());
3707 DEBTRACE(
"CommandSetInlineNodeScript::localReverse");
3728 DEBTRACE(
"CommandSetInlineNodeScript::localExecute() : " <<
ex.what());
3737 std::string container,
3739 :
Command(), _compoName(compoName), _container(container), _name(name), _subcompo(0)
3770 DEBTRACE(
"CommandAddComponentInstance::localExecute() : " <<
ex.what());
3778 DEBTRACE(
"CommandAddComponentInstance::localReverse");
3797 DEBTRACE(
"CommandAddComponentInstance::localReverse() : " <<
ex.what());
3805 :
Command(), _mode(mode),_nodeName(nodeName)
3807 DEBTRACE(
"CommandSetExecutionMode::CommandSetExecutionMode " << nodeName <<
" " << mode);
3813 string ret =
"CommandSetExecutionMode " +
_mode +
" " +
_nodeName;
3819 DEBTRACE(
"CommandSetExecutionMode::localExecute");
3826 _oldmode = pyNode->getExecutionMode();
3827 pyNode->setExecutionMode(
_mode);
3840 DEBTRACE(
"CommandSetExecutionMode::localExecute() : " <<
ex.what());
3848 DEBTRACE(
"CommandSetExecutionMode::localReverse");
3856 pyNode->setExecutionMode(
_oldmode);
3869 DEBTRACE(
"CommandSetExecutionMode::localReverse() : " <<
ex.what());
3880 :
Command(), _container(container),_nodeName(nodeName)
3882 DEBTRACE(
"CommandSetContainer::CommandSetContainer " << nodeName <<
" " << container);
3894 DEBTRACE(
"CommandSetContainer::localExecute");
3904 Container* oldcont = pyNode->getContainer();
3906 _oldcont = pyNode->getContainer()->getName();
3907 pyNode->setContainer(cont);
3925 DEBTRACE(
"CommandSetContainer::localExecute() : " <<
ex.what());
3933 DEBTRACE(
"CommandSetContainer::localReverse");
3944 pyNode->setContainer(cont);
3962 DEBTRACE(
"CommandSetContainer::localReverse() : " <<
ex.what());
3974 std::string container)
3975 :
Command(), _container(container),_instanceName(instanceName)
3977 DEBTRACE(
"CommandAssociateComponentToContainer::CommandAssociateComponentToContainer " << instanceName <<
" " << container);
3989 DEBTRACE(
"CommandAssociateComponentToContainer::localExecute");
4025 DEBTRACE(
"CommandAssociateComponentToContainer::localExecute() : " <<
ex.what());
4033 DEBTRACE(
"CommandAssociateComponentToContainer::localReverse");
4068 DEBTRACE(
"CommandAssociateComponentToContainer::localReverse() : " <<
ex.what());
4078 std::string instanceName)
4079 :
Command(), _service(service), _instanceName(instanceName)
4081 DEBTRACE(
"CommandAssociateServiceToComponent::CommandAssociateServiceToComponent "<< service <<
" " <<instanceName);
4093 DEBTRACE(
"CommandAssociateServiceToComponent::localExecute");
4105 service->setComponent(compo);
4136 DEBTRACE(
"CommandAssociateServiceToComponent::localExecute() : " <<
ex.what());
4144 DEBTRACE(
"CommandAssociateServiceToComponent::localReverse");
4171 service->setComponent(compo);
4193 DEBTRACE(
"CommandAssociateServiceToComponent::localReverse() : " <<
ex.what());
4202 std::string position,
4204 std::string service)
4205 :
Command(), _catalog(catalog), _position(position), _compo(compo), _service(service)
4207 DEBTRACE(
"CommandAddComponentFromCatalog::CommandAddComponentFromCatalog " << position <<
" " << compo <<
" " << service);
4220 DEBTRACE(
"CommandAddComponentFromCatalog::localExecute");
4263 DEBTRACE(
"CommandAddComponentFromCatalog::localExecute() : " <<
ex.what());
4271 DEBTRACE(
"CommandAddComponentFromCatalog::localReverse");
4290 throw YACS::Exception(
"Component instance with services attached, not removed");
4306 DEBTRACE(
"CommandAddComponentFromCatalog::localReverse() : " <<
ex.what());
#define YASSERT(val)
YASSERT macro is always defined, used like assert, but throw a YACS::Exception instead of abort.
Composed node to group elementary and composed nodes.
std::list< Node * > getChildren() const
Class for CORBA Service Node.
std::map< std::string, ComposedNode * > _composednodeMap
std::map< std::string, ComponentDefinition * > _componentMap
std::map< std::string, Node * > _nodeMap
std::map< std::string, TypeCode * > _typeMap
Base class for component definition.
std::map< std::string, ServiceNode * > _serviceMap
Base class for all component instances.
virtual bool setContainer(Container *cont)
void setName(const std::string &name)
virtual ComponentInstance * cloneAlways() const =0
Container * getContainer() const
const std::string & getCompoName() const
const std::string & getInstanceName() const
Base class for all composed nodes.
std::string getChildName(const Node *node) const
Node * getChildByName(const std::string &name) const
std::string getName() const
virtual void edRemoveChild(Node *node)
Remove a child node.
virtual bool edAddDFLink(OutPort *start, InPort *end)
Connect an OutPort to an InPort and add the necessary control link.
virtual bool edAddChild(Node *DISOWNnode)
bool edAddCFLink(Node *nodeS, Node *nodeE)
Add a controlflow link between two nodes.
bool edAddLink(OutPort *start, InPort *end)
Add a dataflow link between two data ports.
void setName(std::string name)
WARNING ! name is used in edition to identify different containers, it is not the runtime name of the...
virtual void setProperties(const std::map< std::string, std::string > &properties)
virtual std::string getName() const
Class for C++ Nodes (in process component)
Class for data parameters specification.
virtual void setData(InputPort *port, const std::string &data)
virtual std::string getAsString()
returns port value as a string that can be used in a GUI for example
TypeCode * edGetType() const
void setName(std::string theName)
std::string getName() const
std::map< std::string, std::string > getProperties() const
virtual void setProperties(std::map< std::string, std::string > properties)
Set the values of all properties of the port.
Base class for dynamically (fully or semifully) built graphs.
OutputPort * edGetSamplePort()
Base class for all calculation nodes.
virtual OutputDataStreamPort * edAddOutputDataStreamPort(const std::string &outputPortDSName, TypeCode *type)
InputPort * getInputPort(const std::string &name) const
std::list< OutputPort * > getSetOfOutputPort() const
OutputDataStreamPort * getOutputDataStreamPort(const std::string &name) const
OutputPort * getOutputPort(const std::string &name) const
virtual InputPort * edAddInputPort(const std::string &inputPortName, TypeCode *type)
std::list< InputPort * > getSetOfInputPort() const
virtual InputDataStreamPort * edAddInputDataStreamPort(const std::string &inputPortDSName, TypeCode *type)
InputDataStreamPort * getInputDataStreamPort(const std::string &name) const
virtual void edOrderInputPorts(const std::list< InputPort * > &ports)
virtual void edOrderOutputPorts(const std::list< OutputPort * > &ports)
virtual OutputPort * edAddOutputPort(const std::string &outputPortName, TypeCode *type)
InputPort * edGetNbOfTimesInputPort()
Class for calculation node (function) inlined (and executed) in the schema.
Class for calculation node (script) inlined (and executed) in the schema.
Base class for loop node.
Base class for all nodes.
virtual InputDataStreamPort * getInputDataStreamPort(const std::string &name) const =0
std::string getQualifiedName() const
same as Node::getName() in most cases, but differs for children of switch
void setName(const std::string &name)
Change the name of the node.
Node * clone(ComposedNode *father, bool editionOnly=true) const
This method MUST NEVER BE VIRTUAL
ComposedNode * getFather() const
std::map< std::string, std::string > getPropertyMap()
virtual void setProperties(std::map< std::string, std::string > properties)
Node * cloneWithoutCompAndContDeepCpy(ComposedNode *father, bool editionOnly=true) const
This method MUST NEVER BE VIRTUAL
const std::string & getName() const
virtual InputPort * getInputPort(const std::string &name) const
virtual OutputPort * getOutputPort(const std::string &name) const =0
virtual OutputDataStreamPort * getOutputDataStreamPort(const std::string &name) const =0
class to build optimization loops
virtual void setAlgorithm(const std::string &alglib, const std::string &symbol, bool checkLinks=true, Proc *procForTypes=NULL)
Set the algorithm library name and factory name (symbol in library) to create the algorithm and chang...
InputPort * edGetPortForOutPool()
bool isAlreadyInSet(InGate *inGate) const
Class for PRESET output Ports.
virtual std::string getAsString()
returns port value as a string that can be used in a GUI for example
Class for Study output Ports.
virtual std::string getAsString()
returns port value as a string that can be used in a GUI for example
Base class for all schema objects.
std::map< std::string, TypeCode * > typeMap
virtual void removeComponentInstance(ComponentInstance *inst)
Remove a componentInstance from the componentInstanceMap.
std::map< std::string, Container * > containerMap
virtual void addComponentInstance(ComponentInstance *inst, const std::string &name="", bool resetCtr=false)
Add a ComponentInstance into componentInstanceMap.
std::map< std::string, ComponentInstance * > componentInstanceMap
virtual PyObject * convertStringToPyObject(const std::string &s)
Catalog * getBuiltinCatalog()
Get the catalog of base nodes (elementary and composed)
Class for Salome component instance.
Class for Salome component Service Node.
Class for calculation node associated with a component service.
virtual void setComponent(ComponentInstance *compo)
Associate an existing component instance to this service node AND check the consistency regarding the...
virtual ComponentInstance * getComponent()
Return the associated component instance.
Control node that emulates the C switch.
InputPort * edGetConditionPort()
Node * edGetNode(int caseId)
void edChangeCase(int oldCase, int newCase)
Change the case of a node.
int getRankOfNode(Node *node) const
Base class for all type objects.
virtual int isA(const char *repositoryId) const
InputPort * edGetConditionPort()
YACS::ENGINE::Catalog * _catalog
CommandAddComponentFromCatalog(YACS::ENGINE::Catalog *catalog, std::string position, std::string compo, std::string service)
virtual bool localReverse()
virtual std::string dump()
virtual bool localExecute()
virtual std::string dump()
virtual bool localReverse()
virtual bool localExecute()
CommandAddComponentInstance(std::string compoName, std::string container, std::string name="")
SubjectComponent * _subcompo
virtual YACS::ENGINE::Container * createNewInstance() const =0
virtual bool localReverse()
CommandAddContainerBase(std::string name, std::string refContainer)
SubjectContainerBase * _subcont
virtual bool localExecute()
virtual ~CommandAddContainerBase()
std::string _containerToClone
CommandAddContainer(std::string name, std::string refContainer="")
YACS::ENGINE::Container * createNewInstance() const
CommandAddControlLink(std::string outNode, std::string inNode)
virtual bool localReverse()
virtual bool localExecute()
virtual std::string dump()
virtual bool localExecute()
YACS::ENGINE::TypeCode * getTypeCode()
virtual std::string dump()
CommandAddDataTypeFromCatalog(YACS::ENGINE::Catalog *catalog, std::string typeName)
YACS::ENGINE::Catalog * _catalog
virtual bool localReverse()
CommandAddHPContainer(std::string name, std::string refContainer="")
YACS::ENGINE::Container * createNewInstance() const
CommandAddIDSPortFromCatalog(YACS::ENGINE::Catalog *catalog, std::string type, std::string node, std::string name)
YACS::ENGINE::InputDataStreamPort * getIDSPort()
SubjectInputDataStreamPort * _sip
virtual bool localExecute()
SubjectInputDataStreamPort * getSubjectIDSPort()
YACS::ENGINE::Catalog * _catalog
virtual bool localReverse()
YACS::ENGINE::InputDataStreamPort * _IDSPort
virtual std::string dump()
bool _controlCreatedWithDF
virtual bool localExecute()
CommandAddLink(std::string outNode, std::string outPort, TypeOfElem outPortType, std::string inNode, std::string inPort, TypeOfElem inPortType, bool control=true)
virtual std::string dump()
virtual bool localReverse()
YACS::ENGINE::Node * _node
virtual bool localExecute()
YACS::HMI::SubjectNode * getSubjectNode()
YACS::HMI::SubjectNode * _snode
YACS::ENGINE::Catalog * _catalog
virtual std::string dump()
CommandAddNodeFromCatalog(YACS::ENGINE::Catalog *catalog, std::string compo, std::string type, std::string position, std::string name, bool newCompoInst=true, int swCase=0)
YACS::ENGINE::Node * getNode()
virtual bool localReverse()
YACS::ENGINE::OutputDataStreamPort * getODSPort()
virtual std::string dump()
SubjectOutputDataStreamPort * getSubjectODSPort()
CommandAddODSPortFromCatalog(YACS::ENGINE::Catalog *catalog, std::string type, std::string node, std::string name)
virtual bool localExecute()
SubjectOutputDataStreamPort * _sop
virtual bool localReverse()
YACS::ENGINE::OutputDataStreamPort * _ODSPort
YACS::ENGINE::Catalog * _catalog
virtual bool localExecute()
virtual std::string dump()
SubjectOutputPort * getSubjectOutputPort()
YACS::ENGINE::Catalog * _catalog
YACS::ENGINE::OutputPort * getOutputPort()
CommandAddOutputPortFromCatalog(YACS::ENGINE::Catalog *catalog, std::string type, std::string node, std::string name)
YACS::ENGINE::OutputPort * _outputPort
virtual bool localReverse()
std::string _instanceName
CommandAssociateComponentToContainer(std::string instanceName, std::string container)
virtual bool localReverse()
virtual bool localExecute()
virtual std::string dump()
virtual std::string dump()
std::string _instanceName
virtual bool localExecute()
CommandAssociateServiceToComponent(std::string service, std::string instanceName)
virtual bool localReverse()
YACS::ENGINE::Node * _clone
YACS::ENGINE::Proc * _fromproc
virtual bool localExecute()
CommandCopyNode(YACS::ENGINE::Proc *fromproc, std::string position, std::string newParent, int acase=0)
YACS::ENGINE::Node * getNode()
virtual std::string dump()
virtual bool localReverse()
virtual bool localReverse()
TypeOfElem _startportType
virtual std::string dump()
CommandDestroy(TypeOfElem elemType, std::string startnode, std::string startport, TypeOfElem startportType, std::string endnode, std::string endport, TypeOfElem endportType)
virtual bool localExecute()
CommandOrderOutputPorts(std::string node, std::string port, int isUp)
virtual bool localExecute()
virtual bool localReverse()
virtual std::string dump()
virtual std::string dump()
CommandPutInComposedNode(std::string position, std::string newParent, std::string type, bool toSaveRestoreLinks=true)
virtual bool localReverse()
virtual bool localExecute()
virtual bool localReverse()
virtual std::string dump()
virtual bool localExecute()
CommandRenameContainer(std::string oldName, std::string newName)
virtual bool localExecute()
virtual std::string dump()
virtual bool localReverse()
CommandRenameInDataPort(std::string position, std::string oldName, std::string newName, TypeOfElem portType)
CommandRenameNode(std::string position, std::string name)
virtual std::string dump()
virtual bool localExecute()
virtual bool localReverse()
CommandRenameOutDataPort(std::string position, std::string oldName, std::string newName, TypeOfElem portType)
virtual std::string dump()
virtual bool localReverse()
virtual bool localExecute()
virtual std::string dump()
CommandReparentNode(std::string position, std::string newParent)
virtual bool localReverse()
virtual bool localExecute()
CommandSetAlgo(std::string optimizer, std::string alglib, std::string symbol)
virtual std::string dump()
virtual bool localReverse()
virtual bool localExecute()
virtual bool localExecute()
std::map< std::string, std::string > _oldProp
virtual bool localReverse()
CommandSetComponentInstanceProperties(std::string compoinstance, std::map< std::string, std::string > properties)
std::string _compoinstance
virtual std::string dump()
std::map< std::string, std::string > _properties
virtual bool localExecute()
std::map< std::string, std::string > _oldProp
virtual std::string dump()
std::map< std::string, std::string > _properties
virtual bool localReverse()
CommandSetContainerProperties(std::string container, std::map< std::string, std::string > properties)
virtual bool localReverse()
virtual std::string dump()
CommandSetContainer(std::string nodeName, std::string container)
virtual bool localExecute()
virtual bool localReverse()
std::map< std::string, std::string > _properties
std::map< std::string, std::string > _oldProp
virtual bool localExecute()
virtual std::string dump()
CommandSetDSPortProperties(std::string node, std::string port, bool isInport, std::map< std::string, std::string > properties)
virtual bool localReverse()
CommandSetExecutionMode(std::string nodeName, std::string mode)
virtual std::string dump()
virtual bool localExecute()
virtual bool localExecute()
virtual std::string dump()
virtual bool localReverse()
CommandSetForEachBranch(std::string forEach, std::string value)
virtual bool localExecute()
virtual bool localReverse()
virtual std::string dump()
CommandSetForLoopSteps(std::string forLoop, std::string value)
CommandSetFuncNodeFunctionName(std::string node, std::string funcName)
virtual bool localExecute()
virtual bool localReverse()
virtual std::string dump()
virtual bool localReverse()
CommandSetInPortValue(std::string node, std::string port, std::string value)
virtual bool localExecute()
virtual std::string dump()
virtual std::string dump()
virtual bool localExecute()
CommandSetInlineNodeScript(std::string node, std::string script)
virtual bool localReverse()
std::map< std::string, std::string > _properties
std::string _startPortName
virtual bool localReverse()
CommandSetLinkProperties(std::string startnode, std::string startport, std::string endnode, std::string endport, std::map< std::string, std::string > properties)
virtual std::string dump()
std::string _startNodeName
virtual bool localExecute()
std::map< std::string, std::string > _oldProp
std::map< std::string, std::string > _properties
virtual bool localExecute()
std::map< std::string, std::string > _oldProp
virtual bool localReverse()
CommandSetNodeProperties(std::string position, std::map< std::string, std::string > properties)
virtual std::string dump()
virtual bool localReverse()
CommandSetOutPortValue(std::string node, std::string port, std::string value)
virtual std::string dump()
virtual bool localExecute()
CommandSetSwitchCase(std::string aSwitch, std::string node, std::string value)
virtual bool localReverse()
virtual std::string dump()
virtual bool localExecute()
CommandSetSwitchSelect(std::string aSwitch, std::string value)
virtual std::string dump()
virtual bool localExecute()
virtual bool localReverse()
CommandSetWhileCondition(std::string whileLoop, std::string value)
virtual bool localExecute()
virtual std::string dump()
virtual bool localReverse()
void setCurrentCatalog(YACS::ENGINE::Catalog *cata)
YACS::HMI::SubjectProc * getSubjectProc()
YACS::ENGINE::Proc * getProc()
std::string _lastErrorMessage
std::map< std::pair< YACS::ENGINE::OutPort *, YACS::ENGINE::InPort * >, YACS::HMI::SubjectLink * > _mapOfSubjectLink
std::map< YACS::ENGINE::Container *, YACS::HMI::SubjectContainerBase * > _mapOfSubjectContainer
std::map< std::string, YACS::ENGINE::ComponentInstance * > _mapOfLastComponentInstance
std::map< YACS::ENGINE::DataPort *, YACS::HMI::SubjectDataPort * > _mapOfSubjectDataPort
std::map< std::pair< YACS::ENGINE::Node *, YACS::ENGINE::Node * >, YACS::HMI::SubjectControlLink * > _mapOfSubjectControlLink
std::map< YACS::ENGINE::ComponentInstance *, YACS::HMI::SubjectComponent * > _mapOfSubjectComponent
std::map< YACS::ENGINE::Node *, YACS::HMI::SubjectNode * > _mapOfSubjectNode
static GuiContext * getCurrent()
static std::map< int, std::string > _typeNameMap
static std::string getTypeName(TypeOfElem type)
static TypeOfElem getTypeOfPort(YACS::ENGINE::DataPort *port)
static TypeOfElem getTypeOfNode(YACS::ENGINE::Node *node)
YACS::ENGINE::ComponentInstance * getComponent() const
virtual SubjectReference * attachService(SubjectServiceNode *service)
SubjectReference * _subRefContainer
virtual void notifyServicesChange(GuiEvent event, int type, Subject *son)
virtual std::string getName()
virtual void detachService(SubjectServiceNode *service)
virtual void moveService(SubjectReference *reference)
SubjectControlLink * addSubjectControlLink(SubjectNode *sno, SubjectNode *sni)
SubjectNode * addSubjectNode(YACS::ENGINE::Node *node, std::string name="", YACS::ENGINE::Catalog *catalog=0, std::string compo="", std::string type="")
virtual void houseKeepingAfterCutPaste(bool isCut, SubjectNode *son)
SubjectLink * addSubjectLink(SubjectNode *sno, SubjectDataPort *spo, SubjectNode *sni, SubjectDataPort *spi)
virtual void notifyComponentsChange(GuiEvent event, int type, Subject *son)
virtual void moveComponent(SubjectReference *reference)
virtual SubjectReference * attachComponent(SubjectComponent *component)
virtual void detachComponent(SubjectComponent *component)
virtual void removeExternalControlLinks()
virtual std::string getName()
virtual SubjectInputDataStreamPort * addSubjectIDSPort(YACS::ENGINE::InputDataStreamPort *port, std::string name="")
virtual SubjectOutputPort * addSubjectOutputPort(YACS::ENGINE::OutputPort *port, std::string name="")
virtual void update(GuiEvent event, int type, Subject *son)
virtual void restoreLinks()
virtual void recursiveUpdate(GuiEvent event, int type, Subject *son)
virtual SubjectInputPort * addSubjectInputPort(YACS::ENGINE::InputPort *port, std::string name="")
virtual void removeExternalLinks()
virtual SubjectOutputDataStreamPort * addSubjectODSPort(YACS::ENGINE::OutputDataStreamPort *port, std::string name="")
SubjectContainerBase * addSubjectContainer(YACS::ENGINE::Container *cont, std::string name="")
SubjectDataType * addSubjectDataType(YACS::ENGINE::TypeCode *type, std::string alias)
void removeSubjectContainer(SubjectContainerBase *scont)
SubjectComponent * addSubjectComponent(YACS::ENGINE::ComponentInstance *compo)
void removeSubjectDataType(std::string typeName)
SubjectReference * _subRefComponent
YACS::ENGINE::ServiceNode * _serviceNode
virtual void addSubjectReference(Subject *ref)
virtual void update(GuiEvent event, int type, Subject *son)
static void erase(Subject *sub, Command *command=0, bool post=false)
virtual Subject * getParent()
virtual std::string getName()
virtual void loadChildren()
virtual void setParent(Subject *son)
virtual void addSubjectReference(Subject *ref)
virtual void select(bool isSelected)
void setErrorMsg(YACS::Exception &ex)
std::map< int, std::string > ErrorMsg
static std::map< int, std::string > createErrorMsgMap()
YACSRUNTIMESALOME_EXPORT RuntimeSALOME * getSALOMERuntime()
std::string convertPyObjectXml(const TypeCode *t, PyObject *data)
def ref(target, callback=None)