|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.consultoriajava.browneater.BrownEater
public abstract class BrownEater
Instances of this class have the ability to eat browns at the cost of increasing the ammount of stress generated.
| Constructor Summary | |
|---|---|
BrownEater()
|
|
| Method Summary | |
|---|---|
abstract void |
eatBrown(Brown brown)
Method called when a Brown is supposed to be solved and killed or at least hibernated. |
int |
getStress()
Return the numeric value of the acummulated stress |
void |
increaseStress()
Artificially raises the stress of the brown eater |
void |
reduceStress()
Artificially reduces the stress of the BrownEater |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrownEater()
| Method Detail |
|---|
public void reduceStress()
public void increaseStress()
public int getStress()
public abstract void eatBrown(Brown brown)
throws BrownRelatedException
brown - Brown to be eated, and by extension, killed or hibernated.
BrownRelatedException - Launched when there is a problem with
the eating of a Brown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||