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

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


getView

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


reset

public void reset()
Sets the view for this model


initialize

public void initialize()

step

public void step()

update

public void update()