891011121314151617
public static Metaheuristic create(Metaheuristic.Type type, Problem problem) { switch(type) { case HC: HillClimbing hc = new HillClimbing(); return hc; } return null; }