TotalNodeCount Class Reference

Implementation of TotalNodeCountBase. More...

#include <RobotComponents/components/MotionPlanning/ResourceRequestStrategies/ComputingPowerRequestStrategy.h>

+ Inheritance diagram for TotalNodeCount:

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
 

Detailed Description

Implementation of TotalNodeCountBase.

See also
TotalNodeCountBase

Definition at line 493 of file ComputingPowerRequestStrategy.h.

Constructor & Destructor Documentation

◆ TotalNodeCount() [1/2]

TotalNodeCount ( Ice::Long  nodeCountDelta,
bool  skipping 
)
inline

Ctor.

Parameters
nodeCountDeltaThe delta to use.
skippingWhether skipping is activated.

Definition at line 503 of file ComputingPowerRequestStrategy.h.

◆ TotalNodeCount() [2/2]

TotalNodeCount ( )
inlineprotected

Ctor used for object factories.

Definition at line 550 of file ComputingPowerRequestStrategy.h.

Member Function Documentation

◆ allocatedComputingPower()

void allocatedComputingPower ( const Ice::Current &  = Ice::emptyCurrent)
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.

◆ shouldAllocateComputingPower()

bool shouldAllocateComputingPower ( const ::Ice::Current &  = Ice::emptyCurrent)
inlineoverridevirtual

Returns true if the the current count is >= the next creation count.

Returns
Whether more computing power should be allocated.

Implements ComputingPowerRequestStrategy.

Definition at line 530 of file ComputingPowerRequestStrategy.h.

◆ updateNodeCount()

void updateNodeCount ( Ice::Long  newCount,
const Ice::Current &  = Ice::emptyCurrent 
)
inlineoverride

Updates the internal node count.

Parameters
newCountThe new node count.

Definition at line 514 of file ComputingPowerRequestStrategy.h.

Friends And Related Function Documentation

◆ armarx::GenericFactory

friend class armarx::GenericFactory
friend

Definition at line 546 of file ComputingPowerRequestStrategy.h.

Member Data Documentation

◆ allocateNextTime

Ice::Long allocateNextTime
protected

The count when to allocate more power.

Definition at line 539 of file ComputingPowerRequestStrategy.h.

◆ nodeCount

Ice::Long nodeCount
protected

The current node count.

Definition at line 543 of file ComputingPowerRequestStrategy.h.


The documentation for this class was generated from the following files: