public class MADPPlanAgentFactory extends java.lang.Object implements AgentFactory
MultiAgentDPPlanningAgent agent. Generated agents are always provided a copy of the provided
policy object to ensure that multiple agents from the same factory use a policy specific to them.| Modifier and Type | Field and Description |
|---|---|
protected SGDomain |
domain |
protected MADPPlannerFactory |
plannerFactory |
protected PolicyFromJointPolicy |
policy |
| Constructor and Description |
|---|
MADPPlanAgentFactory(SGDomain domain,
MADPPlannerFactory plannerFactory,
PolicyFromJointPolicy policy)
Initializes
|
MADPPlanAgentFactory(SGDomain domain,
MADynamicProgramming planner,
PolicyFromJointPolicy policy)
Initializes.
|
| Modifier and Type | Method and Description |
|---|---|
SGAgent |
generateAgent()
Returns a new agent instance.
|
protected SGDomain domain
protected MADPPlannerFactory plannerFactory
protected PolicyFromJointPolicy policy
public MADPPlanAgentFactory(SGDomain domain, MADynamicProgramming planner, PolicyFromJointPolicy policy)
domain - the domain for the agentsplanner - the valueFunction object that will be used by all generated agentspolicy - the policy that will be copied and supplied to all generated objectspublic MADPPlanAgentFactory(SGDomain domain, MADPPlannerFactory plannerFactory, PolicyFromJointPolicy policy)
domain - the domain for the agentsplannerFactory - the valueFunction factory that will be used to generate a valueFunction for the agentspolicy - the policy that will be copied and supplied to all generated objectspublic SGAgent generateAgent()
AgentFactorygenerateAgent in interface AgentFactory