001package jmri.jmrit.operations.locations.schedules;
002
003import jmri.jmrit.operations.locations.Track;
004
005/**
006 * An object displaying a location and track. Used for combo boxes.
007 *
008 * @author Daniel Boudreau Copyright (C) 2009
009 *
010 */
011public class LocationTrackPair {
012
013    Track _track;
014
015    public LocationTrackPair(Track track) {
016        _track = track;
017    }
018
019    // for combo boxes
020    @Override
021    public String toString() {
022        return _track.getLocation().getName() + " (" + _track.getName() + ")";
023    }
024
025    public Track getTrack() {
026        return _track;
027    }
028}