|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.NISTMonte.BremsstrahlungEventListener
public class BremsstrahlungEventListener
An ActionListener for attaching to the MonteCarloSS class to integrate Bremsstrahlung calculation into the Monte Carlo model.
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 | |
|---|---|
BremsstrahlungEventListener(MonteCarloSS mcss,
double[] detectorPosition)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed - Handles MonteCarloSS.XRayEvents by caching some useful information then firing event listeners. |
void |
addActionListener(java.awt.event.ActionListener al)
addActionListener - Objects that are interested in receiving notification whenever an event occurs should register an ActionListener using this method. |
double |
getEnergy(int n)
getEnergy |
int |
getEventCount()
getEventCount |
double |
getIntensity(int n)
getIntensity |
MassAbsorptionCoefficient |
getMassAbsorptionCoefficient()
getMassAbsorptionCoefficient - Returns the algorithm to use to compute the mass absorption coefficient. |
int |
getMaxTrajectories()
Limits the number of trajectories that generate x-rays. |
double[] |
getPosition(int n)
getPosition - Returns the position from which the x-ray is emitted. |
double |
getTransmittedFraction(double w,
java.util.Map path)
getTransmittedFraction - get the fraction of the x-ray intensity of the specified energy that would traverse the specified path. |
void |
removeActionListener(java.awt.event.ActionListener al)
removeActionListener - Removes an ActionListener that was previously registered with addActionListener. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BremsstrahlungEventListener(MonteCarloSS mcss,
double[] detectorPosition)
| Method Detail |
|---|
public 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 XRaySource
public double getTransmittedFraction(double w,
java.util.Map path)
w - double - x-ray energy in Joulespath - Map - A path such as returned by getXRayPath(..)
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed in interface java.awt.event.ActionListenerae - ActionEventpublic void addActionListener(java.awt.event.ActionListener al)
al - ActionListenerpublic void removeActionListener(java.awt.event.ActionListener al)
al - ActionListenerpublic int getMaxTrajectories()
public void setMaxTrajectories(int maxTrajectories)
maxTrajectories - The value to which to set maxTrajectories.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 | |||||||||