001package jmri.jmrix.loconet;
002
003/**
004 * slotMapEntry - a from to pair of slot numbers defining a valid range of loco/system slots
005 * TODO add slottype, eg systemslot, std slot, expanded slot etc
006 * @author sg
007 *
008 */
009public class SlotMapEntry {
010
011    public SlotMapEntry(int from, int to, SlotType type) {
012        fromSlot = from;
013        toSlot = to;
014        slotType = type;
015    }
016
017    public enum SlotType {
018        UNKNOWN,
019        SYSTEM,
020        LOCO
021    }
022
023    int fromSlot;
024    int toSlot;
025    SlotType slotType;
026
027    protected int getFrom() {
028        return fromSlot;
029    }
030    protected int getTo() {
031        return toSlot;
032    }
033    protected SlotType getSlotType() {
034        return slotType;
035    }
036}