Resource Manager
Problem: How can you minimize dependencies between an agent and its resources?
Context: You are writing an agent that needs to interact with external resources.
Solution:
- Represent entire or part of resources (e.g. mail, files, stock quote servers) by resource adapters.
- Adapters only relate to other adapters through the engine (via events and rules).
- Resource manager uses selection policies to choose the most suitable adapter for each request.