Package gda.data.metadata
Class EpicsMetadataEntry
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.data.metadata.MetadataEntry
gda.data.metadata.EpicsMetadataEntry
- All Implemented Interfaces:
IMetadataEntry,Configurable,Findable,gda.observable.IObservable,Serializable
A
MetadataEntry that gets it value by reading an EPICS PV.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static doubleThe timeout for reading PVs referenced by metadata objects. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an EPICS metadata entry.EpicsMetadataEntry(String name, String pvName) Creates an EPICS metadata entry with the specified name that will fetch the value of the specified PV. -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure Method.Returns the actual value of the metadata entry.voidSets the PV from which this metadata entry will retrieve its value.Methods inherited from class gda.data.metadata.MetadataEntry
addIObserver, canStoreValue, deleteIObserver, deleteIObservers, getDefEntryName, getMetadataValue, notifyIObservers, setDefEntryName, setValue, toStringMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigureAtStartup, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.data.metadata.IMetadataEntry
getName, setName
-
Field Details
-
EPICS_TIMEOUT
protected static double EPICS_TIMEOUTThe timeout for reading PVs referenced by metadata objects.
-
-
Constructor Details
-
EpicsMetadataEntry
public EpicsMetadataEntry()Creates an EPICS metadata entry. -
EpicsMetadataEntry
Creates an EPICS metadata entry with the specified name that will fetch the value of the specified PV.- Parameters:
name- the metadata entry namepvName- the EPICS PV name
-
-
Method Details
-
setPvName
Sets the PV from which this metadata entry will retrieve its value.- Parameters:
pvName- the EPICS PV name
-
configure
Description copied from class:MetadataEntryConfigure Method.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classMetadataEntry- Throws:
FactoryException
-
readActualValue
Description copied from class:MetadataEntryReturns the actual value of the metadata entry. Any exception can be thrown by this method, which will causeMetadataEntry.getMetadataValue()to look for a default value (if one is specified).- Specified by:
readActualValuein classMetadataEntry- Returns:
- the entry's actual value
- Throws:
Exception- if the value cannot be retrieved
-