001package jmri.jmrix.loconet;
002
003import jmri.managers.AbstractCabSignalManager;
004import jmri.LocoAddress;
005import jmri.CabSignal;
006import org.slf4j.Logger;
007import org.slf4j.LoggerFactory;
008
009/**
010 * LocoNet implementation of the {@link jmri.CabSignalManager} interface.
011 *
012 * <hr>
013 * This file is part of JMRI.
014 * <p>
015 * JMRI is free software; you can redistribute it and/or modify it under the
016 * terms of version 2 of the GNU General Public License as published by the Free
017 * Software Foundation. See the "COPYING" file for a copy of this license.
018 * <p>
019 * JMRI is distributed in the hope that it will be useful, but WITHOUT ANY
020 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
021 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
022 *
023 * @author Paul Bender Copyright (C) 2019
024 */
025public class LnCabSignalManager extends AbstractCabSignalManager {
026
027    private LocoNetSystemConnectionMemo _memo = null;
028
029    public LnCabSignalManager(LocoNetSystemConnectionMemo memo){
030         super();
031         _memo = memo;
032         log.debug("LocoNet Cab Signal Manager initialized");
033    }
034
035    /**
036     * {@inheritDoc}
037     */
038    @Override
039    protected CabSignal createCabSignal(LocoAddress address){
040           return new LnCabSignal(_memo,address);
041    }
042
043    private final static Logger log = LoggerFactory.getLogger(LnCabSignalManager.class);
044}