001package jmri.jmrit.signalsystemeditor;
002
003import java.util.ArrayList;
004import java.util.List;
005
006/**
007 * An aspect
008 *
009 * @author Daniel Bergqvist (C) 2022
010 */
011public class Aspect {
012
013    private final StringWithComment _name;
014    private String _title;
015    private String _rule;
016    private String _indication;
017    private final List<String> _descriptions = new ArrayList<>();
018    private final List<String> _references = new ArrayList<>();
019    private final List<String> _comments = new ArrayList<>();
020    private final List<String> _speedList = new ArrayList<>();
021    private final List<String> _speed2List = new ArrayList<>();
022    private String _route;
023    private String _dccAspect;
024
025    public Aspect(StringWithComment name, String title, String rule, String indication, String route, String dccAspect) {
026        this._name = name;
027        this._title = title;
028        this._rule = rule;
029        this._indication = indication;
030        this._route = route;
031        this._dccAspect = dccAspect;
032    }
033
034    public StringWithComment getName() {
035        return this._name;
036    }
037
038    public void setTitle(String title) {
039        this._title = title;
040    }
041
042    public String getTitle() {
043        return this._title;
044    }
045
046    public void setRule(String rule) {
047        this._rule = rule;
048    }
049
050    public String getRule() {
051        return this._rule;
052    }
053
054    public void setIndication(String indication) {
055        this._indication = indication;
056    }
057
058    public String getIndication() {
059        return this._indication;
060    }
061
062    public List<String> getDescriptions() {
063        return this._descriptions;
064    }
065
066    public List<String> getReferences() {
067        return this._references;
068    }
069
070    public List<String> getComments() {
071        return this._comments;
072    }
073
074    public List<String> getSpeedList() {
075        return this._speedList;
076    }
077
078    public List<String> getSpeed2List() {
079        return this._speed2List;
080    }
081
082    public void setRoute(String route) {
083        this._route = route;
084    }
085
086    public String getRoute() {
087        return this._route;
088    }
089
090    public void setDccAspect(String dccAspect) {
091        this._dccAspect = dccAspect;
092    }
093
094    public String getDccAspect() {
095        return this._dccAspect;
096    }
097
098}