|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.sip.ch14.sandpile.Sandpile
public class Sandpile
SandpileApp models an idealized sandpile.
| Constructor Summary | |
|---|---|
Sandpile()
|
|
| Method Summary | |
|---|---|
void |
addGrain(int x,
int y)
|
void |
initialize(LatticeFrame height)
|
void |
resetAverages()
|
void |
step()
|
boolean |
toppleSite(int[] siteToTopple)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sandpile()
| Method Detail |
|---|
public void initialize(LatticeFrame height)
public void step()
public boolean toppleSite(int[] siteToTopple)
public void addGrain(int x,
int y)
public void resetAverages()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||