-// Copyright (C) 2006-2012 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
{
public:
ContainerTest();
+ std::string getKind() const;
std::string getPlacementInfo() const;
// implementation of compulsary methods
- bool isAlreadyStarted(const ComponentInstance *inst) const;
- void start(const ComponentInstance *inst) throw(Exception);
+ bool isAlreadyStarted(const Task *askingNode) const;
+ void start(const Task *askingNode) ;
Container *clone() const;
- std::string getPlacementId(const ComponentInstance *inst) const { return ""; }
- std::string getFullPlacementId(const ComponentInstance *inst) const { return ""; }
+ Container *cloneAlways() const;
+ //
+ void lock() { }
+ void unLock() { }
+ void clearProperties() { }
+ void addComponentName(const std::string& name) { }
+ void shutdown(int level) { }
+ void setProperty(const std::string& name,const std::string& value) { }
+ std::string getProperty(const std::string& name) const { return ""; }
+ std::map<std::string,std::string> getResourceProperties(const std::string& name) const { return std::map<std::string,std::string>(); }
+ std::map<std::string,std::string> getProperties() const { return std::map<std::string,std::string>(); }
+ //
+ std::string getPlacementId(const Task *askingNode) const { return ""; }
+ std::string getFullPlacementId(const Task *askingNode) const { return ""; }
static void initAllContainers();
protected:
- void checkCapabilityToDealWith(const ComponentInstance *inst) const throw(Exception);
+ void checkCapabilityToDealWith(const ComponentInstance *inst) const ;
protected:
bool _alreadyStarted;
unsigned _myCounter;
{
public:
ContainerTest2();
+ std::string getKind() const;
// implementation of compulsary methods
- bool isAlreadyStarted(const ComponentInstance *inst) const;
- void start(const ComponentInstance *inst) throw(Exception);
+ bool isAlreadyStarted(const Task *askingNode) const;
+ void start(const Task *askingNode) ;
Container *clone() const;
- std::string getPlacementId(const ComponentInstance *inst) const { return ""; }
- std::string getFullPlacementId(const ComponentInstance *inst) const { return ""; }
+ Container *cloneAlways() const;
+ //
+ void lock() { }
+ void unLock() { }
+ void clearProperties() { }
+ void addComponentName(const std::string& name) { }
+ void shutdown(int level) { }
+ void setProperty(const std::string& name,const std::string& value) { }
+ std::string getProperty(const std::string& name) const { return ""; }
+ std::map<std::string,std::string> getResourceProperties(const std::string& name) const { return std::map<std::string,std::string>(); }
+ std::map<std::string,std::string> getProperties() const { return std::map<std::string,std::string>(); }
+ //
+ std::string getPlacementId(const Task *askingNode) const { return ""; }
+ std::string getFullPlacementId(const Task *askingNode) const { return ""; }
static void initAllContainers();
protected:
- void checkCapabilityToDealWith(const ComponentInstance *inst) const throw(Exception);
+ void checkCapabilityToDealWith(const ComponentInstance *inst) const ;
protected:
bool _alreadyStarted;
unsigned _myCounter;