|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--EmissionApplet.Electron
Models an electron
| Field Summary | |
protected boolean |
excited
|
protected double |
progress
|
protected double |
x
|
| Constructor Summary | |
EmissionApplet.Electron(double x)
Creates a new (non-excited) electron |
|
| Method Summary | |
void |
absorb(EmissionApplet.Photon p)
Absorbs the specified photon, causing this electron to become excited. |
boolean |
canAbsorb()
Indicates whether this electron is in a suitable state to absorb a photon. |
boolean |
canEmit()
Indicates whether this electron is in a suitable state for stimulated emission of a photon. |
void |
emit(EmissionApplet.Photon p)
Emits the specified photon, causing this electron to become non-excited. |
boolean |
isExcited()
|
boolean |
isMoving()
|
void |
paint(java.awt.Graphics g,
double xscl,
double yscl)
Displays this Electron |
void |
pump()
Moves this electron to the upper energy level |
void |
setExcited(boolean b)
Immediately (without animation) moves this electron to the specified energy level. |
void |
update(double dt)
Advances this photon through time by the specified interval |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected boolean excited
protected double x
protected double progress
| Constructor Detail |
public EmissionApplet.Electron(double x)
x - The x position| Method Detail |
public void paint(java.awt.Graphics g,
double xscl,
double yscl)
g - The Graphics surface on which to paintxscl - Multiplier to convert simulation x
coordinates to screen coordinatesyscl - Multiplier to convert simulation y
coordinates to screen coordinatespublic boolean isExcited()
true if this electron is excited, else
falsepublic void absorb(EmissionApplet.Photon p)
public void emit(EmissionApplet.Photon p)
public boolean isMoving()
true if this electron is in transition
between energy levels, false if this electron
is stationary.public boolean canAbsorb()
public boolean canEmit()
public void update(double dt)
public void pump()
public void setExcited(boolean b)
b - true if the electron is to be moved to
the upper energy level, false if the
electron is to be moved to the lower energy level.
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||