org.opensourcephysics.ejs
Interface Model


public interface Model

A base interface for the model of a simulation


Method Summary
 Simulation getSimulation()
          Gets the simulation in which this model runs (if any)
 View getView()
          Gets the view for this model (if any)
 void initialize()
           
 void reset()
          Sets the view for this model
 void step()
           
 void update()
           
 

Method Detail

getSimulation

Simulation getSimulation()
Gets the simulation in which this model runs (if any)


getView

View getView()
Gets the view for this model (if any)


reset

void reset()
Sets the view for this model


initialize

void initialize()

step

void step()

update

void update()