UxintAssertions
Short summary
This class provides assert statements for unsigned register length integers (__UXINT)
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| INTERNAL | No | No | AbstractAssertion | IUxintAssertions |
UML Diagram
Parameters
none
Properties
className
Type: CNM_AbstractObject.ClassName
This abstract property returns the class name of the concrete object, …
Methods
valueIsEqualTo
- Parameters:
currentValue(__UXINT): current value to checkexpectedValue(__UXINT): 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…
valueIsEven
- Parameters:
currentValue(__UXINT): current value to checkmessage(Tc2_System.T_MaxString): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is even…
valueIsGreaterThan
- Parameters:
currentValue(__UXINT): current value to checklessValue(__UXINT): 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(__UXINT): lower limit for the current valuecurrentValue(__UXINT): current value to checkupperLimit(__UXINT): 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(__UXINT): current value to checkgreaterValue(__UXINT): 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(__UXINT): current value to checkmaximumValue(__UXINT): 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(__UXINT): current value to checkminimumValue(__UXINT): 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(__UXINT): current value to checkunexpectedValue(__UXINT): 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…
valueIsOdd
- Parameters:
currentValue(__UXINT): current value to checkmessage(AssertMessage): message if the assertion is false
- Return type:
VOID
This assertion method checks if the current value is odd…
Code
Declaration
{attribute 'reflection'}
FUNCTION_BLOCK INTERNAL UxintAssertions EXTENDS AbstractAssertion IMPLEMENTS IUxintAssertions
VAR
END_VAR
VAR CONSTANT
LSB_MASK :__UXINT := 1;
END_VAR