-// Copyright (C) 2006-2014 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
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;}
virtual void setContainer(Container* container);
virtual Container* getContainer();
void performDuplicationOfPlacement(const Node& other);
+ void performShallowDuplicationOfPlacement(const Node& other);
bool isDeployable() const;
+ int getMaxLevelOfParallelism() const;
+ public:
+ static const char LOCAL_STR[];
+ static const char REMOTE_STR[];
protected:
std::string _script;
std::string _mode;
:InlineNode(other,father),_fname(other._fname) { }
InlineFuncNode(const std::string& name):InlineNode(name) { }
public:
-//! Set the function name to use in node execution
-/*!
- * \param fname: name of the function contained in the script to execute
- */
+ //! Set the function name to use in node execution
virtual void setFname(const std::string& fname);
virtual std::string getFname() { return _fname; }
void accept(Visitor *visitor);
virtual ~InlineFuncNode();
- virtual std::string typeName() {return "YACS__ENGINE__InlineFuncNode";}
+ virtual std::string typeName() { return "YACS__ENGINE__InlineFuncNode"; }
virtual void checkBasicConsistency() const throw(Exception);
protected:
std::string _fname;