001package jmri.jmrit.logixng.actions; 002 003import java.util.AbstractMap; 004import java.util.Map; 005import java.util.Set; 006import jmri.jmrit.logixng.AnalogActionFactory; 007import jmri.jmrit.logixng.Base; 008import jmri.jmrit.logixng.Category; 009import org.openide.util.lookup.ServiceProvider; 010 011/** 012 * The factory for AnalogAction classes. 013 */ 014@ServiceProvider(service = AnalogActionFactory.class) 015public class AnalogFactory implements AnalogActionFactory { 016 017 @Override 018 public Set<Map.Entry<Category, Class<? extends Base>>> getClasses() { 019 Set<Map.Entry<Category, Class<? extends Base>>> analogActionClasses = 020 Set.of( 021 new AbstractMap.SimpleEntry<>(Category.ITEM, AnalogActionLightIntensity.class), 022 new AbstractMap.SimpleEntry<>(Category.ITEM, AnalogActionMemory.class), 023 new AbstractMap.SimpleEntry<>(Category.COMMON, AnalogMany.class) 024 ); 025 026 return analogActionClasses; 027 } 028 029}