|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Animal | +--Sessile | +--LongLivedSessile
abstract class which defines laysEggs() for all long-lived sessile animals
Method Summary | |
Set |
laysEggs()
method uses random number generator to select how many offspring of long-lived sessile animal survive; current settings are 50% 0 survivors, 50% 1 survivor; |
Methods inherited from class Sessile |
makeMove |
Methods inherited from class Animal |
getAge,
getmaxAge,
getPrintChar,
incrAge,
setmaxAge,
timeToDie |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public Set laysEggs()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |