-// 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
#include "YACSlibEngineExport.hxx"
#include "define.hxx"
#include <set>
+#include <string>
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();
};
}