Salome HOME
Copyright update 2021
[modules/yacs.git] / src / engine / Task.hxx
old mode 100755 (executable)
new mode 100644 (file)
index 4f9d0ba..f0a333d
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2021  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
@@ -23,6 +23,7 @@
 #include "YACSlibEngineExport.hxx"
 #include "define.hxx"
 #include <set>
+#include <string>
 
 namespace YACS
 {
@@ -46,10 +47,15 @@ namespace YACS
       virtual void getCoupledTasks(std::set<Task*>& coupledSet) = 0;
       virtual bool isDeployable() const = 0;
       virtual ComponentInstance *getComponent() = 0;
+      virtual const ComponentInstance *getComponent() const = 0;
       virtual Container *getContainer() = 0;
       virtual YACS::StatesForNode getState() const = 0;
       virtual void finished() = 0;
       virtual void aborted() = 0;
+      virtual void imposeResource(const std::string& resource_name,
+                                  const std::string& container_name) {}
+      virtual bool canAcceptImposedResource() { return false;}
+      virtual bool hasImposedResource()const { return false;}
       virtual ~Task();
     };
   }