Package uk.ac.gda.server.ncd.meta
Class PerVisitExternalNcdMetadata
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
uk.ac.gda.server.ncd.meta.NcdMetaBaseProvider
uk.ac.gda.server.ncd.meta.PerVisitExternalNcdMetadata
- All Implemented Interfaces:
Configurable,Findable,gda.observable.IObserver,ExternalMetadataFile,INcdMetaProvider
- Direct Known Subclasses:
NcdBackground,NcdCalibration,NcdMaskLink
public abstract class PerVisitExternalNcdMetadata
extends NcdMetaBaseProvider
implements gda.observable.IObserver, ExternalMetadataFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.commons.configuration.XMLConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voidCheck file is valid before accepting it.voidclear()voidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.voidrefresh(NcdMsg.Refresh ref) voidvoidrestore()voidsetConfigFileName(String configFileName) voidsetDetectorType(String detectorType) voidsetExternalFile(String filepath) voidsetExternalFile(String filepath, String internal) voidsetMetaType(NcdMetaType metaType) voidsetVisitMeta(IMetadataEntry visit) toString()voidprotected abstract voidwrite(NXDetectorData nxdata, String treeName) voidwriteout(NXDetectorData nxdata, String treeName) Methods 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, reconfigure
-
Field Details
-
config
protected org.apache.commons.configuration.XMLConfiguration config
-
-
Constructor Details
-
PerVisitExternalNcdMetadata
public PerVisitExternalNcdMetadata()
-
-
Method Details
-
configure
Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase- Throws:
FactoryException- if there is an error in configuration e.g. required variable not set or cannot connect to device
-
setExternalFile
- Specified by:
setExternalFilein interfaceExternalMetadataFile
-
setExternalFile
- Specified by:
setExternalFilein interfaceExternalMetadataFile
-
clear
public void clear()- Specified by:
clearin interfaceExternalMetadataFile
-
restore
public void restore() -
refresh
-
requestChange
-
update
- Specified by:
updatein interfacegda.observable.IObserver
-
setConfigFileName
-
setDetectorType
-
setMetaType
-
setVisitMeta
-
getFilepath
-
getInternalPath
-
writeout
- Specified by:
writeoutin interfaceINcdMetaProvider
-
toString
-
checkFile
Check file is valid before accepting it. Base implementation just checks file exists. Subclasses can perform further checks including of internal path. Should throw exception if not valid.- Parameters:
file-internal-- Throws:
IllegalArgumentException- if file is not valid
-
__call__
-
__call__
-
write
-