/* spin.java do calculation between animation frames The applet is type 'spin'. makes calls to a simulation of type sim the results for each time step are in a var of type simResult Barry Isralewitz 2002-Jan-18 */ /** * @version 1.10 25 Mar 1997 * @author Cay Horstmann */ import java.awt.*; import java.applet.*; //the state that sim and spin use to get state of sim //might just replace with setting just 4 sim vars public //but this lets us use sim.runSteps as a function, // easier to understnd interface. public class langevinSimResult { //class vars public double timestep; public double theta; public int pie; public int state; //holds values of two booleans public String errorMessage; //empty string if no error //constructor public langevinSimResult (double time,double th, int p, int s, String str) { timestep = time; theta = th; pie = p; state =s; errorMessage = str; } }