|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectModel
public class Model
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.
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 |
---|
public Model()
Method Detail |
---|
public void run()
run
in interface Runnable
public double getData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |