Class PVTimeStampFactory

  • All Implemented Interfaces:
    PVTimeStamp

    public class PVTimeStampFactory
    extends Object
    implements PVTimeStamp
    Implementation of PVTimeStamp.
    Author:
    mrk
    • Constructor Detail

      • PVTimeStampFactory

        public PVTimeStampFactory()
    • Method Detail

      • create

        public static PVTimeStamp create()
        Create a PVTimeStamp.
        Returns:
        the newly created PVTimeStamp
      • attach

        public boolean attach​(PVField pvField)
        Description copied from interface: PVTimeStamp
        Attempt to attach to a timeStamp field. The field must either be an timeStamp field itself or the field must be named value and a timeStamp is found somewhere up the parent tree.
        Specified by:
        attach in interface PVTimeStamp
        Parameters:
        pvField - the field for which to find a timeStamp field
        Returns:
        (false,true) if timeStamp field (not found, found)
      • detach

        public void detach()
        Description copied from interface: PVTimeStamp
        Remove attachment to timeStamp field.
        Specified by:
        detach in interface PVTimeStamp
      • isAttached

        public boolean isAttached()
        Description copied from interface: PVTimeStamp
        Is this attached to a timeStamp structure.
        Specified by:
        isAttached in interface PVTimeStamp
        Returns:
        (false,true) is (not, is) attached to a timeStamp structure.
      • get

        public void get​(TimeStamp timeStamp)
        Description copied from interface: PVTimeStamp
        Get the time stamp values from the attached time stamp field and write to the specified TimeStamp.
        Specified by:
        get in interface PVTimeStamp
        Parameters:
        timeStamp - the TimeStamp to be updated
      • set

        public boolean set​(TimeStamp timeStamp)
        Description copied from interface: PVTimeStamp
        Set the timeStamp.
        Specified by:
        set in interface PVTimeStamp
        Parameters:
        timeStamp - the new value
        Returns:
        (false,true) if the timeStamp field is (immutable,updated)