2013-07-22 17:47:54 +02:00
|
|
|
/*
|
|
|
|
Copyright (c) 2013 Arduino LLC. All right reserved.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software Foundation,
|
|
|
|
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2013-06-02 19:02:57 +02:00
|
|
|
package cc.arduino.packages;
|
|
|
|
|
|
|
|
import processing.app.helpers.PreferencesMap;
|
|
|
|
|
|
|
|
public class BoardPort {
|
|
|
|
|
|
|
|
private String address;
|
|
|
|
private String protocol;
|
|
|
|
private String boardName;
|
2013-06-04 19:33:38 +02:00
|
|
|
private String label;
|
2013-06-02 19:02:57 +02:00
|
|
|
private PreferencesMap prefs;
|
|
|
|
|
|
|
|
public String getAddress() {
|
|
|
|
return address;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAddress(String address) {
|
|
|
|
this.address = address;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getProtocol() {
|
|
|
|
return protocol;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setProtocol(String protocol) {
|
|
|
|
this.protocol = protocol;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getBoardName() {
|
|
|
|
return boardName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setBoardName(String boardName) {
|
|
|
|
this.boardName = boardName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPrefs(PreferencesMap prefs) {
|
|
|
|
this.prefs = prefs;
|
|
|
|
}
|
|
|
|
|
|
|
|
public PreferencesMap getPrefs() {
|
|
|
|
return prefs;
|
|
|
|
}
|
|
|
|
|
2013-06-04 19:33:38 +02:00
|
|
|
public void setLabel(String label) {
|
|
|
|
this.label = label;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLabel() {
|
|
|
|
return label;
|
|
|
|
}
|
|
|
|
|
2013-06-02 19:02:57 +02:00
|
|
|
}
|