X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fengine%2FTest%2FContainerTest.cxx;h=d43edd7a89079fcb2d82f963f4a941a80ba06156;hb=eb87b5afd7d814cdce825c6e75342001fe01b978;hp=414e197c850546c54da05843f7598e713d368d0d;hpb=b797825313f7af9fd691d137c7c6df4950e7de2c;p=modules%2Fyacs.git diff --git a/src/engine/Test/ContainerTest.cxx b/src/engine/Test/ContainerTest.cxx old mode 100755 new mode 100644 index 414e197c8..d43edd7a8 --- a/src/engine/Test/ContainerTest.cxx +++ b/src/engine/Test/ContainerTest.cxx @@ -1,4 +1,4 @@ -// 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 @@ -37,6 +37,11 @@ ContainerTest::ContainerTest():_alreadyStarted(false),_myCounter(_counter++) { } +std::string ContainerTest::getKind() const +{ + return std::string(); +} + std::string ContainerTest::getPlacementInfo() const { ostringstream stream; @@ -44,12 +49,12 @@ std::string ContainerTest::getPlacementInfo() const 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 !!!!"); @@ -67,6 +72,11 @@ Container *ContainerTest::clone() const 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) @@ -82,12 +92,17 @@ ContainerTest2::ContainerTest2():_alreadyStarted(false),_myCounter(_counter++) { } -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 !!!!"); @@ -105,6 +120,11 @@ Container *ContainerTest2::clone() const return new ContainerTest2; } +Container *ContainerTest2::cloneAlways() const +{ + return new ContainerTest2; +} + void ContainerTest2::initAllContainers() { _counter=0;