NoNodeCreated Class Reference

Implementation of NoNodeCreatedBase. More...

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

+ Inheritance diagram for NoNodeCreated:

Public Member Functions

void allocatedComputingPower (const Ice::Current &=Ice::emptyCurrent) override
 
void ice_postUnmarshal () override
 Nulls the backlog after the object was transmitted through ice. More...
 
 NoNodeCreated (Ice::Long timeDeltaInSec, bool skip, float sig, Ice::Long backlogSz)
 ctor More...
 
bool shouldAllocateComputingPower (const ::Ice::Current &=Ice::emptyCurrent) override
 shouldAllocateComputingPower More...
 
void updateNodeCreations (Ice::Long nodesCreated, Ice::Long tries, const Ice::Current &=Ice::emptyCurrent) override
 Updates the number of failed node creations. More...
 
- Public Member Functions inherited from ElapsedTime
void allocatedComputingPower (const Ice::Current &=Ice::emptyCurrent) override
 Sets the next time to allocate depending on the flag skipping. More...
 
 ElapsedTime (Ice::Long timeDeltaInSeconds, bool skipping)
 Ctor. More...
 
void setCurrentStateAsInitialState (const ::Ice::Current &=Ice::emptyCurrent) override
 Sets the next time to allocate delta seconds from now. 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

 NoNodeCreated ()=default
 Ctor used for object factories. More...
 
- Protected Member Functions inherited from ElapsedTime
 ElapsedTime ()=default
 Ctor used for object factories. More...
 

Protected Attributes

std::vector< char > backlog
 The backlog. More...
 
std::size_t currentBacklogIndex
 The current index in the backlog. More...
 
- Protected Attributes inherited from ElapsedTime
TimePoint allocatedLastTime
 The time point when more power should be allocated again. More...
 

Friends

template<class Base , class Derived >
class armarx::GenericFactory
 

Additional Inherited Members

- Public Types inherited from ElapsedTime
using Clock = std::chrono::system_clock
 The used clock type. More...
 
using TimePoint = Clock::time_point
 The type of the used time point. More...
 

Detailed Description

Implementation of NoNodeCreatedBase.

See also
NoNodeCreatedBase

Definition at line 417 of file ComputingPowerRequestStrategy.h.

Constructor & Destructor Documentation

◆ NoNodeCreated() [1/2]

NoNodeCreated ( Ice::Long  timeDeltaInSec,
bool  skip,
float  sig,
Ice::Long  backlogSz 
)
inline

ctor

Parameters
timeDeltaInSecondsThe delta to use.(in seconds)
skippingWhether skipping is activated.
sigThe parameter sigma.
backlogSzThe backlog's size.

Definition at line 429 of file ComputingPowerRequestStrategy.h.

◆ NoNodeCreated() [2/2]

NoNodeCreated ( )
protecteddefault

Ctor used for object factories.

Member Function Documentation

◆ allocatedComputingPower()

void allocatedComputingPower ( const Ice::Current &  = Ice::emptyCurrent)
override

Definition at line 108 of file ComputingPowerRequestStrategy.cpp.

+ Here is the call graph for this function:

◆ ice_postUnmarshal()

void ice_postUnmarshal ( )
inlineoverride

Nulls the backlog after the object was transmitted through ice.

Definition at line 464 of file ComputingPowerRequestStrategy.h.

◆ shouldAllocateComputingPower()

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

shouldAllocateComputingPower

Returns
Whrether

Reimplemented from ElapsedTime.

Definition at line 453 of file ComputingPowerRequestStrategy.h.

+ Here is the call graph for this function:

◆ updateNodeCreations()

void updateNodeCreations ( Ice::Long  nodesCreated,
Ice::Long  tries,
const Ice::Current &  = Ice::emptyCurrent 
)
override

Updates the number of failed node creations.

Parameters
nodesCreatedNumber of created nodes.
triesNumber of tries to create nodes.

Definition at line 98 of file ComputingPowerRequestStrategy.cpp.

Friends And Related Function Documentation

◆ armarx::GenericFactory

friend class armarx::GenericFactory
friend

Definition at line 481 of file ComputingPowerRequestStrategy.h.

Member Data Documentation

◆ backlog

std::vector<char> backlog
protected

The backlog.

chars are used instead of bools since vector<bool> is specialized. contains a 1 if a node creation failed and 0 if it was successfull;

Definition at line 474 of file ComputingPowerRequestStrategy.h.

◆ currentBacklogIndex

std::size_t currentBacklogIndex
protected

The current index in the backlog.

(used to determine which variables will be overwritten)

Definition at line 478 of file ComputingPowerRequestStrategy.h.


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