Class EarthEcosource

All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, SimulationAgent, TaskProcessor

public class EarthEcosource extends Community
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:
  • Constructor Details

    • EarthEcosource

      public EarthEcosource()
      Creates a new EarthEcosource object with HumanSpecies as the default species.
    • EarthEcosource

      public EarthEcosource(Species species)
      Creates a new EarthEcosource object for a specific species.
      Parameters:
      species - the species inhabiting this ecosource
  • Method Details

    • generateResource

      public Resource generateResource(String name, String description, Quantity<?> amount)
      Generates a new resource from the Earth.
      Parameters:
      name - the name of the resource
      description - the description of the resource
      amount - the quantity of the resource available
      Returns:
      a new Resource object linked to this source