Synchronization¶
- class Synchronization¶
- Clone()¶
Call this method if you want to use API-objects in multiple contexts, e.g. if you want to insert a specific test step in multiple blocks.
- Returns:
A copy of this object
- Return type:
- GetMaster()¶
Returns the master recording group for this synchronization.
- Returns:
The master recording group
- Return type:
- GetMaxDeltaT()¶
Returns the bound for deltaT. If deltaT is found to be greater than this bound, the synchronization will fail.
- Returns:
The maximum for deltaT as expression
- Return type:
str
- GetOffset()¶
Returns the (known) offset. The offset will be added to the calculated deltaT. By default, it is only used for the OffsetSynchronization.
- Returns:
The (known) offset as expression
- Return type:
str
- GetOffsetUsed()¶
Sets whether the known offset should be applied. For the ExpectationSynchronization and EqualnessMatchingSynchronization the known offset will be added to the calculated deltaT. The known offset will always be used by the OffsetSynchronization.
- Returns:
True if the offset will be used, else False.
- Return type:
boolean
- GetRecordingGroupName()¶
Returns the name of the recording group for this synchronization.
- Returns:
The name of the recording group
- Return type:
str
- GetTimeLimit()¶
Returns the time stamp relative to the first time stamp (of the recording group and master recording group) until that the running synchronization will be evaluated. If the time limit is reached, the synchronization will fail.
- Returns:
The relative time limit as expression
- Return type:
str
- GetType()¶
Returns the type of this synchronization.
- Returns:
The type of this synchronization (can be ‘Offset’, ‘Expectation’, ‘EqualnessMatching’ or ‘LeastSquares’, ‘AutosarTime’)
- Return type:
str
- IsFirstSampleDifferenceCorrected()¶
Returns whether the parameter maxDeltaT is corrected by the difference of the time stamps of the first samples (of the recording group and master recording group). Suppose that the time axes to be synchronized start at 20s and 50s, respectively. Then activating this option acts as if maxDeltaT was increased by 30s.
- Returns:
The setting for the interpretation of maxDeltaT
- Return type:
boolean
- SetFirstSampleDifferenceCorrected(isCorrected)¶
Sets whether the parameter maxDeltaT is corrected by the difference of the time stamps of the first samples (of the recording group and master recording group). Suppose that the time axes to be synchronized start at 20s and 50s, respectively. Then activating this option acts as if maxDeltaT was increased by 30s.
- Parameters:
- isCorrected : boolean¶
The setting for the interpretation of maxDeltaT
- SetMaster(recordingGroup)¶
Sets the master recording group for the synchronization.
- Parameters:
- recordingGroup¶
The master recording group.
- SetMaxDeltaT(maxDeltaT)¶
Sets the bound for deltaT to the value maxDeltaT. If deltaT is found to be greater than this bound, the synchronization will fail.
- Parameters:
- maxDeltaT : str¶
The maximum for deltaT as expression
- SetOffset(offset)¶
Sets (known) offset. The offset will be added to the calculated deltaT. By default, it is only used for the OffsetSynchronization.
- Parameters:
- offset : str¶
The (known) offset as expression
- SetOffsetUsed(used)¶
Sets whether the known offset should be applied. For the ExpectationSynchronization and EqualnessMatchingSynchronization the known offset will be added to the calculated deltaT. The known offset will always be used by the OffsetSynchronization.
- Parameters:
- used : boolean¶
True if the offset should be used, else False.
- SetTimeLimit(timeLimit)¶
Sets the time stamp relative to the first time stamp (of the recording group and master recording group) until that the running synchronization will be evaluated. If the time limit is reached, the synchronization will fail.
- Parameters:
- timeLimit : str¶
The relative time limit as expression