Skip to main content

DateAndTimeAssertions

Short summary​

This class provides assert statements for date and time types It implements IDateAndTimeAssertions For 32 bit date and time types use DateAndTimeAssertions.simple For 64 bit date and time types use IDateAndTimeAssertions.long

AccessAbstractFinalExtendsImplements
INTERNALNoNoCNM_AbstractObject.ObjectIDateAndTimeAssertions, IAssertCallBacksetter

UML Diagram​

Parameters

none

Properties​

className​

Type: CNM_AbstractObject.ClassName

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

long​

Type: ILongDateAndTimeAssertions

Returns an interface with assert statements for 64 bit times…

simple​

Type: ISimpleDateAndTimeAssertions

Returns the interface ISimpleDateAndTimeAssertions…

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 DateAndTimeAssertions
EXTENDS CNM_AbstractObject.Object
IMPLEMENTS IDateAndTimeAssertions, IAssertCallBacksetter
VAR
(* class to handle 32 bit date and time assertions *)
assertionsFor32BitTypes :SimpleDateAndTimeAssertions();
(* class to handle 64 bit date and time assertions *)
assertionsFor64BitTypes :LongDateAndTimeAssertions();
END_VAR