TaskStatus Class Reference

Implementation of TaskStatusBase. More...

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

+ Inheritance diagram for TaskStatus:

Public Member Functions

void allocatedComputingPower (const Ice::Current &=Ice::emptyCurrent) override
 Passes this call to all sub strategies. More...
 
bool shouldAllocateComputingPower (const ::Ice::Current &=Ice::emptyCurrent) override
 Returns the result of the current selected strategy. More...
 
 TaskStatus (TaskStatusMap strategyPerTaskStatus)
 Ctor. More...
 
void updateNodeCount (Ice::Long count, const Ice::Current &=Ice::emptyCurrent) override
 Passes this call to all sub 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
 Switches the current strategy and passes this call to all sub 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...
 
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

 TaskStatus ()
 Ctor used for object factories. More...
 

Protected Attributes

ComputingPowerRequestStrategyBase * current
 The current strategy in use. More...
 

Friends

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

Detailed Description

Implementation of TaskStatusBase.

See also
TaskStatusBase

Definition at line 558 of file ComputingPowerRequestStrategy.h.

Constructor & Destructor Documentation

◆ TaskStatus() [1/2]

TaskStatus ( TaskStatusMap  strategyPerTaskStatus)
inline

Ctor.

Parameters
strategyPerTaskStatusTask status to sub strategy map.

Definition at line 567 of file ComputingPowerRequestStrategy.h.

◆ TaskStatus() [2/2]

TaskStatus ( )
inlineprotected

Ctor used for object factories.

Definition at line 618 of file ComputingPowerRequestStrategy.h.

Member Function Documentation

◆ allocatedComputingPower()

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

Passes this call to all sub strategies.

Definition at line 82 of file ComputingPowerRequestStrategy.cpp.

◆ shouldAllocateComputingPower()

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

Returns the result of the current selected strategy.

Returns
The result of the current selected strategy.

Implements ComputingPowerRequestStrategy.

Definition at line 602 of file ComputingPowerRequestStrategy.h.

◆ updateNodeCount()

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

Passes this call to all sub strategies.

Parameters
countThe new count

Definition at line 63 of file ComputingPowerRequestStrategy.cpp.

◆ 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 90 of file ComputingPowerRequestStrategy.cpp.

◆ updateTaskStatus()

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

Switches the current strategy and passes this call to all sub strategies.

Parameters
newStatus

Definition at line 71 of file ComputingPowerRequestStrategy.cpp.

Friends And Related Function Documentation

◆ armarx::GenericFactory

friend class armarx::GenericFactory
friend

Definition at line 614 of file ComputingPowerRequestStrategy.h.

Member Data Documentation

◆ current

ComputingPowerRequestStrategyBase* current
protected

The current strategy in use.

Definition at line 611 of file ComputingPowerRequestStrategy.h.


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