public class MAVFPlanAgentFactory extends java.lang.Object implements AgentFactory
MultiAgentVFPlanningAgent 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 MAVFPlannerFactory |
plannerFactory |
protected PolicyFromJointPolicy |
policy |
| Constructor and Description |
|---|
MAVFPlanAgentFactory(SGDomain domain,
MAValueFunctionPlanner planner,
PolicyFromJointPolicy policy)
Initializes.
|
MAVFPlanAgentFactory(SGDomain domain,
MAVFPlannerFactory plannerFactory,
PolicyFromJointPolicy policy)
Initializes
|
| Modifier and Type | Method and Description |
|---|---|
Agent |
generateAgent()
Returns a new agent instance.
|
protected SGDomain domain
protected MAVFPlannerFactory plannerFactory
protected PolicyFromJointPolicy policy
public MAVFPlanAgentFactory(SGDomain domain, MAValueFunctionPlanner planner, PolicyFromJointPolicy policy)
domain - the domain for the agentsplanner - the planner object that will be used by all generated agentspolicy - the policy that will be copied and supplied to all generated objectspublic MAVFPlanAgentFactory(SGDomain domain, MAVFPlannerFactory plannerFactory, PolicyFromJointPolicy policy)
domain - the domain for the agentsplannerFactory - the planner factory that will be used to generate a planner for the agentspolicy - the policy that will be copied and supplied to all generated objectspublic Agent generateAgent()
AgentFactorygenerateAgent in interface AgentFactory