public class PolychromaticAbsorptionModel extends AbsorptionModel
Polychromatic Absorption Model with dynamic spectrum support.
This class models the absorption of an X-Ray spectrum by well-defined materials.
COHERENT_SCATTER, INCOHERENT_SCATTER
Constructor and Description |
---|
PolychromaticAbsorptionModel() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
Configures the object before execution
|
double |
evaluateLineIntegral(java.util.ArrayList<PhysicalObject> segments)
Compute the absorption of a given X-Ray spectrum along a segmented path.
|
PolychromaticXRaySpectrum |
getInputSpectrum()
Retrieve the current input X-Ray spectrum used by the absorption model
|
PolychromaticXRaySpectrum |
getOutputSpectrum()
Retrieve the X-Ray spectrum after absorption.
|
boolean |
isConfigured()
Is true if the object was successfully configured
|
void |
setInputSpectrum(PolychromaticXRaySpectrum spectrum)
Change the X-Ray spectrum used by the absorption model.
|
java.lang.String |
toString() |
public double evaluateLineIntegral(java.util.ArrayList<PhysicalObject> segments)
evaluateLineIntegral
in class AbsorptionModel
segments
- are material dependent segmentation of the path followed by an arbitrary X-Raypublic void setInputSpectrum(PolychromaticXRaySpectrum spectrum)
spectrum
- is the new spectrum of the absorption model.public PolychromaticXRaySpectrum getInputSpectrum()
public PolychromaticXRaySpectrum getOutputSpectrum()
public java.lang.String toString()
toString
in class AbsorptionModel
public void configure() throws java.lang.Exception
GUIConfigurable
java.lang.Exception
- may happenpublic boolean isConfigured()
GUIConfigurable