-// Copyright (C) 2006-2014 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2016 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
{
}
+std::string ContainerTest::getKind() const
+{
+ return std::string();
+}
+
std::string ContainerTest::getPlacementInfo() const
{
ostringstream stream;
return stream.str();
}
-bool ContainerTest::isAlreadyStarted(const ComponentInstance *inst) const
+bool ContainerTest::isAlreadyStarted(const Task *askingNode) const
{
return _alreadyStarted;
}
-void ContainerTest::start(const ComponentInstance *inst) throw(YACS::Exception)
+void ContainerTest::start(const Task *askingNode) throw(YACS::Exception)
{
if(_alreadyStarted)
throw Exception("ContainerTest already started !!!!");
return new ContainerTest;
}
+Container *ContainerTest::cloneAlways() const
+{
+ return new ContainerTest;
+}
+
void ContainerTest::checkCapabilityToDealWith(const ComponentInstance *inst) const throw(YACS::Exception)
{
if(inst->getKind()!=SUPPORTED_COMP_KIND)
{
}
-bool ContainerTest2::isAlreadyStarted(const ComponentInstance *inst) const
+std::string ContainerTest2::getKind() const
+{
+ return std::string();
+}
+
+bool ContainerTest2::isAlreadyStarted(const Task *askingNode) const
{
return _alreadyStarted;
}
-void ContainerTest2::start(const ComponentInstance *inst) throw(YACS::Exception)
+void ContainerTest2::start(const Task *askingNode) throw(YACS::Exception)
{
if(_alreadyStarted)
throw Exception("ContainerTest already started !!!!");
return new ContainerTest2;
}
+Container *ContainerTest2::cloneAlways() const
+{
+ return new ContainerTest2;
+}
+
void ContainerTest2::initAllContainers()
{
_counter=0;