All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generated.docs.javadoc.org.eclipse.dawnsci.nexus.impl.NXmonochromatorImpl.html Maven / Gradle / Ivy






NXmonochromatorImpl (h5jan API)












org.eclipse.dawnsci.nexus.impl

Class NXmonochromatorImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<NodeLink>, GroupNode, Node, NXmonochromator, NXobject


    public class NXmonochromatorImpl
    extends NXobjectImpl
    implements NXmonochromator
    A wavelength defining device. This is a base class for everything which selects a wavelength or energy, be it a monochromator crystal, a velocity selector, an undulator or whatever. The expected units are: * wavelength: angstrom * energy: eV
    See Also:
    Serialized Form
    • Field Detail

      • PERMITTED_CHILD_GROUP_CLASSES

        public static final java.util.Set<NexusBaseClass> PERMITTED_CHILD_GROUP_CLASSES
    • Constructor Detail

      • NXmonochromatorImpl

        public NXmonochromatorImpl()
      • NXmonochromatorImpl

        public NXmonochromatorImpl(long oid)
    • Method Detail

      • getNXclass

        public java.lang.Class<? extends NXobject> getNXclass()
        Description copied from interface: NXobject
        Java Class object of the interface for this base class, e.g. NXsample.class.
        Specified by:
        getNXclass in interface NXobject
        Returns:
        name of Nexus class
      • getWavelength

        public IDataset getWavelength()
        Description copied from interface: NXmonochromator
        wavelength selected

        Type: NX_FLOAT Units: NX_WAVELENGTH

        Specified by:
        getWavelength in interface NXmonochromator
        Returns:
        the value.
      • getWavelengthScalar

        public java.lang.Double getWavelengthScalar()
        Description copied from interface: NXmonochromator
        wavelength selected

        Type: NX_FLOAT Units: NX_WAVELENGTH

        Specified by:
        getWavelengthScalar in interface NXmonochromator
        Returns:
        the value.
      • setWavelength

        public DataNode setWavelength(IDataset wavelength)
        Description copied from interface: NXmonochromator
        wavelength selected

        Type: NX_FLOAT Units: NX_WAVELENGTH

        Specified by:
        setWavelength in interface NXmonochromator
        Parameters:
        wavelength - the wavelength
      • setWavelengthScalar

        public DataNode setWavelengthScalar(java.lang.Double wavelength)
        Description copied from interface: NXmonochromator
        wavelength selected

        Type: NX_FLOAT Units: NX_WAVELENGTH

        Specified by:
        setWavelengthScalar in interface NXmonochromator
        Parameters:
        wavelength - the wavelength
      • getWavelength_error

        public IDataset getWavelength_error()
        Description copied from interface: NXmonochromator
        wavelength standard deviation

        Type: NX_FLOAT Units: NX_WAVELENGTH

        Specified by:
        getWavelength_error in interface NXmonochromator
        Returns:
        the value.
      • getWavelength_errorScalar

        public java.lang.Double getWavelength_errorScalar()
        Description copied from interface: NXmonochromator
        wavelength standard deviation

        Type: NX_FLOAT Units: NX_WAVELENGTH

        Specified by:
        getWavelength_errorScalar in interface NXmonochromator
        Returns:
        the value.
      • setWavelength_error

        public DataNode setWavelength_error(IDataset wavelength_error)
        Description copied from interface: NXmonochromator
        wavelength standard deviation

        Type: NX_FLOAT Units: NX_WAVELENGTH

        Specified by:
        setWavelength_error in interface NXmonochromator
        Parameters:
        wavelength_error - the wavelength_error
      • setWavelength_errorScalar

        public DataNode setWavelength_errorScalar(java.lang.Double wavelength_error)
        Description copied from interface: NXmonochromator
        wavelength standard deviation

        Type: NX_FLOAT Units: NX_WAVELENGTH

        Specified by:
        setWavelength_errorScalar in interface NXmonochromator
        Parameters:
        wavelength_error - the wavelength_error
      • getEnergy

        public IDataset getEnergy()
        Description copied from interface: NXmonochromator
        energy selected

        Type: NX_FLOAT Units: NX_ENERGY

        Specified by:
        getEnergy in interface NXmonochromator
        Returns:
        the value.
      • getEnergyScalar

        public java.lang.Double getEnergyScalar()
        Description copied from interface: NXmonochromator
        energy selected

        Type: NX_FLOAT Units: NX_ENERGY

        Specified by:
        getEnergyScalar in interface NXmonochromator
        Returns:
        the value.
      • setEnergy

        public DataNode setEnergy(IDataset energy)
        Description copied from interface: NXmonochromator
        energy selected

        Type: NX_FLOAT Units: NX_ENERGY

        Specified by:
        setEnergy in interface NXmonochromator
        Parameters:
        energy - the energy
      • setEnergyScalar

        public DataNode setEnergyScalar(java.lang.Double energy)
        Description copied from interface: NXmonochromator
        energy selected

        Type: NX_FLOAT Units: NX_ENERGY

        Specified by:
        setEnergyScalar in interface NXmonochromator
        Parameters:
        energy - the energy
      • getEnergy_error

        public IDataset getEnergy_error()
        Description copied from interface: NXmonochromator
        energy standard deviation

        Type: NX_FLOAT Units: NX_ENERGY

        Specified by:
        getEnergy_error in interface NXmonochromator
        Returns:
        the value.
      • getEnergy_errorScalar

        public java.lang.Double getEnergy_errorScalar()
        Description copied from interface: NXmonochromator
        energy standard deviation

        Type: NX_FLOAT Units: NX_ENERGY

        Specified by:
        getEnergy_errorScalar in interface NXmonochromator
        Returns:
        the value.
      • setEnergy_error

        public DataNode setEnergy_error(IDataset energy_error)
        Description copied from interface: NXmonochromator
        energy standard deviation

        Type: NX_FLOAT Units: NX_ENERGY

        Specified by:
        setEnergy_error in interface NXmonochromator
        Parameters:
        energy_error - the energy_error
      • setEnergy_errorScalar

        public DataNode setEnergy_errorScalar(java.lang.Double energy_error)
        Description copied from interface: NXmonochromator
        energy standard deviation

        Type: NX_FLOAT Units: NX_ENERGY

        Specified by:
        setEnergy_errorScalar in interface NXmonochromator
        Parameters:
        energy_error - the energy_error
      • setCrystal

        public void setCrystal(NXcrystal crystal)
        Description copied from interface: NXmonochromator
        Use as many crystals as necessary to describe
        Specified by:
        setCrystal in interface NXmonochromator
        Parameters:
        crystal - the crystal
      • getCrystal

        public NXcrystal getCrystal(java.lang.String name)
        Description copied from interface: NXmonochromator
        Get a NXcrystal node by name:
        • Use as many crystals as necessary to describe
        Specified by:
        getCrystal in interface NXmonochromator
        Parameters:
        name - the name of the node.
        Returns:
        a map from node names to the NXcrystal for that node.
      • setCrystal

        public void setCrystal(java.lang.String name,
                               NXcrystal crystal)
        Description copied from interface: NXmonochromator
        Set a NXcrystal node by name:
        • Use as many crystals as necessary to describe
        Specified by:
        setCrystal in interface NXmonochromator
        Parameters:
        name - the name of the node
        crystal - the value to set
      • getAllCrystal

        public java.util.Map<java.lang.String,NXcrystal> getAllCrystal()
        Description copied from interface: NXmonochromator
        Get all NXcrystal nodes:
        • Use as many crystals as necessary to describe
        Specified by:
        getAllCrystal in interface NXmonochromator
        Returns:
        a map from node names to the NXcrystal for that node.
      • setAllCrystal

        public void setAllCrystal(java.util.Map<java.lang.String,NXcrystal> crystal)
        Description copied from interface: NXmonochromator
        Set multiple child nodes of a particular type.
        • Use as many crystals as necessary to describe
        Specified by:
        setAllCrystal in interface NXmonochromator
        Parameters:
        crystal - the child nodes to add
      • getVelocity_selector

        public NXvelocity_selector getVelocity_selector(java.lang.String name)
        Description copied from interface: NXmonochromator
        Get a NXvelocity_selector node by name:
        Specified by:
        getVelocity_selector in interface NXmonochromator
        Parameters:
        name - the name of the node.
        Returns:
        a map from node names to the NXvelocity_selector for that node.
      • setVelocity_selector

        public void setVelocity_selector(java.lang.String name,
                                         NXvelocity_selector velocity_selector)
        Description copied from interface: NXmonochromator
        Set a NXvelocity_selector node by name:
        Specified by:
        setVelocity_selector in interface NXmonochromator
        Parameters:
        name - the name of the node
        velocity_selector - the value to set
      • getGrating

        public NXgrating getGrating(java.lang.String name)
        Description copied from interface: NXmonochromator
        Get a NXgrating node by name:
        • For diffraction grating based monochromators
        Specified by:
        getGrating in interface NXmonochromator
        Parameters:
        name - the name of the node.
        Returns:
        a map from node names to the NXgrating for that node.
      • setGrating

        public void setGrating(java.lang.String name,
                               NXgrating grating)
        Description copied from interface: NXmonochromator
        Set a NXgrating node by name:
        • For diffraction grating based monochromators
        Specified by:
        setGrating in interface NXmonochromator
        Parameters:
        name - the name of the node
        grating - the value to set
      • getAllGrating

        public java.util.Map<java.lang.String,NXgrating> getAllGrating()
        Description copied from interface: NXmonochromator
        Get all NXgrating nodes:
        • For diffraction grating based monochromators
        Specified by:
        getAllGrating in interface NXmonochromator
        Returns:
        a map from node names to the NXgrating for that node.
      • setAllGrating

        public void setAllGrating(java.util.Map<java.lang.String,NXgrating> grating)
        Description copied from interface: NXmonochromator
        Set multiple child nodes of a particular type.
        • For diffraction grating based monochromators
        Specified by:
        setAllGrating in interface NXmonochromator
        Parameters:
        grating - the child nodes to add




© 2015 - 2024 Weber Informatics LLC | Privacy Policy