SimpleDateAndTimeAssertions
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
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| INTERNAL | No | No | CNM_AbstractObject.Object | ISimpleDateAndTimeAssertions, IAssertCallBacksetter |
UML Diagram
Parameters
none
Properties
className
Type: CNM_AbstractObject.ClassName
This abstract property returns the class name of the concrete object, …
dateAndTime
Type: I32BitDtAssertions
Returns the interface I32BitDtAssertions…
dateOnly
Type: I32BitDateAssertions
Returns the interface I32BitDateAssertions…
timeOfDay
Type: I32BitTodAssertions
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 SimpleDateAndTimeAssertions
EXTENDS CNM_AbstractObject.Object
IMPLEMENTS ISimpleDateAndTimeAssertions, IAssertCallBacksetter
VAR
(* class to handle date assertions *)
dateAssertions :DateAssertions32Bit();
(* class to handle date and time assertions *)
dateTimeAssertions :DateTimeAssertions32Bit();
(* class to handle time of day assertions *)
timeOfDayAssertions :TimeOfDayAssertions32Bit();
END_VAR