Salome HOME
WIP
[modules/yacs.git] / src / engine / InlineNode.hxx
index 891acb0657873bc92091a857630252014a07e9ea..74930305ed4f5e88f35b906b445b5240c0719eb1 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2015  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2019  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -45,7 +45,7 @@ namespace YACS
     protected:
       InlineNode(const InlineNode& other, ComposedNode *father)
         :ElementaryNode(other,father),_script(other._script),_mode(other._mode),_container(0) { }
-      InlineNode(const std::string& name):ElementaryNode(name),_mode("local"),_container(0) { }
+      InlineNode(const std::string& name):ElementaryNode(name),_mode(LOCAL_STR),_container(0) { }
     public:
       virtual void setScript(const std::string& script);
       virtual std::string getScript(){return _script;}
@@ -67,6 +67,11 @@ namespace YACS
       void performDuplicationOfPlacement(const Node& other);
       void performShallowDuplicationOfPlacement(const Node& other);
       bool isDeployable() const;
+      int getMaxLevelOfParallelism() const;
+      void partitionRegardingDPL(const PartDefinition *pd, std::map<ComposedNode *, YACS::BASES::AutoRefCnt<PartDefinition> >& zeMap);
+    public:
+      static const char LOCAL_STR[];
+      static const char REMOTE_STR[];
     protected:
       std::string _script;
       std::string _mode;