Skip to main content

UnsignedIntegerAssertions

Short summary​

This class provides assert statements for unsigned integers from 8~64 bit length It implements the interface IUnsignedIntegerAssertions For 8 bit intgers use UnsignedIntegerAssertions.short For 16 bit intgers use UnsignedIntegerAssertions.simple For 32 bit intgers use UnsignedIntegerAssertions.double For 64 bit intgers use UnsignedIntegerAssertions.long For integers in register length use UnsignedIntegerAssertions.x

AccessAbstractFinalExtendsImplements
INTERNALNoNoCNM_AbstractObject.ObjectIUnsignedIntegerAssertions

UML Diagram​

Parameters

none

Properties​

className​

Type: CNM_AbstractObject.ClassName

This abstract property returns the class name of the concrete object, …

double​

Type: IUdintAssertions

Returns the interface IUdintAssertions with assert statements for unsigned 32 bit integers…

long​

Type: IUlintAssertions

Returns the interface IUlintAssertions with assert statements for unsigned 64 bit integers…

short​

Type: IUsintAssertions

Returns the interface IUsintAssertions with assert statements for unsigned 8 bit integers…

simple​

Type: IUintAssertions

Returns the interface IUintAssertions with assert statements for unsigned 16 bit integers…

x​

Type: IUxintAssertions

Returns the interface IUxintAssertions with assert statements for unsigned integers register length…

Methods​

setCallBack​

  • Parameters:
    • callBack (IAssertCallBack): the class that must be informed if an assertion is false
  • Return type: VOID

This methods is the setter for the callback class if an assertion was false…

Code​

Declaration​

{attribute 'reflection'}
FUNCTION_BLOCK INTERNAL UnsignedIntegerAssertions EXTENDS CNM_AbstractObject.Object IMPLEMENTS IUnsignedIntegerAssertions
VAR
(* class to handle assert statements for unsigned short integers *)
usintAssertions :UsintAssertions();
(* class to handle assert statements for unsigned integers *)
uintAssertions :UintAssertions();
(* class to handle assert statements for unsigned double integers *)
udintAssertions :UdintAssertions();
(* class to handle assert statements for unsigned register length integers *)
uxintAssertions :UxintAssertions();
(* class to handle assert statements for unsigned long integers *)
ulintAssertions :UlintAssertions();
END_VAR