001package jmri.jmrit.dispatcher;
002
003public class TrainInfoFileSummary {
004
005    private String filename = "";
006    private String transitName = "";
007    private String startBlockName = "";
008    private String endBlockName = "";
009    private String trainName = "";
010    private String dccAddress = "";
011    
012    public TrainInfoFileSummary(String filename, String trainName, String transitName,
013            String startBlockName, String endBlockName, String dccAddress) {
014        this.filename = filename;
015        this.trainName = trainName;
016        this.transitName = transitName;
017        this.startBlockName = startBlockName;
018        this.endBlockName = endBlockName;
019        this.dccAddress = dccAddress;
020    }
021
022    public TrainInfoFileSummary(String filename) {
023        this.filename = filename;
024        this.transitName = "Invalid File";
025    }
026
027    public String getFileName() {
028        return filename;
029    }
030    public String getTransitName() {
031        return transitName;
032    }
033    public String getStartBlockName() {
034        return startBlockName;
035    }
036    public String getEndBlockName() {
037        return endBlockName;
038    }
039    public String getTrainName() {
040        return trainName;
041    }
042    public String getDccAddress() {
043        return dccAddress ;
044    }
045    
046    @Override
047    public String toString() {
048        return filename;
049    }
050}