Interface TaskProcessor

All Known Implementing Classes:
Administration, Bank, Community, EarthEcosource, Factory, Holding, Organization, PoliticalParty, Robot

public interface TaskProcessor
An entity capable of performing tasks by consuming resources.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Consumes the necessary resources to perform the given task.
    Returns the set of resources available to this processor.
  • Method Details

    • getResources

      Set<Resource> getResources()
      Returns the set of resources available to this processor.
      Returns:
      the set of available resources.
    • consumeResources

      boolean consumeResources(Task task)
      Consumes the necessary resources to perform the given task.
      Parameters:
      task - the task to perform.
      Returns:
      true if resources were successfully consumed; false otherwise.