Class ExecutionPlannerFactory
- java.lang.Object
-
- org.aksw.limes.core.execution.planning.planner.ExecutionPlannerFactory
-
public class ExecutionPlannerFactory extends Object
Implements the planner factory class. The planner factory class is responsible for choosing and creating the corresponding planner object.- Version:
- 1.0
- Author:
- Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecutionPlannerFactory.ExecutionPlannerTypeEnum class of allowed planner types.
-
Field Summary
Fields Modifier and Type Field Description static StringCANONICALPlanner factory field for canonical planner.static StringDEFAULTPlanner factory field for default planner.static StringDYNAMICPlanner factory field for dynamic planner.static StringHELIOSPlanner factory field for helios planner.
-
Constructor Summary
Constructors Constructor Description ExecutionPlannerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExecutionPlannerFactory.ExecutionPlannerTypegetExecutionPlannerType(String name)Factory function for retrieving a planner name from the set of allowed types.static PlannergetPlanner(ExecutionPlannerFactory.ExecutionPlannerType type, ACache source, ACache target)Factory function for retrieving the desired planner instance.
-
-
-
Field Detail
-
DEFAULT
public static final String DEFAULT
Planner factory field for default planner.- See Also:
- Constant Field Values
-
CANONICAL
public static final String CANONICAL
Planner factory field for canonical planner.- See Also:
- Constant Field Values
-
HELIOS
public static final String HELIOS
Planner factory field for helios planner.- See Also:
- Constant Field Values
-
DYNAMIC
public static final String DYNAMIC
Planner factory field for dynamic planner.- See Also:
- Constant Field Values
-
-
Method Detail
-
getExecutionPlannerType
public static ExecutionPlannerFactory.ExecutionPlannerType getExecutionPlannerType(String name)
Factory function for retrieving a planner name from the set of allowed types.- Parameters:
name- The name/type of the planner.- Returns:
- a specific planner type
-
getPlanner
public static Planner getPlanner(ExecutionPlannerFactory.ExecutionPlannerType type, ACache source, ACache target)
Factory function for retrieving the desired planner instance.- Parameters:
type- Type of the Plannersource- Source cachetarget- Target cache- Returns:
- a specific planner instance
-
-