Class CipTOD

  • All Implemented Interfaces:
    BitAddressable, BoolHost

    public class CipTOD
    extends CipDINT
    CIP TIME_OF_DAY

    This type, encoded as an unsigned 32-bit integer, represents milliseconds since midnight on an arbitrary day. No allowance for time zones or DST changes is included.

    • Constructor Detail

      • CipTOD

        public CipTOD()
      • CipTOD

        public CipTOD​(int val)
      • CipTOD

        public CipTOD​(int[] dimensions)
      • CipTOD

        protected CipTOD​(CipTOD data,
                         int[] indices)
    • Method Detail

      • set

        public void set​(int[] indices,
                        java.lang.Integer val)
        Description copied from class: BaseDataType
        Application-side value storage. Subclasses must implement this function to store one value or complex element into the storage array.
        Overrides:
        set in class CipUDINT
        Parameters:
        indices - Array subscripts. Missing subscripts not allowed.
      • getNestingDef

        public DataDefinitionSeg getNestingDef()
        Description copied from class: BaseDataType
        Return the element (not including array) type definition as a Path Segment, using the abbreviated form if a composite data type.
        Overrides:
        getNestingDef in class CipDINT
      • crcName

        public java.lang.String crcName()
        Description copied from class: BaseDataType
        Obtain the name of this type as used for computing structure CRCs. Can be different from the name(s) used by the CipPath parser.
        Overrides:
        crcName in class CipDINT
        Returns:
      • copy

        public CipTOD copy()
        Description copied from class: BaseDataType
        Produce a deep clone of the object.
        Overrides:
        copy in class CipDINT
      • wrap

        public CipTOD wrap​(int[] indices)
        Description copied from class: BaseDataType
        Application-side wrapper for inner dimensions. Implementations must update memberOffsets if not not using the protected constructor.
        Overrides:
        wrap in class CipDINT
        Parameters:
        indices - Array subscripts. Missing subscripts are allowed.