001package jmri.jmrix.srcp;
002
003import jmri.AddressedProgrammer;
004import jmri.Programmer;
005import jmri.managers.DefaultProgrammerManager;
006
007/**
008 * Extend DefaultProgrammerManager to provide ops mode programmers for SRCP
009 * systems
010 *
011 * @see jmri.managers.DefaultProgrammerManager
012 * @author Bob Jacobsen Copyright (C) 2002, 2008
013 */
014public class SRCPProgrammerManager extends DefaultProgrammerManager {
015
016    //private Programmer localProgrammer;
017    //private SRCPBusConnectionMemo _memo=null;
018    public SRCPProgrammerManager(Programmer serviceModeProgrammer, SRCPBusConnectionMemo memo) {
019        super(serviceModeProgrammer, memo);
020        //localProgrammer = serviceModeProgrammer;
021        //_memo=memo;
022
023    }
024
025    /**
026     * Works with command station to provide Ops Mode, so say it works
027     *
028     * @return true
029     */
030    //public boolean isAddressedModePossible() {return true;}
031    //public AddressedProgrammer getAddressedProgrammer(boolean pLongAddress, int pAddress) {
032    //    return new SRCPOpsModeProgrammer(pAddress, pLongAddress,_memo);
033    //}
034    @Override
035    public AddressedProgrammer reserveAddressedProgrammer(boolean pLongAddress, int pAddress) {
036        return null;
037    }
038}