|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.NISTMonte.XRayEventListener
public class XRayEventListener
The XRayEventListener class serves to respond to events in the MonteCarloSS class by computing the generated and transmitted x-ray intensities. These numbers are then available for other classes to organize as the wish - ie in phi-rho-z or graphically or however. The XRayEventListener class serves as a optimization to eliminate the need for each class to recaculate the x-ray event properties. The class also simplifies accessing these properties.
Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain
Company: National Institute of Standards and Technology
| Constructor Summary | |
|---|---|
XRayEventListener(MonteCarloSS mcss,
double[] detectorPosition)
XRayEventListener - Creates a XRayEventListener to listen to events occuring on the specified MonteCarloSS instance. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed - Handles x-ray events by computing the amount of characteristic x-rays generated. |
void |
addActionListener(java.awt.event.ActionListener al)
addActionListener - Objects that are interested in receiving notification whenever an x-ray event occurs should register an ActionListener using this method. |
CharacteristicXRayGeneration |
getCharacteristicXRayGeneration()
getCharacteristicXRayGeneration - Returns the algorithm to use to compute the characteristic x-ray generation. |
double |
getEnergy(int n)
getEnergy |
int |
getEventCount()
getEventCount |
double |
getGenerated(XRayTransition xrt)
getGenerated - Gets the generated intensity of x-rays for the specified transition. |
double |
getIntensity(int n)
getIntensity |
MassAbsorptionCoefficient |
getMassAbsorptionCoefficient()
getMassAbsorptionCoefficient - Returns the algorithm to use to compute the mass absorption coefficient. |
Material |
getMaterial()
getMaterial - During an event fired by this class, this method will get the material in which this x-ray event occured. |
int |
getMaterialIndex()
getMaterialIndex - During an event fired by this class, this method will get the index assigned to the Material in which this x-ray event occured. |
int |
getMaxTrajectories()
Limits the number of trajectories that generate x-rays. |
double[] |
getPosition()
getPosition - During an event fired by this class, the getPosition will return the location of the x-ray event. |
double[] |
getPosition(int n)
getPosition - Returns the position from which the x-ray is emitted. |
AtomicShell[] |
getShells()
getShells - Returns a list of the shells under consideration. |
double |
getStepLength()
|
XRayTransition[] |
getTransitions()
getTransitions - Returns a list of the transitions under consideration. |
double |
getTransmittedFraction(XRayTransition xrt)
getTransmittedFraction - Returns the fraction of the generated x-rays that reach the detector. |
double |
getTransmittedIntensity(XRayTransition xrt)
getTransmittedIntensity - Returns the intensity of the specified transition that is generated and reaches the detector. |
boolean |
inside(MonteCarloSS.Region region)
inside - Did this event occur within the specified Region? |
boolean |
inside(MonteCarloSS.Shape shape)
inside - Did this event occur within the volume defined by the specified Shape? |
void |
removeActionListener(java.awt.event.ActionListener al)
removeActionListener - Removes an ActionListener that was previously registered with addActionListener. |
void |
setCharacteristicXRayGeneration(CharacteristicXRayGeneration gen)
setCharacteristicXRayGeneration - Specify the algorithm to use to compute the characteristic x-ray generation. |
void |
setMassAbsorptionCoefficient(MassAbsorptionCoefficient mac)
setMassAbsorptionCoefficient - Specify the algorithm to use to compute the mass absorption coefficient. |
void |
setMaxTrajectories(int maxTrajectories)
Limits the number of trajectories that generate x-rays. |
void |
setTransitions(java.util.Collection col)
setTransitions - Sets the list of XRayTransitions to consider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XRayEventListener(MonteCarloSS mcss,
double[] detectorPosition)
throws EPQException
mcss - MonteCarloSSdetectorPosition - The coordinate location of the detector
EPQException| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed in interface java.awt.event.ActionListenerae - (non-Javadoc)ActionListener.actionPerformed(java.awt.event.ActionEvent)public double[] getPosition()
public int getMaterialIndex()
public Material getMaterial()
public double getGenerated(XRayTransition xrt)
xrt - XRayTransition
public double getStepLength()
public double getTransmittedFraction(XRayTransition xrt)
xrt - XRayTransition
public double getTransmittedIntensity(XRayTransition xrt)
throws EPQException
xrt - XRayTransition
EPQExceptionpublic XRayTransition[] getTransitions()
public AtomicShell[] getShells()
public void setTransitions(java.util.Collection col)
col - Collection - A collection of XRayTransition objectspublic boolean inside(MonteCarloSS.Region region)
region - Region
public boolean inside(MonteCarloSS.Shape shape)
shape - Shape
public void addActionListener(java.awt.event.ActionListener al)
al - ActionListenerpublic void removeActionListener(java.awt.event.ActionListener al)
al - ActionListenerpublic int getEventCount()
getEventCount in interface XRaySourcepublic double getEnergy(int n)
getEnergy in interface XRaySourcen - int
public double getIntensity(int n)
getIntensity in interface XRaySourcen - int
public double[] getPosition(int n)
XRaySource
getPosition in interface XRaySourcepublic int getMaxTrajectories()
public void setMaxTrajectories(int maxTrajectories)
maxTrajectories - The value to which to set maxTrajectories.public void setCharacteristicXRayGeneration(CharacteristicXRayGeneration gen)
gen - public CharacteristicXRayGeneration getCharacteristicXRayGeneration()
public void setMassAbsorptionCoefficient(MassAbsorptionCoefficient mac)
mac - public MassAbsorptionCoefficient getMassAbsorptionCoefficient()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||