SimpleTimeAssertions
Short summary
This class implements the interface I32BitTimeAssertions.
It contains the assert statements for the data type TIME
==
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| INTERNAL | No | No | AbstractAssertion | I32BitTimeAssertions |
UML Diagram
Parameters
none
Properties
className
Type: CNM_AbstractObject.ClassName
This abstract property returns the class name of the concrete object, …
Methods
getTimePassed
- Parameters:
startTime(TIME): timestamp start
- Return type:
TIME
This method returns the passed time since the timestamp was created…
timeHasExpired
- Parameters:
timestamp(TIME): start time you get it withTIME()expiringTime(TIME): timeout liket#300msmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks whether time has elapsed since the timestamp time…
timeHasNotExpired
- Parameters:
timestamp(TIME): start time you get it withTIME()expiringTime(TIME): timeout liket#300msmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks that the time since the timestamp time has not yet elapsed…
valueIsEqualTo
- Parameters:
currentValue(TIME): current value to checkexpectedValue(TIME): expected value to comparemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is equal to the expected value…
valueIsGreaterThan
- Parameters:
currentValue(TIME): current value to checklessValue(TIME): less than lower limitmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is greater than the less value…
valueIsInRangeOf
- Parameters:
lowerLimit(TIME): lower limit for the current valuecurrentValue(TIME): current value to checkupperLimit(TIME): upper limit for the current valuemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is inside a limit…
valueIsLessThan
- Parameters:
currentValue(TIME): current value to checkgreaterValue(TIME): greater than upper limitmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is less than the greater value…
valueIsMax
- Parameters:
currentValue(TIME): current value to checkmaximumValue(TIME): upper limit for the current valuemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is less than or equal to the maximum value…
valueIsMin
- Parameters:
currentValue(TIME): current value to checkminimumValue(TIME): lower limit for the current valuemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is greater than or equal to the minimum value…
valueIsNotEqualTo
- Parameters:
currentValue(TIME): current value to checkunexpectedValue(TIME): unexpected value to comparemessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is not equal to the unexpected value…
Code
Declaration
{attribute 'reflection'}
FUNCTION_BLOCK INTERNAL SimpleTimeAssertions EXTENDS AbstractAssertion IMPLEMENTS I32BitTimeAssertions
VAR CONSTANT
(* maximum value for the data type ``TIME`` *)
MAX_TIME :TIME := TO_TIME(16#FF_FF_FF_FF);
END_VAR