Skip to main content

TimeOfDayAssertions32Bit

Short summary

This class provides assert statements for 32 bit time of day TOD. It implements the interface I32BitTodAssertions

AccessAbstractFinalExtendsImplements
INTERNALNoNoAbstractAssertionI32BitTodAssertions

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 (TOD): current value to check
    • expectedValue (TOD): expected value to compare
    • message (AssertMessage): message if the assertion is false
  • Return type: VOID

This assertion method checks if the current value is equal to the expected value

valueIsGreaterThan

  • Parameters:
    • currentValue (TOD): current value to check
    • lessValue (TOD): less than lower limit
    • message (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 (TOD): lower limit for the current value
    • currentValue (TOD): current value to check
    • upperLimit (TOD): upper limit for the current value
    • message (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 (TOD): current value to check
    • greaterValue (TOD): greater than upper limit
    • message (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 (TOD): current value to check
    • maximumValue (TOD): upper limit for the current value
    • message (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 (TOD): current value to check
    • minimumValue (TOD): lower limit for the current value
    • message (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 (TOD): current value to check
    • unexpectedValue (TOD): unexpected value to compare
    • message (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

Code

Declaration

{attribute 'reflection'}
FUNCTION_BLOCK INTERNAL TimeOfDayAssertions32Bit EXTENDS AbstractAssertion IMPLEMENTS I32BitTodAssertions
VAR
END_VAR