|
|
Implementation of ElapsedTimeBase. More...
#include <RobotComponents/components/MotionPlanning/ResourceRequestStrategies/ComputingPowerRequestStrategy.h>
Inheritance diagram for ElapsedTime:Public Types | |
| using | Clock = std::chrono::system_clock |
| The used clock type. More... | |
| using | TimePoint = Clock::time_point |
| The type of the used time point. More... | |
Public Member Functions | |
| 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... | |
| bool | shouldAllocateComputingPower (const ::Ice::Current &=Ice::emptyCurrent) override |
| Returns true if the last creation timepoint is more than delta seconds away. 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 | |
| ElapsedTime ()=default | |
| Ctor used for object factories. More... | |
Protected Attributes | |
| TimePoint | allocatedLastTime |
| The time point when more power should be allocated again. More... | |
Friends | |
| template<class Base , class Derived > | |
| class | armarx::GenericFactory |
Implementation of ElapsedTimeBase.
Definition at line 378 of file ComputingPowerRequestStrategy.h.
| using Clock = std::chrono::system_clock |
The used clock type.
Definition at line 384 of file ComputingPowerRequestStrategy.h.
| using TimePoint = Clock::time_point |
The type of the used time point.
Definition at line 388 of file ComputingPowerRequestStrategy.h.
|
inline |
Ctor.
| timeDeltaInSeconds | The delta to use.(in seconds) |
| skipping | Whether skipping is activated. |
Definition at line 395 of file ComputingPowerRequestStrategy.h.
|
protecteddefault |
Ctor used for object factories.
|
override |
Sets the next time to allocate depending on the flag skipping.
skipping == true: now + delta seconds. skipping == false: the current next time point + delta seconds. (may already passed)
Definition at line 39 of file ComputingPowerRequestStrategy.cpp.
Here is the call graph for this function:
|
inlineoverride |
Sets the next time to allocate delta seconds from now.
Definition at line 404 of file ComputingPowerRequestStrategy.h.
Here is the call graph for this function:
|
inlineoverridevirtual |
Returns true if the last creation timepoint is more than delta seconds away.
Implements ComputingPowerRequestStrategy.
Reimplemented in NoNodeCreated.
Definition at line 421 of file ComputingPowerRequestStrategy.h.
Here is the call graph for this function:
|
friend |
Definition at line 434 of file ComputingPowerRequestStrategy.h.
|
protected |
The time point when more power should be allocated again.
Definition at line 430 of file ComputingPowerRequestStrategy.h.