Package gda.beamline.beamline
Class Beamline
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.beamline.beamline.Beamline
- All Implemented Interfaces:
BeamlineInfo,Configurable,Findable,gda.observable.IObservable,Serializable
This class provides access methods for users to query or change beamline parameters used in data collection, such as
current data directory, file prefix, etc.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIObserver(gda.observable.IObserver anIObserver) 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.voiddeleteIObserver(gda.observable.IObserver anIObserver) voidgets the current data directorygets the extension name for the data file namegets the extension name for the data file nameintreturns current file numbergets the prefix for the data file name.gets the suffix for the data file namegets the header string for this beamlineintreturns the next file number.gets the extension name for the data file namegets the sub-header string for the beamlinebooleanCheck whether the configure method should be called when the server is instantiated.voidsetConfigureAtStartup(boolean configureAtStartup) Set a flag to inform the server whether the configure method should be called at startup.voidsetDataDir(String dataDir) sets or changes the current data directory to the value specified.voidsetExperimentName(String experiment) sets or change the extension name to the specified value for data file name.voidsetFileExtension(String fileExtension) sets or change the extension name to the specified value for data file name.voidsetFilePrefix(String filePrefix) sets or changes the prefix for the data file name to the specified value.voidsetFileSuffix(String fileSuffix) sets or changes the suffix for data file name to the specified value.voidsets the header string for this beamlinevoidsetProjectName(String project) sets or change the extension name to the specified value for data file name.voidsetSubHeader(String subHeader) sets the sub-header string for the beamlineMethods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
isConfigured, reconfigure, setConfigured
-
Constructor Details
-
Beamline
public Beamline()constructor
-
-
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
-
getDataDir
Description copied from interface:BeamlineInfogets the current data directory- Specified by:
getDataDirin interfaceBeamlineInfo- Returns:
- path to current data directory
-
setDataDir
Description copied from interface:BeamlineInfosets or changes the current data directory to the value specified. It provides a way to change gda output data directory after GDA has started.- Specified by:
setDataDirin interfaceBeamlineInfo- Parameters:
dataDir-
-
getFilePrefix
Description copied from interface:BeamlineInfogets the prefix for the data file name.- Specified by:
getFilePrefixin interfaceBeamlineInfo- Returns:
- file prefix
-
setFilePrefix
Description copied from interface:BeamlineInfosets or changes the prefix for the data file name to the specified value.- Specified by:
setFilePrefixin interfaceBeamlineInfo- Parameters:
filePrefix-
-
getFileSuffix
Description copied from interface:BeamlineInfogets the suffix for the data file name- Specified by:
getFileSuffixin interfaceBeamlineInfo- Returns:
- file suffix
-
setFileSuffix
Description copied from interface:BeamlineInfosets or changes the suffix for data file name to the specified value.- Specified by:
setFileSuffixin interfaceBeamlineInfo- Parameters:
fileSuffix-
-
getFileExtension
Description copied from interface:BeamlineInfogets the extension name for the data file name- Specified by:
getFileExtensionin interfaceBeamlineInfo- Returns:
- file extension
-
setFileExtension
Description copied from interface:BeamlineInfosets or change the extension name to the specified value for data file name.- Specified by:
setFileExtensionin interfaceBeamlineInfo- Parameters:
fileExtension-
-
getFileNumber
public int getFileNumber()Description copied from interface:BeamlineInforeturns current file number- Specified by:
getFileNumberin interfaceBeamlineInfo- Returns:
- the current file number
-
getNextFileNumber
public int getNextFileNumber()Description copied from interface:BeamlineInforeturns the next file number. This causes the NumTracker to increment the file number for the system.- Specified by:
getNextFileNumberin interfaceBeamlineInfo- Returns:
- the next file number
-
getProjectName
Description copied from interface:BeamlineInfogets the extension name for the data file name- Specified by:
getProjectNamein interfaceBeamlineInfo- Returns:
- file extension
-
setProjectName
Description copied from interface:BeamlineInfosets or change the extension name to the specified value for data file name.- Specified by:
setProjectNamein interfaceBeamlineInfo- Parameters:
project-
-
getExperimentName
Description copied from interface:BeamlineInfogets the extension name for the data file name- Specified by:
getExperimentNamein interfaceBeamlineInfo- Returns:
- file extension
-
setExperimentName
Description copied from interface:BeamlineInfosets or change the extension name to the specified value for data file name.- Specified by:
setExperimentNamein interfaceBeamlineInfo- Parameters:
experiment-
-
getHeader
Description copied from interface:BeamlineInfogets the header string for this beamline- Specified by:
getHeaderin interfaceBeamlineInfo- Returns:
- header
-
setHeader
Description copied from interface:BeamlineInfosets the header string for this beamline- Specified by:
setHeaderin interfaceBeamlineInfo- Parameters:
header-
-
getSubHeader
Description copied from interface:BeamlineInfogets the sub-header string for the beamline- Specified by:
getSubHeaderin interfaceBeamlineInfo- Returns:
- sub-header
-
setSubHeader
Description copied from interface:BeamlineInfosets the sub-header string for the beamline- Specified by:
setSubHeaderin interfaceBeamlineInfo- Parameters:
subHeader-
-
isConfigureAtStartup
public boolean isConfigureAtStartup()Check whether the configure method should be called when the server is instantiated.- Specified by:
isConfigureAtStartupin interfaceConfigurable- Overrides:
isConfigureAtStartupin classConfigurableBase- Returns:
- true if configuration is required at startup.
-
setConfigureAtStartup
public void setConfigureAtStartup(boolean configureAtStartup) Set a flag to inform the server whether the configure method should be called at startup.- Parameters:
configureAtStartup- true to configure at startup.
-
addIObserver
public void addIObserver(gda.observable.IObserver anIObserver) - Specified by:
addIObserverin interfacegda.observable.IObservable
-
deleteIObserver
public void deleteIObserver(gda.observable.IObserver anIObserver) - Specified by:
deleteIObserverin interfacegda.observable.IObservable
-
deleteIObservers
public void deleteIObservers()- Specified by:
deleteIObserversin interfacegda.observable.IObservable
-