]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/ComponentInstance.hxx
Salome HOME
Ready to update Executor to take into account of the new type of containers.
[modules/yacs.git] / src / engine / ComponentInstance.hxx
index d3caef620ffb8ae13e91d379b2dae4b5d9106aa7..f76ff3019551168a23192908f861fc6b7909fcb2 100644 (file)
@@ -31,8 +31,9 @@ namespace YACS
 {
   namespace ENGINE
   {
-    class Container;
+    class Task;
     class ServiceNode;
+    class Container;
 
     class YACSLIBENGINE_EXPORT ComponentInstance : public PropertyInterface, public RefCounter
     {
@@ -50,11 +51,11 @@ namespace YACS
       virtual void setContainer(Container *cont);
       Container *getContainer() const { return _container; }
 //! Load the component instance
-      virtual void load(ServiceNode *askingNode) = 0;
+      virtual void load(Task *askingNode) = 0;
 //! Unload the component instance
-      virtual void unload(ServiceNode *askingNode) = 0;
+      virtual void unload(Task *askingNode) = 0;
 //! Indicate if the component instance is loaded (true) or not
-      virtual bool isLoaded(ServiceNode *askingNode) = 0;
+      virtual bool isLoaded(Task *askingNode) const = 0;
       virtual void attachOnCloning() const;
       virtual void dettachOnCloning() const;
       bool isAttachedOnCloning() const;