|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprob_4.P4_Model
public class P4_Model
The model for problem #2.
| Constructor Summary | |
|---|---|
P4_Model()
Construct an instance of the model class. |
|
| Method Summary | |
|---|---|
java.util.ArrayList<java.util.ArrayList<java.lang.Double>> |
get_values()
|
double |
getUniformRV(double lower,
double upper)
Get a uniform random variate using the given value bounds, [lower, upper). |
void |
Print()
|
void |
reset(double v0_value,
double v1_value,
double s_value)
|
void |
run()
Run the model until the time is finished, storing the time step values into the "values" array. |
void |
set_time_range(double start_t,
double end_t)
|
void |
set_time_step(double dt)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public P4_Model()
| Method Detail |
|---|
public double getUniformRV(double lower,
double upper)
lower - the lower limit.upper - the upper limit.
public void run()
public void reset(double v0_value,
double v1_value,
double s_value)
public void set_time_step(double dt)
public void set_time_range(double start_t,
double end_t)
public java.util.ArrayList<java.util.ArrayList<java.lang.Double>> get_values()
public java.lang.String toString()
toString in class java.lang.Objectpublic void Print()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||