Class EarthEcosource
java.lang.Object
org.episteme.natural.biology.SocialEntity
org.episteme.natural.biology.SocialCollective<Individual>
org.episteme.natural.biology.ecology.Population<Individual>
org.episteme.social.psychology.social.PsychologicalGroup
org.episteme.social.economics.Community
org.episteme.social.economics.EarthEcosource
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, SimulationAgent, TaskProcessor
A class representing the Earth as an autonomous organism that produces,
stores, and recycles materials.
Represents the primary source of natural resources in the economic model.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields inherited from class SocialCollective
cohesion, leader, members -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EarthEcosource object with HumanSpecies as the default species.EarthEcosource(Species species) Creates a new EarthEcosource object for a specific species. -
Method Summary
Modifier and TypeMethodDescriptiongenerateResource(String name, String description, Quantity<?> amount) Generates a new resource from the Earth.Methods inherited from class Community
addResource, barterResources, consumeResources, getResources, removeResource, setResourcesMethods inherited from class PsychologicalGroup
getFormalTerritory, getLeaders, getRelation, getRelations, setFormalTerritory, setLeaders, setRelation, setRelationMethods inherited from class Population
addMember, countAlive, countBySex, countByStage, equals, filter, getAgeDistribution, getAverageAge, getAverageFecundity, getFounders, getIndividuals, getLocation, getOldestAge, getPosition, getSexRatio, getSpecies, getTerritory, getYoungestAge, hashCode, processEvent, setIndividuals, setTerritory, size, toStringMethods inherited from class SocialCollective
getCohesion, getLeader, getMembers, removeMember, setCohesion, setLeaderMethods 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
-
EarthEcosource
public EarthEcosource()Creates a new EarthEcosource object with HumanSpecies as the default species. -
EarthEcosource
Creates a new EarthEcosource object for a specific species.- Parameters:
species- the species inhabiting this ecosource
-
-
Method Details
-
generateResource
Generates a new resource from the Earth.- Parameters:
name- the name of the resourcedescription- the description of the resourceamount- the quantity of the resource available- Returns:
- a new Resource object linked to this source
-