|
Implementation of TotalNodeCountBase. More...
#include <RobotComponents/components/MotionPlanning/ResourceRequestStrategies/ComputingPowerRequestStrategy.h>
Public Member Functions | |
void | allocatedComputingPower (const Ice::Current &=Ice::emptyCurrent) override |
Sets the next creation count to allocate depending on the flag skipping. More... | |
bool | shouldAllocateComputingPower (const ::Ice::Current &=Ice::emptyCurrent) override |
Returns true if the the current count is >= the next creation count. More... | |
TotalNodeCount (Ice::Long nodeCountDelta, bool skipping) | |
Ctor. More... | |
void | updateNodeCount (Ice::Long newCount, const Ice::Current &=Ice::emptyCurrent) override |
Updates the internal node count. More... | |
Public Member Functions inherited from ComputingPowerRequestStrategy | |
void | allocatedComputingPower (const Ice::Current &=Ice::emptyCurrent) override |
Default implementation. More... | |
void | setCurrentStateAsInitialState (const ::Ice::Current &=Ice::emptyCurrent) override |
Default implementation. More... | |
void | updateNodeCount (Ice::Long, const Ice::Current &=Ice::emptyCurrent) override |
Default implementation. More... | |
void | updateNodeCreations (Ice::Long, Ice::Long, const Ice::Current &=Ice::emptyCurrent) override |
Default implementation. More... | |
void | updateTaskStatus (armarx::TaskStatus::Status, const Ice::Current &=Ice::emptyCurrent) override |
Default implementation. More... | |
~ComputingPowerRequestStrategy () override=default | |
Dtor. More... | |
Protected Member Functions | |
TotalNodeCount () | |
Ctor used for object factories. More... | |
Protected Attributes | |
Ice::Long | allocateNextTime |
The count when to allocate more power. More... | |
Ice::Long | nodeCount |
The current node count. More... | |
Friends | |
template<class Base , class Derived > | |
class | armarx::GenericFactory |
Implementation of TotalNodeCountBase.
Definition at line 493 of file ComputingPowerRequestStrategy.h.
|
inline |
Ctor.
nodeCountDelta | The delta to use. |
skipping | Whether skipping is activated. |
Definition at line 503 of file ComputingPowerRequestStrategy.h.
|
inlineprotected |
Ctor used for object factories.
Definition at line 550 of file ComputingPowerRequestStrategy.h.
|
override |
Sets the next creation count to allocate depending on the flag skipping.
skipping == true: current count + delta. skipping == false: the current next creation count + delta. (may be smaller than the current count)
Definition at line 51 of file ComputingPowerRequestStrategy.cpp.
|
inlineoverridevirtual |
Returns true if the the current count is >= the next creation count.
Implements ComputingPowerRequestStrategy.
Definition at line 530 of file ComputingPowerRequestStrategy.h.
|
inlineoverride |
Updates the internal node count.
newCount | The new node count. |
Definition at line 514 of file ComputingPowerRequestStrategy.h.
|
friend |
Definition at line 546 of file ComputingPowerRequestStrategy.h.
|
protected |
The count when to allocate more power.
Definition at line 539 of file ComputingPowerRequestStrategy.h.
|
protected |
The current node count.
Definition at line 543 of file ComputingPowerRequestStrategy.h.