Class Factory

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

public class Factory extends Organization
An organization specialized in mass production and transformation of resources. Models Taylorist and modern manufacturing structures. * @version 1.2
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

  • Method Details

    • getProductionResources

      public Set<PotentialResource> getProductionResources()
      Returns unmodifiable set of ingredients/input resources required for production.
    • addProductionResource

      public void addProductionResource(PotentialResource pr)
    • getProductionProducts

      public Set<PotentialResource> getProductionProducts()
      Returns unmodifiable set of output products manufactured by this factory.
    • addProductionProduct

      public void addProductionProduct(PotentialResource pr)
    • produce

      public MaterialResource produce(String name, double amount, Money cost)
      Functional manufacturing step producing a material resource.
    • addWorker

      public void addWorker(Worker worker)
      Adds a worker to the organization.
    • addProductionType

      public void addProductionType(String typeName)
      Adds a type of product this factory is capable of manufacturing.
    • canProduce

      public boolean canProduce(String typeName)
      Checks if this factory is configured to produce a specific product type.
    • getInventory

      public Set<Resource> getInventory()
      Returns the set of resources currently held by the factory.
    • addResource

      public void addResource(MaterialResource resource)
      Adds a resource to the factory's inventory.
    • getOrganigram

      public Organigram getOrganigram()
      Returns the organizational chart (stub for compatibility).
      Overrides:
      getOrganigram in class Organization
    • getWorkers

      public Set<Worker> getWorkers()
      Returns the workers associated with this factory.