com.rubecula.darwin.domain.helper
Interface Mortal
- All Superinterfaces:
- net.sf.tostring0.Identifiable, Individual
- All Known Subinterfaces:
- Organism
- All Known Implementing Classes:
- Organism_, Organism_Asexual, Organism_Sexual, Organism_TS
public interface Mortal
- extends Individual
Interface to define the operations supported by a "mortal" object, i.e. one
that has a finite lifespan.
- Author:
- Robin Hillyard
Method Summary |
void |
age()
Mutating method to "age" this organism by one generation. |
int |
getAge()
|
boolean |
isViable()
|
void |
setViable(boolean viable)
|
Methods inherited from interface net.sf.tostring0.Identifiable |
getIdentifier |
age
void age()
- Mutating method to "age" this organism by one generation.
getAge
int getAge()
- Returns:
- the current age of this organism
isViable
boolean isViable()
- Returns:
- true if this organism is part of a population model (generally
this is true, except temporarily when an organism is first born
or newly dead)
setViable
void setViable(boolean viable)
- Parameters:
viable
- if false, then we (temporarily) mark this organism as not
being part of a population model.
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.