001package jmri.jmrit.vsdecoder;
002
003/**
004 * NotchTransition.
005 *
006 * This class holds the information needed about a transitional sound
007 * between notches of a Diesel locomotive engine.
008 *
009 * <hr>
010 * This file is part of JMRI.
011 * <p>
012 * JMRI is free software; you can redistribute it and/or modify it under
013 * the terms of version 2 of the GNU General Public License as published
014 * by the Free Software Foundation. See the "COPYING" file for a copy
015 * of this license.
016 * <p>
017 * JMRI is distributed in the hope that it will be useful, but WITHOUT
018 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
019 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
020 * for more details.
021 *
022 * @author Mark Underwood Copyright (C) 2011
023 */
024class NotchTransition extends SoundBite {
025
026    private int prev_notch;
027    private int next_notch;
028
029    public NotchTransition(VSDFile vf, String filename, String sname, String uname) {
030        super(vf, filename, sname, uname);
031        prev_notch = 0;
032        next_notch = 0;
033        this.setLength();
034    }
035
036    public int getPrevNotch() {
037        return prev_notch;
038    }
039
040    public int getNextNotch() {
041        return next_notch;
042    }
043
044    public void setPrevNotch(int p) {
045        prev_notch = p;
046    }
047
048    public void setNextNotch(int p) {
049        next_notch = p;
050    }
051
052}