Package uk.ac.gda.analysis.mscan
Record Class MalcolmProcessingManager.Config
java.lang.Object
java.lang.Record
uk.ac.gda.analysis.mscan.MalcolmProcessingManager.Config
- Record Components:
dataRank- the rank of the data taken at each point of the scan, i.e. 2 for an imagedetFileNameSuffix- the suffix of the file name of the nexus/h5 file to processdataPath- the path to the dataset to processuidPath- the path to the uid datasetdetName- the name of the detector/devicenexusBaseClass- the nexus base class for thedatasetConverter- applies a transformation to the dataset, ifnullthe original dataset is used as-is
- Enclosing class:
MalcolmProcessingManager
public static record MalcolmProcessingManager.Config(int dataRank, String detFileNameSuffix, String dataPath, String uidPath, String detName, NexusBaseClass nexusBaseClass, DatasetCreator datasetConverter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConfig(int dataRank, String detFileNameSuffix, String dataPath, String uidPath, String detName, NexusBaseClass nexusBaseClass, DatasetCreator datasetConverter) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataPath()Returns the value of thedataPathrecord component.intdataRank()Returns the value of thedataRankrecord component.Returns the value of thedatasetConverterrecord component.Returns the value of thedetFileNameSuffixrecord component.detName()Returns the value of thedetNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenexusBaseClassrecord component.final StringtoString()Returns a string representation of this record class.uidPath()Returns the value of theuidPathrecord component.
-
Constructor Details
-
Config
public Config(int dataRank, String detFileNameSuffix, String dataPath, String uidPath, String detName, NexusBaseClass nexusBaseClass, DatasetCreator datasetConverter) Creates an instance of aConfigrecord class.- Parameters:
dataRank- the value for thedataRankrecord componentdetFileNameSuffix- the value for thedetFileNameSuffixrecord componentdataPath- the value for thedataPathrecord componentuidPath- the value for theuidPathrecord componentdetName- the value for thedetNamerecord componentnexusBaseClass- the value for thenexusBaseClassrecord componentdatasetConverter- the value for thedatasetConverterrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
dataRank
public int dataRank()Returns the value of thedataRankrecord component.- Returns:
- the value of the
dataRankrecord component
-
detFileNameSuffix
Returns the value of thedetFileNameSuffixrecord component.- Returns:
- the value of the
detFileNameSuffixrecord component
-
dataPath
Returns the value of thedataPathrecord component.- Returns:
- the value of the
dataPathrecord component
-
uidPath
Returns the value of theuidPathrecord component.- Returns:
- the value of the
uidPathrecord component
-
detName
Returns the value of thedetNamerecord component.- Returns:
- the value of the
detNamerecord component
-
nexusBaseClass
Returns the value of thenexusBaseClassrecord component.- Returns:
- the value of the
nexusBaseClassrecord component
-
datasetConverter
Returns the value of thedatasetConverterrecord component.- Returns:
- the value of the
datasetConverterrecord component
-