|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectappLogic.Simulation
public class Simulation
The Simulation contains the control elements for the hough transformation and the functionality behind them.
Constructor Summary | |
---|---|
Simulation(java.util.List<Simulatable> simulatable)
Standard constructor |
Method Summary | |
---|---|
void |
configure(double speed)
Configuration - sets the speed |
void |
configure(int nrOfUpdates,
double speed)
Configuration - sets the speed and the number of updates. |
int |
getNrOfUpdates()
Returns the number of updates |
double |
getSpeed()
Returns the speed |
int |
getTime()
Returns the time |
boolean |
isPause()
Return if the simulation is paused |
void |
pause()
Stop the simulation |
void |
play()
Starts the simulation |
void |
reset()
Set the timer back to 0 and clear the simulation |
void |
step()
Go one step forward |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Simulation(java.util.List<Simulatable> simulatable)
simulatable
- Method Detail |
---|
public void configure(int nrOfUpdates, double speed)
nrOfUpdates
- speed
- public void configure(double speed)
speed
- public int getNrOfUpdates()
public void play()
public int getTime()
public void pause()
public void reset()
public void step()
public double getSpeed()
public boolean isPause()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |