|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Animal | +--Sessile | +--ShortLivedSessile
abstract class which defines buds() for all short-lived sessile animals
Method Summary | |
Set |
buds()
method uses random number generator to select how many offspring of short-lived sessile animal survive; current settings are 30% 0 survivors, 30% 1 survivor; 40% 2 survivors |
abstract ShortLivedSessile |
getNewShortLivedSessile()
abstract method forces all actual animal descendent classes of ShortLivedSessile to define a method that returns a new animal of their kind; allows buds() to be inherited by all these classes |
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 abstract ShortLivedSessile getNewShortLivedSessile()
public Set buds()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |