|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object
|
+--java.lang.Thread
|
+--SolnSearcher
Thread to search an interval for a solution to a Schrodinger equation.
| Field Summary | |
protected Schrodinger |
eqn
|
protected boolean |
finished
|
protected double |
hint
If neither half of the interval is guaranteed to contain a solution, the search will move towards this value, which is initialised from the original energy parameter of the equation. |
protected double |
intRange
|
protected boolean |
killed
|
protected double |
max
|
protected double |
maxValue
|
protected double |
min
|
protected double |
minValue
|
protected EnergyListener |
owner
|
protected int |
steps
|
| Fields inherited from class java.lang.Thread |
contextClassLoader,
daemon,
eetop,
group,
inheritedAccessControlContext,
MAX_PRIORITY,
MIN_PRIORITY,
name,
NORM_PRIORITY,
priority,
single_step,
stillborn,
stopThreadPermission,
target,
threadInitNumber,
threadQ,
values |
| Constructor Summary | |
SolnSearcher(EnergyListener owner,
Schrodinger eqn,
double min,
double max,
double intRange,
int steps)
Creates a new solution searcher |
|
| Method Summary | |
double |
getEstimate()
Returns the current "best estimate" of the solution; that is, the midpoint of the bisection interval. |
protected void |
improveEstimate()
Performs one step of the search. |
boolean |
isFinished()
Returns true if the search is still in process, else
false |
void |
kill()
Requests that the search terminate at the next convenient opportunity. |
void |
run()
|
double |
tryEnergy(double energy)
Attempts to solve the equation with the specified energy, and returns the value at the end of the x range. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected double hint
protected double min
protected double max
protected double minValue
protected double maxValue
protected double intRange
protected int steps
protected boolean finished
protected boolean killed
protected Schrodinger eqn
protected EnergyListener owner
| Constructor Detail |
public SolnSearcher(EnergyListener owner,
Schrodinger eqn,
double min,
double max,
double intRange,
int steps)
owner - The EnergyListener to be notified when
the best estimate changeseqn - The equation to solvemin - A lower bound for the solutionmax - An upper bound for the solutionintRange - The range over which the solution should be
evaluatedsteps - The number of steps to be used when evaluating the
solution| Method Detail |
public void run()
protected void improveEstimate()
public double tryEnergy(double energy)
public double getEstimate()
public boolean isFinished()
true if the search is still in process, else
falsepublic void kill()
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||