|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object
|
+--EmissionApplet.Electron
|
+--FourLevels.Electron
| Field Summary | |
protected int |
energyLevel
The present energy level, or the energy level toward which the particle is moving. |
protected int |
oldLevel
The previoud energy level, or the energy level from which the particle is moving. |
| Fields inherited from class EmissionApplet.Electron |
excited,
progress,
x |
| Constructor Summary | |
FourLevels.Electron(double x)
Creates a new electron |
|
FourLevels.Electron(double x,
int level)
Creates a new 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()
For backward compatibility, returns the same result as canEmit(). |
void |
moveToLevel(int l)
Causes the electron to begin moving to a specified energy level. |
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)
For backwards compatibility. |
void |
update(double dt)
Advances this photon through time by the specified interval |
| Methods inherited from class EmissionApplet.Electron |
isMoving |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected int energyLevel
protected int oldLevel
| Constructor Detail |
public FourLevels.Electron(double x,
int level)
x - The x positionlevel - An integer in the range [0,3] specifying the
initial energy levellevel is less
than 0 or greateer than 3public FourLevels.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 void absorb(EmissionApplet.Photon p)
public void emit(EmissionApplet.Photon p)
public void pump()
public boolean isExcited()
canEmit().true if this electron is excited, else
falsepublic boolean canAbsorb()
public boolean canEmit()
public void moveToLevel(int l)
public void update(double dt)
public void setExcited(boolean b)
b - true if the electron is to be moved to
state 1, false if it is to move to state
2.
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||