Package org.goplanit.gap
Class GapFunctionConfigurator<T extends GapFunction>
- java.lang.Object
-
- org.goplanit.utils.builder.Configurator<T>
-
- org.goplanit.gap.GapFunctionConfigurator<T>
-
- Type Parameters:
T
- gap function type
- Direct Known Subclasses:
LinkBasedRelativeGapConfigurator
,NormBasedGapConfigurator
public class GapFunctionConfigurator<T extends GapFunction> extends Configurator<T>
Base class for all vgap function configurator implementations- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description protected StopCriterionConfigurator
stopCriterionConfigurator
the configurator for the stop critetion-
Fields inherited from class org.goplanit.utils.builder.Configurator
delayedMethodCalls
-
-
Constructor Summary
Constructors Constructor Description GapFunctionConfigurator(Class<T> instanceType)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(GapFunction gapFunction)
Needed to avoid issues with generics, although it should be obvious that T extends GapFunctionStopCriterionConfigurator
getStopCriterion()
Return the StopCriterion object-
Methods inherited from class org.goplanit.utils.builder.Configurator
callVoidMethod, collectParameterTypes, getClassTypeToConfigure, getFirstParameterOfDelayedMethodCall, registerDelayedMethodCall
-
-
-
-
Field Detail
-
stopCriterionConfigurator
protected final StopCriterionConfigurator stopCriterionConfigurator
the configurator for the stop critetion
-
-
Method Detail
-
configure
public void configure(GapFunction gapFunction) throws PlanItException
Needed to avoid issues with generics, although it should be obvious that T extends GapFunction- Overrides:
configure
in classConfigurator<T extends GapFunction>
- Parameters:
gapFunction
- the instance to configure- Throws:
PlanItException
- thrown if error
-
getStopCriterion
public StopCriterionConfigurator getStopCriterion()
Return the StopCriterion object- Returns:
- StopCriterion object being used
-
-