]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/Task.hxx
Salome HOME
Copyright update 2021
[modules/yacs.git] / src / engine / Task.hxx
index 0158980ba772df6fd0b89c91a270388b0fa885c9..f0a333d81517d48314231feb9d6522a6168f5558 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2006-2013  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
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -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();
     };
   }