Package org.eclipse.dawnsci.nexus
Interface NXcomponent
- All Known Subinterfaces:
NXactuator,NXaperture,NXattenuator,NXbeam_splitter,NXbeam_stop,NXbending_magnet,NXcapillary,NXcircuit,NXcollectioncolumn,NXcollimator,NXcontainer,NXcorrector_cs,NXcrystal,NXcs_memory,NXcs_processor,NXcs_storage,NXdeflector,NXdetector,NXdisk_chopper,NXebeam_column,NXelectromagnetic_lens,NXelectron_detector,NXelectronanalyzer,NXelectrostatic_kicker,NXenergydispersion,NXfermi_chopper,NXfilter,NXflipper,NXfresnel_zone_plate,NXgrating,NXguide,NXibeam_column,NXinsertion_device,NXmagnetic_kicker,NXmanipulator,NXmirror,NXmoderator,NXmonitor,NXmonochromator,NXoptical_fiber,NXoptical_lens,NXoptical_polarizer,NXoptical_window,NXpid_controller,NXpinhole,NXpolarizer,NXpositioner,NXpump,NXquadrupole_magnet,NXsample,NXsample_component,NXscan_controller,NXsensor,NXseparator,NXslit,NXsolenoid_magnet,NXsource,NXspin_rotator,NXspindispersion,NXvelocity_selector,NXwaveplate,NXxraylens
Base class for components of an instrument - real ones or simulated ones.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.eclipse.dawnsci.nexus.NXobject
NX_ATTRIBUTE_DEFAULT -
Method Summary
Modifier and TypeMethodDescriptionGet all NXfabrication nodes:Get all NXprogram nodes:Get all NXtransformations nodes: Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument.org.eclipse.january.dataset.DatasetWas the component used?Was the component used?org.eclipse.january.dataset.DatasetSpecifies the position of the component by pointing to the last transformation in the transformation chain that is defined via the NXtransformations group.Specifies the position of the component by pointing to the last transformation in the transformation chain that is defined via the NXtransformations group.org.eclipse.january.dataset.DatasetIdeally, use instances of ``identifierNAME`` to point to a resource that provides further details.Ideally, use instances of ``identifierNAME`` to point to a resource that provides further details.getFabrication(String name) Get a NXfabrication node by name:org.eclipse.january.dataset.DatasetInstance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as input(s) to this component.Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as input(s) to this component.org.eclipse.january.dataset.DatasetgetName()Name of the component.Name of the component.org.eclipse.january.dataset.DatasetInstance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as output(s) of this component.Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as output(s) of this component.getProgram(String name) Get a NXprogram node by name:Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument.getTransformations(String name) Get a NXtransformations node by name: Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument.voidsetAllFabrication(Map<String, NXfabrication> fabrication) Set multiple child nodes of a particular type.voidsetAllProgram(Map<String, NXprogram> program) Set multiple child nodes of a particular type.voidsetAllTransformations(Map<String, NXtransformations> transformations) Set multiple child nodes of a particular type.setApplied(org.eclipse.january.dataset.IDataset appliedDataset) Was the component used?setAppliedScalar(Boolean appliedValue) Was the component used?setDepends_on(org.eclipse.january.dataset.IDataset depends_onDataset) Specifies the position of the component by pointing to the last transformation in the transformation chain that is defined via the NXtransformations group.setDepends_onScalar(String depends_onValue) Specifies the position of the component by pointing to the last transformation in the transformation chain that is defined via the NXtransformations group.setDescription(org.eclipse.january.dataset.IDataset descriptionDataset) Ideally, use instances of ``identifierNAME`` to point to a resource that provides further details.setDescriptionScalar(String descriptionValue) Ideally, use instances of ``identifierNAME`` to point to a resource that provides further details.voidsetFabrication(String name, NXfabrication fabrication) Set a NXfabrication node by name:voidsetFabrication(NXfabrication fabricationGroup) setInputs(org.eclipse.january.dataset.IDataset inputsDataset) Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as input(s) to this component.setInputsScalar(String inputsValue) Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as input(s) to this component.setName(org.eclipse.january.dataset.IDataset nameDataset) Name of the component.setNameScalar(String nameValue) Name of the component.setOutputs(org.eclipse.january.dataset.IDataset outputsDataset) Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as output(s) of this component.setOutputsScalar(String outputsValue) Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as output(s) of this component.voidsetProgram(String name, NXprogram program) Set a NXprogram node by name:voidsetProgram(NXprogram programGroup) voidsetTransformations(String name, NXtransformations transformations) Set a NXtransformations node by name: Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument.voidsetTransformations(NXtransformations transformationsGroup) Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument.Methods inherited from interface org.eclipse.dawnsci.analysis.api.tree.GroupNode
addDataNode, addGroupNode, addNode, addNodeLink, addSymbolicNode, containsDataNode, containsGroupNode, containsNode, containsSymbolicNode, findLinkedNodeName, findNode, findNodeLink, getDataNode, getDataNodeMap, getDataNodeNames, getDataNodes, getDatasets, getGlobalPool, getGroupNode, getGroupNodeMap, getGroupNodeNames, getGroupNodes, getNames, getNode, getNodeLink, getNodeNameIterator, getNumberOfDataNodes, getNumberOfGroupNodes, getNumberOfNodelinks, getSymbolicNode, getSymbolicNodeNames, isPopulated, iterator, removeDataNode, removeDataNode, removeGroupNode, removeGroupNode, removeSymbolicNode, removeSymbolicNode, setGlobalPoolMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.eclipse.dawnsci.analysis.api.tree.Node
addAttribute, containsAttribute, getAttribute, getAttributeIterator, getAttributeNameIterator, getAttributeNames, getID, getNumberOfAttributes, isDataNode, isGroupNode, isSymbolicNode, removeAttribute, removeAttributeMethods inherited from interface org.eclipse.dawnsci.nexus.NXobject
addExternalLink, canAddChild, createDataNode, getAllDatasets, getAttr, getAttrBoolean, getAttrDate, getAttrDouble, getAttributeDefault, getAttrLong, getAttrNumber, getAttrString, getBoolean, getChild, getChildren, getChildren, getDataset, getDate, getDouble, getLazyDataset, getLazyWritableDataset, getLong, getNexusBaseClass, getNumber, getNXclass, getPermittedChildGroupClasses, getString, initializeFixedSizeLazyDataset, initializeLazyDataset, initializeLazyDataset, initializeLazyDataset, putChild, setAttribute, setAttributeDefault, setChildren, setDataset, setField
-
Field Details
-
NX_APPLIED
- See Also:
-
NX_NAME
- See Also:
-
NX_DESCRIPTION
- See Also:
-
NX_INPUTS
- See Also:
-
NX_OUTPUTS
- See Also:
-
NX_DEPENDS_ON
- See Also:
-
-
Method Details
-
getApplied
org.eclipse.january.dataset.Dataset getApplied()Was the component used?Type: NX_BOOLEAN
- Returns:
- the value.
-
setApplied
Was the component used?Type: NX_BOOLEAN
- Parameters:
appliedDataset- the appliedDataset
-
getAppliedScalar
Boolean getAppliedScalar()Was the component used?Type: NX_BOOLEAN
- Returns:
- the value.
-
setAppliedScalar
Was the component used?Type: NX_BOOLEAN
- Parameters:
applied- the applied
-
getName
org.eclipse.january.dataset.Dataset getName()Name of the component.Type: NX_CHAR
- Returns:
- the value.
-
setName
Name of the component.Type: NX_CHAR
- Parameters:
nameDataset- the nameDataset
-
getNameScalar
String getNameScalar()Name of the component.Type: NX_CHAR
- Returns:
- the value.
-
setNameScalar
Name of the component.Type: NX_CHAR
- Parameters:
name- the name
-
getDescription
org.eclipse.january.dataset.Dataset getDescription()Ideally, use instances of ``identifierNAME`` to point to a resource that provides further details. If such a resource does not exist or should not be used, use this free text, although it is not recommended.Type: NX_CHAR
- Returns:
- the value.
-
setDescription
Ideally, use instances of ``identifierNAME`` to point to a resource that provides further details. If such a resource does not exist or should not be used, use this free text, although it is not recommended.Type: NX_CHAR
- Parameters:
descriptionDataset- the descriptionDataset
-
getDescriptionScalar
String getDescriptionScalar()Ideally, use instances of ``identifierNAME`` to point to a resource that provides further details. If such a resource does not exist or should not be used, use this free text, although it is not recommended.Type: NX_CHAR
- Returns:
- the value.
-
setDescriptionScalar
Ideally, use instances of ``identifierNAME`` to point to a resource that provides further details. If such a resource does not exist or should not be used, use this free text, although it is not recommended.Type: NX_CHAR
- Parameters:
description- the description
-
getInputs
org.eclipse.january.dataset.Dataset getInputs()Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as input(s) to this component. Each input should point to the path of the group acting as input. An example usage would be to chain components and/or beams together to describe the beam path in an experiment.Type: NX_CHAR
- Returns:
- the value.
-
setInputs
Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as input(s) to this component. Each input should point to the path of the group acting as input. An example usage would be to chain components and/or beams together to describe the beam path in an experiment.Type: NX_CHAR
- Parameters:
inputsDataset- the inputsDataset
-
getInputsScalar
String getInputsScalar()Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as input(s) to this component. Each input should point to the path of the group acting as input. An example usage would be to chain components and/or beams together to describe the beam path in an experiment.Type: NX_CHAR
- Returns:
- the value.
-
setInputsScalar
Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as input(s) to this component. Each input should point to the path of the group acting as input. An example usage would be to chain components and/or beams together to describe the beam path in an experiment.Type: NX_CHAR
- Parameters:
inputs- the inputs
-
getOutputs
org.eclipse.january.dataset.Dataset getOutputs()Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as output(s) of this component. For more information, see :ref:`inputs invalid input: '<'/NXcomponent/inputs-field>`.Type: NX_CHAR
- Returns:
- the value.
-
setOutputs
Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as output(s) of this component. For more information, see :ref:`inputs invalid input: '<'/NXcomponent/inputs-field>`.Type: NX_CHAR
- Parameters:
outputsDataset- the outputsDataset
-
getOutputsScalar
String getOutputsScalar()Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as output(s) of this component. For more information, see :ref:`inputs invalid input: '<'/NXcomponent/inputs-field>`.Type: NX_CHAR
- Returns:
- the value.
-
setOutputsScalar
Instance or list of instances of ``NXcomponent`` (or base classes extending ``NXcomponent``) or ``NXbeam`` that act as output(s) of this component. For more information, see :ref:`inputs invalid input: '<'/NXcomponent/inputs-field>`.Type: NX_CHAR
- Parameters:
outputs- the outputs
-
getFabrication
NXfabrication getFabrication()- Returns:
- the value.
-
setFabrication
- Parameters:
fabricationGroup- the fabricationGroup
-
getFabrication
Get a NXfabrication node by name:- Parameters:
name- the name of the node.- Returns:
- a map from node names to the NXfabrication for that node.
-
setFabrication
Set a NXfabrication node by name:- Parameters:
name- the name of the nodefabrication- the value to set
-
getAllFabrication
Map<String,NXfabrication> getAllFabrication()Get all NXfabrication nodes:- Returns:
- a map from node names to the NXfabrication for that node.
-
setAllFabrication
Set multiple child nodes of a particular type.- Parameters:
fabrication- the child nodes to add
-
getProgram
NXprogram getProgram()- Returns:
- the value.
-
setProgram
- Parameters:
programGroup- the programGroup
-
getProgram
Get a NXprogram node by name:- Parameters:
name- the name of the node.- Returns:
- a map from node names to the NXprogram for that node.
-
setProgram
Set a NXprogram node by name:- Parameters:
name- the name of the nodeprogram- the value to set
-
getAllProgram
Get all NXprogram nodes:- Returns:
- a map from node names to the NXprogram for that node.
-
setAllProgram
Set multiple child nodes of a particular type.- Parameters:
program- the child nodes to add
-
getDepends_on
org.eclipse.january.dataset.Dataset getDepends_on()Specifies the position of the component by pointing to the last transformation in the transformation chain that is defined via the NXtransformations group. NeXus positions components by applying a set of translations and rotations to apply to the component starting from 0, 0, 0. The order of these operations is critical and forms what NeXus calls a dependency chain. The depends_on field defines the path to the top most operation of the dependency chain or the string "." if located in the origin. Usually these operations are stored in a NXtransformations group. But NeXus allows them to be stored anywhere.Type: NX_CHAR
- Returns:
- the value.
-
setDepends_on
Specifies the position of the component by pointing to the last transformation in the transformation chain that is defined via the NXtransformations group. NeXus positions components by applying a set of translations and rotations to apply to the component starting from 0, 0, 0. The order of these operations is critical and forms what NeXus calls a dependency chain. The depends_on field defines the path to the top most operation of the dependency chain or the string "." if located in the origin. Usually these operations are stored in a NXtransformations group. But NeXus allows them to be stored anywhere.Type: NX_CHAR
- Parameters:
depends_onDataset- the depends_onDataset
-
getDepends_onScalar
String getDepends_onScalar()Specifies the position of the component by pointing to the last transformation in the transformation chain that is defined via the NXtransformations group. NeXus positions components by applying a set of translations and rotations to apply to the component starting from 0, 0, 0. The order of these operations is critical and forms what NeXus calls a dependency chain. The depends_on field defines the path to the top most operation of the dependency chain or the string "." if located in the origin. Usually these operations are stored in a NXtransformations group. But NeXus allows them to be stored anywhere.Type: NX_CHAR
- Returns:
- the value.
-
setDepends_onScalar
Specifies the position of the component by pointing to the last transformation in the transformation chain that is defined via the NXtransformations group. NeXus positions components by applying a set of translations and rotations to apply to the component starting from 0, 0, 0. The order of these operations is critical and forms what NeXus calls a dependency chain. The depends_on field defines the path to the top most operation of the dependency chain or the string "." if located in the origin. Usually these operations are stored in a NXtransformations group. But NeXus allows them to be stored anywhere.Type: NX_CHAR
- Parameters:
depends_on- the depends_on
-
getTransformations
NXtransformations getTransformations()Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument. The dependency chain may however traverse similar groups in other component groups.- Returns:
- the value.
-
setTransformations
Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument. The dependency chain may however traverse similar groups in other component groups.- Parameters:
transformationsGroup- the transformationsGroup
-
getTransformations
Get a NXtransformations node by name:- Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument. The dependency chain may however traverse similar groups in other component groups.
- Parameters:
name- the name of the node.- Returns:
- a map from node names to the NXtransformations for that node.
-
setTransformations
Set a NXtransformations node by name:- Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument. The dependency chain may however traverse similar groups in other component groups.
- Parameters:
name- the name of the nodetransformations- the value to set
-
getAllTransformations
Map<String,NXtransformations> getAllTransformations()Get all NXtransformations nodes:- Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument. The dependency chain may however traverse similar groups in other component groups.
- Returns:
- a map from node names to the NXtransformations for that node.
-
setAllTransformations
Set multiple child nodes of a particular type.- Collection of axis-based translations and rotations to describe the location and geometry of the component in the instrument. The dependency chain may however traverse similar groups in other component groups.
- Parameters:
transformations- the child nodes to add
-