Package uk.ac.gda.beans.exafs
Class XanesScanParameters
java.lang.Object
uk.ac.gda.beans.exafs.XanesScanParameters
- All Implemented Interfaces:
Serializable,IScanParameters,XMLRichBean
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcheckEngergyIncrease(double startEnergy, double stopEnergy) voidvoidclear()Method required to use with BeanUI.static XanesScanParameterscreateFromXML(String filename) booleangetEdge()Return the scannable name of this scan if applicable.inthashCode()booleanvoidvoidsetElement(String element) voidsetFinalEnergy(Double stopEnergy) voidsetRegions(List<Region> regions) voidsetScannableName(String scannableName) voidsetShouldValidate(boolean shouldValidate) toString()static voidwriteToXML(XanesScanParameters xanesScanParameters, String filename)
-
Field Details
-
mappingURL
URL of mapping file for EXAFS parameters. -
schemaUrl
URL of schema for EXAFS parameters.
-
-
Constructor Details
-
XanesScanParameters
public XanesScanParameters()constructor
-
-
Method Details
-
getFinalEnergy
- Returns:
- the stopEnergy
-
getInitialEnergy
-
setFinalEnergy
- Parameters:
stopEnergy- the stopEnergy to set
-
createFromXML
- Parameters:
filename-- Returns:
- scan parameters
- Throws:
Exception
-
writeToXML
public static void writeToXML(XanesScanParameters xanesScanParameters, String filename) throws Exception - Parameters:
xanesScanParameters-filename-- Throws:
Exception
-
getElement
- Returns:
- return element name
-
setElement
- Parameters:
element-
-
getEdge
- Returns:
- element edge type
-
setEdge
- Parameters:
edge-
-
getRegions
- Returns:
- list of regions
-
setRegions
- Parameters:
regions- the regions to set
-
addRegion
- Parameters:
region-
-
checkRegions
- Throws:
Exception
-
checkEngergyIncrease
- Throws:
Exception
-
hashCode
public int hashCode() -
equals
-
toString
-
getScannableName
Description copied from interface:IScanParametersReturn the scannable name of this scan if applicable.- Specified by:
getScannableNamein interfaceIScanParameters- Returns:
- Returns the scannableName.
-
setScannableName
- Parameters:
scannableName- The scannableName to set.
-
isShouldValidate
public boolean isShouldValidate()- Returns:
- Returns the shouldValidate.
-
setShouldValidate
public void setShouldValidate(boolean shouldValidate) - Parameters:
shouldValidate- The shouldValidate to set.
-
clear
public void clear()Method required to use with BeanUI. Called using reflection.
-