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