|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.EPQLibrary.XRayEvents
public class XRayEvents
A simple implementation of the XRaySource interface.
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
| Field Summary | |
|---|---|
static int |
XRayEvent
ScatterEvent - the ID of the ActionEvent that is fired when the model generates an x-ray probability |
| Constructor Summary | |
|---|---|
XRayEvents(int n)
|
|
| Method Summary | |
|---|---|
void |
addEvent(double energy,
double amp,
double[] pos)
addEvent- Add a new x-ray event of the specified energy, amplitude originating from the specified position. |
void |
clear()
clear - Clear all x-ray events from this container. |
double |
getEnergy(int n)
getEnergy - Returns the energy of the n-th x-ray. |
int |
getEventCount()
getEventCount - Get the number of events currently contained. |
double |
getIntensity(int n)
getIntensity - Returns the fractional likelyhood of the n-th x-ray |
double[] |
getPosition(int n)
getPosition - Returns the position from which the x-ray is emitted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int XRayEvent
| Constructor Detail |
|---|
public XRayEvents(int n)
n - - The estimated maximum number of events| Method Detail |
|---|
public final void addEvent(double energy,
double amp,
double[] pos)
energy - amp - pos - public final void clear()
public final int getEventCount()
getEventCount in interface XRaySourcepublic final double getEnergy(int n)
getEnergy in interface XRaySourcen - int
XRaySource.getEnergy(int)public final double getIntensity(int n)
getIntensity in interface XRaySourceXRaySource.getIntensity(int)public final double[] getPosition(int n)
XRaySource
getPosition in interface XRaySource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||