|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jpemartin.jgt.FireRandom
public class FireRandom
Fire control that fires at random, with the given probability
| Constructor Summary | |
|---|---|
FireRandom(double probabilityOfFiring)
|
|
| Method Summary | |
|---|---|
boolean |
shouldFire()
fire with the given probability |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FireRandom(double probabilityOfFiring)
| Method Detail |
|---|
public boolean shouldFire()
shouldFire in interface FireControl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||