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 TypeMethodDescriptionbooleanconsumeResources(Task task) Consumes the necessary resources to perform the given task.Returns the set of resources available to this processor.
-
Method Details
-
getResources
-
consumeResources
Consumes the necessary resources to perform the given task.- Parameters:
task- the task to perform.- Returns:
trueif resources were successfully consumed;falseotherwise.
-