forked from arduino/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTargetPlatform.java
103 lines (84 loc) · 2.39 KB
/
TargetPlatform.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
TargetPlatform - Represents a hardware platform
Part of the Arduino project - http://www.arduino.cc/
Copyright (c) 2014 Arduino
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
*/
package processing.app.debug;
import java.io.File;
import java.util.Map;
import java.util.Set;
import processing.app.helpers.PreferencesMap;
public interface TargetPlatform {
public String getId();
public File getFolder();
/**
* Get TargetBoards under this TargetPlatform into a Map that maps the board
* id with the corresponding TargetBoard
*
* @return a Map<String, TargetBoard>
*/
public Map<String, TargetBoard> getBoards();
public PreferencesMap getCustomMenus();
/**
* Return ids for top level menus
*
* @return a Set<String> with the ids of the top level custom menus
*/
public Set<String> getCustomMenuIds();
/**
* Get preferences for all programmers
*
* @return
*/
public Map<String, PreferencesMap> getProgrammers();
/**
* Get preferences for a specific programmer
*
* @param programmer
* @return
*/
public PreferencesMap getProgrammer(String programmer);
/**
* Get preferences for a specific tool
*
* @param tool
* @return
*/
public PreferencesMap getTool(String tool);
/**
* Return TargetPlatform preferences
*
* @return
*/
public PreferencesMap getPreferences();
/**
* Get a target board
*
* @param boardId
* @return
*/
public TargetBoard getBoard(String boardId);
/**
* Get the TargetPackage that contains this TargetPlatform
*
* @return
*/
public TargetPackage getContainerPackage();
/**
* Returns true if the platform is installed in a subfolder of the sketchbook
*
* @return
*/
public boolean isInSketchbook();
}