public static class MAVFPlannerFactory.ConstantMAVFPlannerFactory extends java.lang.Object implements MAVFPlannerFactory
MAValueFunctionPlanner factory that always returns the same object instance, unless the reference is chaned with a mutator.MAVFPlannerFactory.ConstantMAVFPlannerFactory, MAVFPlannerFactory.MAVIPlannerFactory| Modifier and Type | Field and Description |
|---|---|
protected MAValueFunctionPlanner |
plannerReferece |
| Constructor and Description |
|---|
MAVFPlannerFactory.ConstantMAVFPlannerFactory(MAValueFunctionPlanner plannerRefernece)
Initializes with a given planner reference.
|
| Modifier and Type | Method and Description |
|---|---|
MAValueFunctionPlanner |
getPlannerInstance()
returns an
MAValueFunctionPlanner reference to use for planning. |
void |
setPlannerReference(MAValueFunctionPlanner plannerReference)
Changes the planner reference
|
protected MAValueFunctionPlanner plannerReferece
public MAVFPlannerFactory.ConstantMAVFPlannerFactory(MAValueFunctionPlanner plannerRefernece)
plannerRefernece - the planner reference to returnpublic void setPlannerReference(MAValueFunctionPlanner plannerReference)
plannerReference - the planner reference to returnpublic MAValueFunctionPlanner getPlannerInstance()
MAVFPlannerFactoryMAValueFunctionPlanner reference to use for planning.getPlannerInstance in interface MAVFPlannerFactoryMAValueFunctionPlanner reference to use for planning.