ADTF
Loading...
Searching...
No Matches
ddl::mapping::TimeStrategy Class Referenceabstract

#include <mapper_interfaces.h>

Public Member Functions

virtual bool updateTime (std::chrono::nanoseconds source_value_time, uint64_t source_value_update_counter, const std::shared_ptr< const SourceValue > &source_value)=0
 
virtual std::optional< std::chrono::nanoseconds > getTime () const =0
 

Detailed Description

Time strategy interface to evaluate the targets update time

Member Function Documentation

◆ getTime()

virtual std::optional< std::chrono::nanoseconds > ddl::mapping::TimeStrategy::getTime ( ) const
pure virtual

Retrieve the current set time value dependent on the strategy

◆ updateTime()

virtual bool ddl::mapping::TimeStrategy::updateTime ( std::chrono::nanoseconds source_value_time,
uint64_t source_value_update_counter,
const std::shared_ptr< const SourceValue > & source_value )
pure virtual

Informs the time strategy implementation about currently assigned value for a time update after each value assignment dependent on the sources of the value.

Parameters
source_value_timethe current time of the currently assigned source value
source_value_update_counterthe current update counter of the currently assigned source value
source_valuethe source value which might be a simple assignment, constant or internal function or function call
Remarks
In case of function call there might be more than one time source for the value if the parameters are configured with multiple different sources. For one and the same value it might be called multiple times!

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