Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / src / engine / StaticDefinedComposedNode.cxx
index 8edca1f83f0432d76a42d2df13a393e1bdbfa27d..6def8e140b2087b06d22e2da51d579a568766a2c 100644 (file)
@@ -1,4 +1,6 @@
 #include "StaticDefinedComposedNode.hxx"
+#include "OutPort.hxx"
+#include "InPort.hxx"
 
 using namespace std;
 using namespace YACS::ENGINE;
@@ -26,3 +28,15 @@ void StaticDefinedComposedNode::forceMultiplicity(unsigned value)
 {
   //no sense for this class
 }
+
+void StaticDefinedComposedNode::checkControlDependancy(OutPort *start, InPort *end, bool cross,
+                                                       std::map < ComposedNode *,  std::list < OutPort * >, SortHierarc >& fw,
+                                                       std::vector<OutPort *>& fwCross,
+                                                       std::map< ComposedNode *, std::list < OutPort *>, SortHierarc >& bw,
+                                                       LinkInfo& info) const
+{
+  if(start->getNode()==end->getNode())
+    bw[(ComposedNode *)this].push_back(start);
+  else
+    throw Exception("Internal error occured - dealing an unexpected link !");
+}