Package org.planit.cost.physical
Class PhysicalCostConfigurator<T extends AbstractPhysicalCost>
- java.lang.Object
-
- org.planit.utils.builder.Configurator<T>
-
- org.planit.cost.physical.PhysicalCostConfigurator<T>
-
- Type Parameters:
T- abstract physical cost type
- Direct Known Subclasses:
BPRConfigurator
public class PhysicalCostConfigurator<T extends AbstractPhysicalCost> extends Configurator<T>
Base class for all physical cost configurator implementations- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.planit.utils.builder.Configurator
delayedMethodCalls
-
-
Constructor Summary
Constructors Constructor Description PhysicalCostConfigurator(Class<T> instanceType)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(AbstractPhysicalCost physicalCost)Needed to avoid issues with generics, although it should be obvious that T extends PhysicalCost-
Methods inherited from class org.planit.utils.builder.Configurator
callVoidMethod, collectParameterTypes, getClassTypeToConfigure, getFirstParameterOfDelayedMethodCall, registerDelayedMethodCall
-
-
-
-
Method Detail
-
configure
public void configure(AbstractPhysicalCost physicalCost) throws PlanItException
Needed to avoid issues with generics, although it should be obvious that T extends PhysicalCost- Overrides:
configurein classConfigurator<T extends AbstractPhysicalCost>- Parameters:
physicalCost- the instance to configure- Throws:
PlanItException- thrown if error
-
-