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.
 
 NoNodeCreated (Ice::Long timeDeltaInSec, bool skip, float sig, Ice::Long backlogSz)
 ctor
 
bool shouldAllocateComputingPower (const ::Ice::Current &=Ice::emptyCurrent) override
 shouldAllocateComputingPower
 
void updateNodeCreations (Ice::Long nodesCreated, Ice::Long tries, const Ice::Current &=Ice::emptyCurrent) override
 Updates the number of failed node creations.
 
- 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.
 
 ElapsedTime (Ice::Long timeDeltaInSeconds, bool skipping)
 Ctor.
 
void setCurrentStateAsInitialState (const ::Ice::Current &=Ice::emptyCurrent) override
 Sets the next time to allocate delta seconds from now.
 
- Public Member Functions inherited from ComputingPowerRequestStrategy
void allocatedComputingPower (const Ice::Current &=Ice::emptyCurrent) override
 Default implementation.
 
void setCurrentStateAsInitialState (const ::Ice::Current &=Ice::emptyCurrent) override
 Default implementation.
 
void updateNodeCount (Ice::Long, const Ice::Current &=Ice::emptyCurrent) override
 Default implementation.
 
void updateNodeCreations (Ice::Long, Ice::Long, const Ice::Current &=Ice::emptyCurrent) override
 Default implementation.
 
void updateTaskStatus (armarx::TaskStatus::Status, const Ice::Current &=Ice::emptyCurrent) override
 Default implementation.
 
 ~ComputingPowerRequestStrategy () override=default
 Dtor.
 

Protected Member Functions

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

Protected Attributes

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

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.
 
using TimePoint = Clock::time_point
 The type of the used time point.
 

Detailed Description

Implementation of NoNodeCreatedBase.

See also
NoNodeCreatedBase

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.

◆ NoNodeCreated() [2/2]

NoNodeCreated ( )
protecteddefault

Ctor used for object factories.

Member Function Documentation

◆ allocatedComputingPower()

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

◆ ice_postUnmarshal()

void ice_postUnmarshal ( )
inlineoverride

Nulls the backlog after the object was transmitted through ice.

◆ shouldAllocateComputingPower()

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

shouldAllocateComputingPower

Returns
Whrether

Reimplemented from ElapsedTime.

◆ 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.

Friends And Related Symbol Documentation

◆ armarx::GenericFactory

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

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;

◆ currentBacklogIndex

std::size_t currentBacklogIndex
protected

The current index in the backlog.

(used to determine which variables will be overwritten)


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