Package org.epics.pvdata.property
Class PVTimeStampFactory
- java.lang.Object
-
- org.epics.pvdata.property.PVTimeStampFactory
-
- All Implemented Interfaces:
PVTimeStamp
public class PVTimeStampFactory extends Object implements PVTimeStamp
Implementation of PVTimeStamp.- Author:
- mrk
-
-
Constructor Summary
Constructors Constructor Description PVTimeStampFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanattach(PVField pvField)Attempt to attach to a timeStamp field.static PVTimeStampcreate()Create a PVTimeStamp.voiddetach()Remove attachment to timeStamp field.voidget(TimeStamp timeStamp)Get the time stamp values from the attached time stamp field and write to the specified TimeStamp.booleanisAttached()Is this attached to a timeStamp structure.booleanset(TimeStamp timeStamp)Set the timeStamp.
-
-
-
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:PVTimeStampAttempt 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:
attachin interfacePVTimeStamp- 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:PVTimeStampRemove attachment to timeStamp field.- Specified by:
detachin interfacePVTimeStamp
-
isAttached
public boolean isAttached()
Description copied from interface:PVTimeStampIs this attached to a timeStamp structure.- Specified by:
isAttachedin interfacePVTimeStamp- Returns:
- (false,true) is (not, is) attached to a timeStamp structure.
-
get
public void get(TimeStamp timeStamp)
Description copied from interface:PVTimeStampGet the time stamp values from the attached time stamp field and write to the specified TimeStamp.- Specified by:
getin interfacePVTimeStamp- Parameters:
timeStamp- the TimeStamp to be updated
-
set
public boolean set(TimeStamp timeStamp)
Description copied from interface:PVTimeStampSet the timeStamp.- Specified by:
setin interfacePVTimeStamp- Parameters:
timeStamp- the new value- Returns:
- (false,true) if the timeStamp field is (immutable,updated)
-
-