Class Individual
java.lang.Object
org.episteme.natural.biology.SocialEntity
org.episteme.natural.biology.Individual
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, SimulationAgent
- Direct Known Subclasses:
Human
Represents an individual organism - a single instance of a species.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionIndividual(String id, Species species, BiologicalSex sex) Individual(String id, Species species, BiologicalSex sex, LocalDate birthDate) Helper constructor for String IDs.Individual(Identification id, Species species, BiologicalSex sex) Individual(Identification id, Species species, BiologicalSex sex, LocalDate birthDate, EventDrivenEngine engine) Creates a new individual organism with an associated simulation engine. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAvailableBehavior(Behavior behavior) voidaddChild(Individual child) voidaddParent(Individual parent) voidaddPathology(String pathologyName) voidcalculateSuccessionOrder(boolean malePriority) voidbooleanintgetAge()intReturns the position of this entity.getSex()inthashCode()booleanisAlive()booleanisAncestorOf(Individual suspectedDescendant) booleanisDescendantOf(Individual suspectedAncestor) booleanisSiblingOf(Individual other) voidprocessEvent(Event event) Process an event delivered to this agent.voidremoveAvailableBehavior(Behavior behavior) voidsetBiographySummary(String summary) voidsetDeathDate(LocalDate deathDate) voidsetLifeStage(LifeStage stage) voidsetPosition(Place place) voidvoidsetTerritory(Place territory) toString()Methods inherited from class SocialEntity
getEngine, getId, getInfluence, getPrestige, getSimId, getTraits, interact, setEngine, setInfluence, setPrestigeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Individual
public Individual(Identification id, Species species, BiologicalSex sex, LocalDate birthDate, EventDrivenEngine engine) Creates a new individual organism with an associated simulation engine. -
Individual
Helper constructor for String IDs. -
Individual
-
Individual
-
-
Method Details
-
getDescendants
-
getAncestors
-
isDescendantOf
-
isAncestorOf
-
getGenealogicalDistance
-
getSpecies
-
getSex
-
getBirthDate
-
getDeathDate
-
setDeathDate
-
getLifeStage
-
setLifeStage
-
getReproductionMode
-
setReproductionMode
-
getPosition
Description copied from interface:PositionedReturns the position of this entity.- Specified by:
getPositionin interfacePositioned<Place>- Returns:
- the position.
-
setPosition
-
getTerritory
-
setTerritory
-
addRole
-
getParents
-
addParent
-
getChildren
-
addChild
-
addPathology
-
getPathologies
-
getBiographySummary
-
setBiographySummary
-
addAvailableBehavior
-
getAvailableBehaviors
-
removeAvailableBehavior
-
isAlive
public boolean isAlive() -
getAge
public int getAge() -
die
-
isSiblingOf
-
getSiblings
-
clone
-
calculateInbreedingCoefficient
-
calculateRelationshipCoefficient
-
calculateSuccessionOrder
-
equals
-
hashCode
-
toString
-
processEvent
Description copied from interface:SimulationAgentProcess an event delivered to this agent.- Specified by:
processEventin interfaceSimulationAgent- Specified by:
processEventin classSocialEntity- Parameters:
event- The event to process
-