NoiseSegment¶
- class NoiseSegment¶
Returned by
- 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:
- GetComment()¶
Returns the comment of the segment.
- Returns:
The comment
- Return type:
str
- GetDuration()¶
Returns the current duration of the signal segment.
- Returns:
The duration
- Return type:
float
- GetDurationExpression()¶
Returns the duration expression of the segment that is conform to the ASAM XIL GES syntax for ConstSymbol expressions.
- Return type:
str
- Returns:
the duration expression
- GetFinalValue()¶
Returns the final value of the signal segment.
- Returns:
the final value
- Return type:
float
- GetFirstValue()¶
Returns the first value of the segment.
- Returns:
the first value or NaN
- Return type:
float
- GetMean()¶
Returns the mean value of the segment.
- Return type:
float
- Returns:
the mean value
- GetMeanExpression()¶
Returns the mean value expression. The expression conforms to the ASAM XIL GES syntax for ConstSymbol expressions.
- Return type:
str
- Returns:
the mean value expression
- GetMeanSymbol()¶
Returns the SymbolType object of the segment mean value.
- Return type:
- Returns:
the mean value symbol
- GetSeed()¶
Returns the seed value of the segment.
- Return type:
float
- Returns:
the seed value
- GetSeedExpression()¶
Returns the seed value expression. The expression conforms to the ASAM XIL GES syntax for ConstSymbol expressions.
- Return type:
str
- Returns:
the seed value expression
- GetSigma()¶
Returns the sigma value of the segment.
- Return type:
float
- Returns:
the sigma value
- GetSigmaExpression()¶
Returns the sigma value expression. The expression conforms to the ASAM XIL GES syntax for ConstSymbol expressions.
- Return type:
str
- Returns:
the sigma value expression
- GetSigmaSymbol()¶
Returns the SymbolType object of the segment sigma value.
- Return type:
- Returns:
the sigma value symbol
- GetStopTrigger()¶
Returns the stop trigger of the segment
- Returns:
stop trigger
- Return type:
str
- GetTimeout()¶
Returns the timeout of the segment
- Returns:
timeout
- Return type:
float
- GetType()¶
Returns the type of the segment. (e.g. “Constant”)
- Returns:
The type
- Return type:
str
- GetValueAt(timestamp)¶
Returns the value at the given timestamp.
- Parameters:
- timestamp : float¶
The timestamp
- Returns:
the value or NaN
- Return type:
float
- RemoveStopTrigger()¶
Removes the stop trigger of the segment
- RemoveTimeout()¶
Removes the timeout of the segment
- SetDuration(duration)¶
Sets the duration of the segment in seconds.If you want to set the duration value of the segment to an expression, use SetDurationExpression instead.
- Parameters:
- duration : float¶
the segments duration
- SetDurationExpression(expression)¶
Sets the duration value as an expression. The expression needs to be conform to the ASAM XIL GES syntax for ConstSymbol expressions.
- Parameters:
- expression : str¶
the duration expression
- SetMeanExpression(expression)¶
Sets the mean value expression. The expression has to conform to the ASAM XIL GES syntax for ConstSymbol expressions.
- Parameters:
- expression : str¶
the expression
- SetMeanSymbol(value)¶
Sets a SymbolType object as mean value of the segment. If you want to set the mean value of the segment to an expression, use SetMeanExpression instead.
- Parameters:
- value¶
the mean value symbol
- SetSeedExpression(expression)¶
Sets the mean value expression. The expression has to conform to the ASAM XIL GES syntax for ConstSymbol expressions.
- Parameters:
- expression : str¶
the mean expression
- SetSigmaExpression(expression)¶
Sets the sigma value expression. The expression has to conform to the ASAM XIL GES syntax for ConstSymbol expressions.
- Parameters:
- expression : str¶
the expression
- SetSigmaSymbol(value)¶
Sets a SymbolType object as sigma value of the segment. If you want to set the sigma value of the segment to an expression, use SetSigmaExpression instead.
- Parameters:
- value¶
the sigma value symbol
- SetStopTrigger(stopTrigger)¶
Sets the stop trigger of the segment
- Parameters:
- stopTrigger : str¶
The stop trigger