Class Model

java.lang.Object
  extended by Model
All Implemented Interfaces:
Runnable

public class Model
extends Object
implements Runnable

The class that "represents the information (the data) of the application and the business rules used to manipulate the data." [Wikipedia] This model is a trivial model - just a number that goes up or down randomly over time.

Author:
David Mutchler. Created October 18, 2008.

Constructor Summary
Model()
          Sets the initial data value to 0.
 
Method Summary
 double getData()
          Returns the data value.
 void run()
          Repeatedly runs one step of the simulation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Model

public Model()
Sets the initial data value to 0.

Method Detail

run

public void run()
Repeatedly runs one step of the simulation.

Specified by:
run in interface Runnable

getData

public double getData()
Returns the data value.

Returns:
the data value