prob_2
Class P2_Model

java.lang.Object
  extended by prob_2.P2_Model

public class P2_Model
extends java.lang.Object

The model for problem #2.


Constructor Summary
P2_Model()
          Construct an instance of the model class.
 
Method Summary
 java.util.ArrayList<java.util.ArrayList<java.lang.Double>> get_values()
           
 double[] get_x_range()
           
 double[] get_y_range()
           
 void Print()
           
 void reset(double x_value, double y_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

P2_Model

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

Method Detail

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 x_value,
                  double y_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()

get_x_range

public double[] get_x_range()

get_y_range

public double[] get_y_range()

toString

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

Print

public void Print()