Skip to main content

LongDateAndTimeAssertions

Short summary

This class provides assert statements for date and time types with 32 bit length It implements the interface ISimpleDateAndTimeAssertions For date and time (DT) use SimpleDateAndTimeAssertions.dateAndTime For date (DATE) use SimpleDateAndTimeAssertions.dateOnly For time of day (TOD) use SimpleDateAndTimeAssertions.timeOfDay

AccessAbstractFinalExtendsImplements
INTERNALNoNoCNM_AbstractObject.ObjectILongDateAndTimeAssertions, IAssertCallBacksetter

UML Diagram

Parameters

none

Properties

className

Type: CNM_AbstractObject.ClassName

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

dateAndTime

Type: I64BitDtAssertions

Returns the interface I32BitDtAssertions

dateOnly

Type: I64BitDateAssertions

Returns the interface I32BitDateAssertions

timeOfDay

Type: I64BitTodAssertions

Returns the interface I32BitDateAssertions

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 LongDateAndTimeAssertions
EXTENDS CNM_AbstractObject.Object
IMPLEMENTS ILongDateAndTimeAssertions, IAssertCallBacksetter
VAR
(* class to handle date assertions *)
dateAssertions :DateAssertions64Bit();
(* class to handle date and time assertions *)
dateTimeAssertions :DateTimeAssertions64Bit();
(* class to handle time of day assertions *)
timeOfDayAssertions :TimeOfDayAssertions64Bit();
END_VAR