CompoundedRequestStrategy Class Reference

Implementation of CompoundedRequestStrategyBase. More...

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

+ Inheritance diagram for CompoundedRequestStrategy:

Public Member Functions

void allocatedComputingPower (const Ice::Current &=Ice::emptyCurrent) override
 Calls this function for all compounded strategies. More...
 
 CompoundedRequestStrategy (const ComputingPowerRequestStrategyBaseList &requestStrategies)
 Ctor. More...
 
void setCurrentStateAsInitialState (const ::Ice::Current &=Ice::emptyCurrent) override
 Calls this function for all compounded strategies. More...
 
void updateNodeCount (Ice::Long count, const Ice::Current &=Ice::emptyCurrent) override
 Calls this function for all compounded strategies. More...
 
void updateNodeCreations (Ice::Long nodesCreated, Ice::Long tries, const Ice::Current &=Ice::emptyCurrent) override
 Passes this call to all sub strategies. More...
 
void updateTaskStatus (armarx::TaskStatus::Status newStatus, const Ice::Current &=Ice::emptyCurrent) override
 Calls this function for all compounded strategies. 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...
 
bool shouldAllocateComputingPower (const ::Ice::Current &=Ice::emptyCurrent) override=0
 Returns whether new computing power should be allocated. 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

 CompoundedRequestStrategy ()=default
 Ctor used for object factories. More...
 

Friends

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

Detailed Description

Implementation of CompoundedRequestStrategyBase.

See also
CompoundedRequestStrategyBase

Definition at line 102 of file ComputingPowerRequestStrategy.h.

Constructor & Destructor Documentation

◆ CompoundedRequestStrategy() [1/2]

CompoundedRequestStrategy ( const ComputingPowerRequestStrategyBaseList &  requestStrategies)
inline

Ctor.

Parameters
requestStrategiesThe strategies forming this compound.

Definition at line 111 of file ComputingPowerRequestStrategy.h.

◆ CompoundedRequestStrategy() [2/2]

CompoundedRequestStrategy ( )
protecteddefault

Ctor used for object factories.

Member Function Documentation

◆ allocatedComputingPower()

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

Calls this function for all compounded strategies.

See also
ComputingPowerRequestStrategyBase::allocatedComputingPower

Definition at line 148 of file ComputingPowerRequestStrategy.cpp.

+ Here is the call graph for this function:

◆ setCurrentStateAsInitialState()

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

Calls this function for all compounded strategies.

See also
ComputingPowerRequestStrategyBase::setCurrentStateAsInitialState

Definition at line 124 of file ComputingPowerRequestStrategy.cpp.

+ Here is the call graph for this function:

◆ updateNodeCount()

void updateNodeCount ( Ice::Long  count,
const Ice::Current &  = Ice::emptyCurrent 
)
override

Calls this function for all compounded strategies.

See also
ComputingPowerRequestStrategyBase::updateNodeCount
Parameters
countThe new node count

Definition at line 132 of file ComputingPowerRequestStrategy.cpp.

+ Here is the call graph for this function:

◆ updateNodeCreations()

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

Passes this call to all sub strategies.

See also
ComputingPowerRequestStrategyBase::updateNodeCreations
Parameters
nodesCreatedNumber of created nodes.
triesNumber of tries to create nodes.

Definition at line 156 of file ComputingPowerRequestStrategy.cpp.

+ Here is the call graph for this function:

◆ updateTaskStatus()

void updateTaskStatus ( armarx::TaskStatus::Status  newStatus,
const Ice::Current &  = Ice::emptyCurrent 
)
override

Calls this function for all compounded strategies.

See also
ComputingPowerRequestStrategyBase::updateTaskStatus
Parameters
newStatusThe new status

Definition at line 140 of file ComputingPowerRequestStrategy.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ armarx::GenericFactory

friend class armarx::GenericFactory
friend

Definition at line 148 of file ComputingPowerRequestStrategy.h.


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