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