prob_4
Class P4_Model

java.lang.Object
  extended by prob_4.P4_Model

public class P4_Model
extends java.lang.Object

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

P4_Model

public P4_Model()
Construct an instance of the model class.

Method Detail

getUniformRV

public double getUniformRV(double lower,
                           double upper)
Get a uniform random variate using the given value bounds, [lower, upper).

Parameters:
lower - the lower limit.
upper - the upper limit.
Returns:
the random variate value.

run

public void run()
Run the model until the time is finished, storing the time step values into the "values" array.


reset

public void reset(double v0_value,
                  double v1_value,
                  double s_value)

set_time_step

public void set_time_step(double dt)

set_time_range

public void set_time_range(double start_t,
                           double end_t)

get_values

public java.util.ArrayList<java.util.ArrayList<java.lang.Double>> get_values()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Print

public void Print()